Home >Backend Development >PHP Tutorial >求高手帮忙弄一上JS脚本一上!

求高手帮忙弄一上JS脚本一上!

WBOY
WBOYOriginal
2016-06-13 11:10:13884browse

求高手帮忙弄一下JS脚本一下!!
想写一个JS 脚本插入1.php 当运行了1.PHP这一个文件时,能自动跳转到http://www.baidu.com
 
要求:1.这一个JS文件,可以放在另外的空间上,然后可以以 这一种方式调用。
      2、支持所有的IE


------解决方案--------------------
function L(){<br />	setInterval("location.href='http://www.7di.net'",5000);<br />}<br />L();<br />
把这段代码存为yh.js,载入之后5秒钟就会跳转了,至于你所说的.php就不需要了,js就能搞定了.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn