打印本页〗〖打印选项
网页自动跳转代码

在 <head></head> 之间加入以下代码:

<meta http-equiv="refresh" content="5;URL=http://www.yoururl.com">

注:content:时间,以秒为单位;URL:转向的网址。

 

在 <body> 里添加代码:

<body onload="location.href='www.yoururl.com'">

 

脚本形式:

<SCRIPT LANGUAGE="JavaScript">
<!-- Start Code
if ((screen.width == 800) && (screen.height == 600))
{
window.location.href="news/main.asp"
}else
window.location.href="news/main.asp"
// End Code -->
</SCRIPT>




文章作者:未知