您的位置:首页 > 其它

网页自动跳转的方法

2011-04-25 15:25 169 查看
1. 使用 meta 标签
<meta http-equiv="refresh" content=“‘5’;url=http://www.marsorstudio.cn/">
其中:     content = “5”,表示5秒钟以后进行跳转,写成 0 表示立即跳转。  一定注意content的写法是    “  '秒数'   ;   url=xxxxxxx   ”
2. 使用JavaScript
这个就比较灵活了,可以有很多中写法。
抛砖引玉吧。
使用Jquery    $(document).ready(function(){window.location="http://www.marsorstudio.cn";});
甚至直接写这句       window.location="http://www.marsorstudio.cn";  都可以。注意放在<script></script>标签中哦。
这里甚至可以做Post。写一个javascript,来做个表单提交。。。。
呵呵,可以做很多事情哦,调查访问来源、门户计数器、欢迎页面展示。。。。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: