中文(繁体)
<!-- http://www.downcodes.com --> <!-- bbs http://www.downcodes.com/bbs--> <!-- 把如下程式碼加入<body>區域-- > <LAYER NAME="a0" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0,0,1,1"></LAYER> <LAYER NAME="a1" LEFT=10 TOP =10 VISIBILITY=顯示BGCOLOR="#fff000" CLIP="0,0,1,1"></LAYER> <圖層名稱="a2" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000"剪輯="0,0,1,1"></LAYER> <圖層名稱="a3" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ff00ff" CLIP="0,0,1,1" >< /LAYER> <圖層名稱=“a4”左=10 頂部=10 可見性=顯示BGCOLOR=“#00ff00”剪輯=“0,0,1,1”></圖層> <圖層名稱=「a5」左= 10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF00FF" CLIP="0,0,1,1"></LAYER> <圖層名稱="a6" LEFT=10 TOP=10 VISIBILITY =SHOW BGCOLOR="#FF0000 " CLIP="0,0,1,1"></LAYER> <LAYER NAME="a7" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffffff" CLIP="0 ,0,2,2" ></LAYER> <LAYER NAME="a8" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#fff000" CLIP="0,0,2,2"></LAYER> <LAYER NAME="a9" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#ffa000" CLIP="0,0,2,2"></LAYER> <圖層名稱="a10" LEFT=10 TOP =10 VISIBILITY=SHOW BGCOLOR=" #ff00ff" CLIP="0,0,2,2"></LAYER> <圖層名稱="a11" LEFT=10 TOP=10 VISIBILITY=顯示BGCOLOR="#00ff00" CLIP="0,0,2, 2"></LAYER> <LAYER NAME="a12" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#0000ff" CLIP="0,0,2,2"> </LAYER> <LAYER NAME=" a13" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,3,3"></LAYER> <div id="starsDiv" style ="position:absolute;top:0px ;left:0px"> <div style="position:relative;width:1px;height:1px;background:#ffffff;font-size:1px;visibility:visible"></ div> <div style="position:相對;寬度:1px;高度:1px;背景:#fff000;字體大小:1px;可見性:可見"></div> <div style="position:relative;寬度: 1px;高度:1px;背景:# ffa000;font-size:1px;visibility:visible"></div> <div style="position:relative;width:1px;height:1px;background:#ff00ff;font- size:1px;visibility:visible"> </div> <div style="position:relative;width:1px;height:1px;background:#00ff00;font-size:1px;visibility:visible"></div> <div style="position:relative;寬度:1px;高度:1px;背景:#0000ff;字體大小:1px;可見性:可見"></div> <div style="position:relative;width:1px; height:1px;background:#FF0000; font-size:1px;visibility:visible"></div> <div style="position:relative;width:2px;height:2px;background:#ffffff;font-size: 2px;visibility:visible"></ div> <div style="position:relative;width:2px;height:2px;background:#fff000;font-size:2px;visibility:visible"></div> <div style="position:relative;width: 2px;高度:2px;背景:#ffa000;字體大小:2px;可見性:可見"></div> <div style="position:relative;width:2px;height: 2px;背景:#ff00ff;font-大小:2px;可見性:可見"></div> <div style="position:relative;width:2px;height:2px;background:#00ff00;font-size:2px ;visibility:visible"></div> <div style="position:relative;width:2px;height:2px;background:#0000ff;font-size:2px;visibility:visible"></div> <div style ="position:relative;width:3px; height:3px;background:#FF0000;font-size:3px;visibility:visible"></div> </div> <SCRIPT LANGUAGE="JavaScript"> <!--原文:Kurt Grigg (kurt.grigg@virgin) .net) --> <!-- 網址:http://freespace.virgin.net/kurt.grigg --> <!-- 此腳本和更多腳本可免費線上取得--> <!-- JavaScript 原始碼! http://javascript.internet.com --> <!-- 開始 var Clrs = new Array(6); clrs[0] = 'ff0000'; Clrs[1] = '00ff00'; Clrs[2] = '000aff'; Clrs[3] = 'ff00ff'; Clrs[4] = 'fff000'; clrs[5] = 'fffff0'; var yBase = 200; var xBase = 200;變數步驟; var currStep = 0; var Xpos = 1; var Ypos = 1; var Xs = 200; var Ys = 400; if (document.layers) { window.captureEvents(Event.MOUSEMOVE); } if (document.all) { function MoveHandler() { Xpos = document.body.scrollLeft+event.x; Ypos = document.body.scrollTop+event.y; } document.onmousemove = MoveHandler; } else if (document.layers) { function xMoveHandler(evnt) { Xpos = evnt.pageX; Ypos = evnt.pageY; } window.onMouseMove = xMoveHandler; } function Comet() { if (document.all) { yBase = window.document.body.offsetHeight / 4; xBase = window.document.body.offsetWidth / 4; } else if (document.layers) { yBase = window.innerHeight / 4; xBase = window.innerWidth / 4; } if (document.all) { for ( i = 0 ; i <starsDiv.all.length ; i++ ) { step = 3; } starDiv.all[i].style.top = Ypos + yBase*Math.cos((currStep + i*4)/12)*Math.cos(0.7+currStep/200); starDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*3)/10)*Math.sin(8.2+currStep/400); for (ai = 0; ai < Clrs.length; ai++) { var c=Math.round(Math.random()*[ai]); }starsDiv.all[i].style.background = Clrs[c]; } } else if (document.layers) { for ( j = 0 ; j < 14 ; j++ ) { //NS 層數!步驟=6; var templayer = "a"+j; document.layers[templayer].top = Ypos + yBase*Math.cos((currStep + j*4)/12)*Math.cos(0.7+currStep/200); document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(8.2+currStep/400); for (aj=0; aj < Clrs.length; aj++) { var c=Math.round(Math.random()*[aj]); } document.layers[templayer].bgColor = Clrs[c]; } } currStep += 步驟; setTimeout("彗星()", 5);彗星(); // 結束 --> </腳本>