中文(繁体)
<!-- http://www.downcodes.com --> <!-- bbs http://bbs.downcodes.com --> <!--要完成此效果需要兩個步驟第一步:把如下程式碼加入<head>區域--> <style> <!-- .intro{ position:absolute; left:0; top:0; layer-background-color:white; background-color:white; border: 0.1px solid white } --> </style> <!--第二步:把如下程式碼加入<body>區域--> <div id="i1" class="intro"> 建站學院<br ><br> www.downcodes.com<br><br> webmaster@downcodes.com<br><br> ╔----------------------- -------------------------╗<br> ┆網頁製作教學下載網頁特效精品動畫網站架設指南┆<br> ┆技術論壇程式設計技術ASP技術PHP 技術特效代碼┆<br> ┆為您建站英漢翻譯商城出售業界新聞程式開發┆<br> ╚------------------------ ------------------------╝<br> 建站學院,提供一切網頁製作諮訊....</div> <script language= "JavaScript1.2"> //change speed here var speed=5 if (document.layers){ var reference=window.innerWidth/window.innerHeight var temp=eval("document.i1.clip") temp.left=temp .top=0 temp.right=window.innerWidth temp.bottom=window.innerHeight } else if (document.all){ var reference=document.body.clientWidth/document.body.clientHeight var rightclip,leftclip,topclip,document.body.clientHeight var rightclip,leftclip,topclipbot. temp=document.all.i1.style topclip=leftclip=0 rightclip=temp.width=document.body.clientWidth bottomclip=temp.height=document.body.clientHeight } function doit(){ window.scrollTo(0,0) if (document.layers){ if (temp.left>window.innerWidth/2) clearInterval(stopit) temp.left+=reference*speed temp.top+=speed temp.right-=reference*speed temp.bottom-=speed } else if (document.all){ if (leftclip>document.body.clientWidth/2) clearInterval(stopit) temp.clip="rect( "+topclip+" "+rightclip+" "+bottomclip+" "+leftclip+")" leftclip+")" =reference*speed topclip+=speed rightclip-=reference*speed bottomclip-=speed } } stopit=setInterval("doit()",100) </script>