如果你对jq有基础的话,那么思路:
1.点击id为btn按钮
2.获取id为source元素的链接href地址
3.跳转
- <script type="text/javascript" src="http://www.huarongyuemao.com.cn/templets/mask/js/jquery.js"></script>
- <script type="text/javascript">
- $(function(){
- $('#btn').click(function(){
- var href = $('.cboxElement,.erphp-login-must,.down-gou').attr('href');
- location.href = href;
- })
- })
- </script>
- <p id="btn">点击</p>