[全兼容哦]--实用、简洁、炫酷的页面转入效果loing
2018-09-22 01:02
<!DOCTYPEhtmlPUBLIC-//W3C//DTDXHTML1.0Transitional//EN
<htmlxmlns=
<head>
<metahttp-equiv=Content-Typecontent=text/html;charset=gb2312/>
<metaHTTP-EQUIV=Expirescontent=Sun,31Oct200823:59:00GMT/>
<title>实用、结、酷的页面转入效果loing---全兼容【来自心动】</title>
<styletype=text/css>
<!--
body{
margin-top:100px;
font-size:12px;
color:#006600;
}
#span{
background-color:#FFFFFF;
height:4px;
width:4px;
border:1pxsolid#333333;
margin:1px;
}
-->
</style></head>
<body>
<divalign=center>页面载入中请稍候···<br/>
<scriptlanguage=JavaScripttype=text/javascript>
varp=0,A1=0;varu_=0
varcolor_A=newArray(lightskyblue,white,#00FF00,white,red,white);
functionset_span(obj_name,obj_time,obj_length){
for(vari=0;i<obj_length;i++){document.write(<inputid=+obj_name+name=+obj_name+/>)}
setInterval(xd_load();,obj_time);
}
functionxd_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的with语句使用方法
下一篇:Ajax一统天下之Dojo整合篇
文章标题:[全兼容哦]--实用、简洁、炫酷的页面转入效果loing
文章链接:http://soscw.com/essay/17041.html