[全兼容哦]--实用、简洁、炫酷的页面转入效果loing
时间:2022-05-25 09:42:37|栏目:JavaScript代码|点击: 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta HTTP-EQUIV="Expires" content="Sun, 31 Oct 2008 23:59:00 GMT" />
<title>实用、结、酷的页面转入效果loing ---全兼容【来自心动】</title>
<style type="text/css">
<!--
body {
margin-top: 100px;
font-size: 12px;
color: #006600;
}
#span{
background-color: #FFFFFF;
height: 4px;
width: 4px;
border: 1px solid #333333;
margin: 1px;
}
-->
</style></head>
<body>
<div align="center">页面载入中请稍候???<br />
<script language="JavaScript" type="text/javascript">
var p=0,A1=0;var u_=0
var color_A=new Array("lightskyblue","white","#00FF00","white","red","white");
function set_span(obj_name,obj_time,obj_length){
for(var i=0;i<obj_length;i++){document.write("<input id='"+obj_name+"' name='"+obj_name+"' />")}
setInterval('xd_load();',obj_time);
}
function xd_load(){
u_++
document.getElementsByName("span").item(p).style.background=color_A[A1]
p+=1;
if(p==document.getElementsByName("span").length){p=0;A1+=1;
if(A1==color_A.length)A1=0
}
if(u_>20){top.location="../";alert("转入页面");}
}
set_span("span",120,20)
</script></div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta HTTP-EQUIV="Expires" content="Sun, 31 Oct 2008 23:59:00 GMT" />
<title>实用、结、酷的页面转入效果loing ---全兼容【来自心动】</title>
<style type="text/css">
<!--
body {
margin-top: 100px;
font-size: 12px;
color: #006600;
}
#span{
background-color: #FFFFFF;
height: 4px;
width: 4px;
border: 1px solid #333333;
margin: 1px;
}
-->
</style></head>
<body>
<div align="center">页面载入中请稍候???<br />
<script language="JavaScript" type="text/javascript">
var p=0,A1=0;var u_=0
var color_A=new Array("lightskyblue","white","#00FF00","white","red","white");
function set_span(obj_name,obj_time,obj_length){
for(var i=0;i<obj_length;i++){document.write("<input id='"+obj_name+"' name='"+obj_name+"' />")}
setInterval('xd_load();',obj_time);
}
function xd_load(){
u_++
document.getElementsByName("span").item(p).style.background=color_A[A1]
p+=1;
if(p==document.getElementsByName("span").length){p=0;A1+=1;
if(A1==color_A.length)A1=0
}
if(u_>20){top.location="../";alert("转入页面");}
}
set_span("span",120,20)
</script></div>
</body>
</html>
上一篇:JS实现简单tab选项卡切换
栏 目:JavaScript代码
下一篇:js中的函数嵌套和闭包详情
本文标题:[全兼容哦]--实用、简洁、炫酷的页面转入效果loing
本文地址:http://www.codeinn.net/misctech/202839.html