页面载入的动画效果js源代码
页面载入时等待页面的加载效果
效果一:
效果二:
- <HTML><HEAD><TITLE>::诺豆网 —— nuodou.com _页面载入中......::</TITLE>
- <META content="text/html; charset=gb2312" http-equiv=Content-Type>
- <META NAME="author" CONTENT="haibor">
- <META NAME="keywords" CONTENT="haibor,nuodou">
- <STYLE type=text/css>TD {
-
FONT-FAMILY: 宋体; FONT-SIZE: 12px; LETTER-SPACING: 2px; LINE-HEIGHT: 150%; font-color: #000000
- }
- FORM {
-
FONT-FAMILY: 宋体; FONT-SIZE: 12px; LETTER-SPACING: 2px; LINE-HEIGHT: 150%; font-color: #000000
- }
- SELECT {
-
FONT-FAMILY: 宋体; FONT-SIZE: 12px; LETTER-SPACING: 2px; LINE-HEIGHT: 150%; font-color: #000000
- }
- INPUT {
-
FONT-FAMILY: 宋体; FONT-SIZE: 12px; LETTER-SPACING: 2px; LINE-HEIGHT: 150%; font-color: #000000
- }
- TEXTAREA {
-
FONT-FAMILY: 宋体; FONT-SIZE: 12px; LETTER-SPACING: 2px; LINE-HEIGHT: 150%; font-color: #000000
- }
- BODY {
-
FONT-FAMILY: 宋体; FONT-SIZE: 12px; LETTER-SPACING: 2px; LINE-HEIGHT: 150%; font-color: #000000
- }
- A:link {
-
COLOR: #666666; FONT-SIZE: 10.5pt; TEXT-DECORATION: none
- }
- A:visited {
-
COLOR: #666666; FONT-SIZE: 10.5pt; TEXT-DECORATION: none
- }
- A:hover {
-
COLOR: #666666; FONT-SIZE: 10.5pt; TEXT-DECORATION: none
- }
- A:active {
-
COLOR: #666666; FONT-SIZE: 10.5pt; TEXT-DECORATION: none
- }
- </STYLE>
- <SCRIPT language=JavaScript>
- var url = 'http://www.haibor8.cn';
- </SCRIPT>
- <META content="Microsoft FrontPage 4.0" name=GENERATOR>
- <STYLE>.proccess {
-
BACKGROUND: #ffffff; BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; HEIGHT: 8px; MARGIN: 3px; WIDTH: 8px
- }
- </STYLE>
- </HEAD>
- <BODY onload="location.href = url;"
- style="OVERFLOW: hidden; OVERFLOW-Y: hidden">
- <DIV align=center>
- <TABLE align=center height="70%" valign="middle">
- <TBODY>
- <TR>
-
<TD
align=middle><p></p> -
- <!-- Displaytext-->
-
:: chinaz.com :: is now loading...
- <P></P>
-
-
-
-
-
-
-
-
-
- for(i=0;i<30;i++)document.write("<input class=proccess>")
- </SCRIPT>
-
-
-
-
- <DIV align=center>
- <SCRIPT language=JavaScript><!--
- var p=0,j=0;
- var c=new Array("lightskyblue","white")
- setInterval('proccess();',100)
- function proccess(){
-
document.forms.proccess.elements[p]
.style.background=c[j]; -
p+=1;
-
if(
p==30){p=0;j=1-j;}} - --></SCRIPT>
- </DIV></DIV>
- <DIV align=center>
- <SCRIPT>
- <!--
- if (document.layers)
- document.write('<Layer src="' + url + ' " VISIBILITY="hide"> </Layer>');
- else if (document.all || document.getElementById)
- document.write('<iframe src="' + url&n
bsp;+ '"
style="visibility: hidden;"></iframe>'); - else location.href = url;
- //-->
- </SCRIPT>
- </DIV></BODY></HTML>