网页自动跳转的方法

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,来做个表单提交。。。。
呵呵,可以做很多事情哦,调查访问来源、门户计数器、欢迎页面展示。。。。
posted @ 2011-04-25 15:25  地球火星人  阅读(495)  评论(0编辑  收藏  举报