網頁載入特效
將下列程式碼複製至<head>程式碼</head>區內。
<script language="javascript1.2"> function abc() { if(document.layers) eval('document.layers["load"].visibility="hidden"') else eval('document.all["load"].style.visibility="hidden"'); } if(document.layers) document.write('<layer id="load" z-index=1000>'); else document.write('<div id="load" style="position: absolute;width: 100% ; height: 110% ; top: 0px; left: 0px;z-index:1000px;">'); document.write('<table border=0 width=100% height=100% bgcolor=#FFFFFF>'); document.write('<tr><td align=center>'); document.write('<p><font color="#000000"><font size="5" face="華康相撲體">Loading</font><font size="5" face="華康相撲體"> 網頁載入中....</font></font></p>'); document.write('</td></tr></table>'); if(document.layers) document.write('</layer>'); else document.write('</div>'); window.onLoad=setTimeout("abc()",1000); </script> |