中文(繁体)
<!-- http://www.downcodes.com/js --> <!-- bbs http://www.downcodes.com/bbs--> 要完成此效果需要兩個步驟第一步:把如下程式碼加入<body>區域中<script language="JavaScript"> Destination='http://www.downcodes.com/'; Messages=new Array() Messages[0]="Welcome To 建站學院"; Messages[1]="本站收羅了網頁製作學習、網頁特效、動畫製作、建站指南、網絡編程"; Messages[2]="該特效代碼你可以添加多個特效,歡迎訪問http://www .downcodes.com"; FntFace='宋體'; FntColour='66FF33'; FntSize='4'; Speed=2000; count=-1; move=1; if (document.all){ document.write('< div style="position:absolute;top:0;left:0;width:'+document.body.clientWidth+'">'); document.write('<center><div id="msg" style="position :relative;top:'+document.body.clientHeight/2+'"></div></center>'); document.write('</div>'); } if (document.layers) document. write('<layer name=nmsg top='+((window.innerHeight/2)-10)+'></layer>'); function Splash(){ TMR=setTimeout('Splash()',Speed) ; if (count != Messages.length-1) count=count+move; else {window.location.href=Destination;clearTimeout(TMR)} if (document.all) document.all.msg.innerHTML='<font face='+FntFace+' size='+FntSize+' color='+FntColour+'>'+Messages[count]+'</font>'; if (document.layers){ document.layers.nmsg.document.open( ); document.layers.nmsg.document.write('<center><font face='+FntFace+' size='+FntSize+' color='+FntColour+'>'+Messages[count]+'</font>< /center>'); document.layers.nmsg.document.close(); } } </script> 第二步:把「onload="Splash()"」加在<body>標記裡例如:<body onload ="Splash()">