::: แจก "โ ค้ ด หิ ม ะ ต ก ใ น บ๊ อ ก" จ้า :::
โค้ดร้อนๆ มาแล้นจ้า.................
วันนี้มาแจกโค้ดคร๊า
แต่....
ห้ามลองโค้ดในบ๊อกนี้เด็ดขาด
และ
กรุณาเปลี่ยนเครื่องหมาย *(สีแดง) เป็น < นะค่ะ
----------------------------------------------------
โค้ดหิมะตกในบ๊อก
*SCRIPT LANGUAGE="JavaScript1.2"> // // Script arranged by Hisa (//homepage1.nifty.com/ikitai/) var no = 5;// ?P?ๆ-ส?ษo?้?ๆ'?ฬ-?" snow = new Array(); snow[0] = "//www.thai.to/janekiku/snow1.gif" snow[1] = "//www.thai.to/janekiku/snow2.gif" snow[2] = "//www.thai.to/janekiku/snow3.gif" snow[3] = "//www.thai.to/janekiku/snow4.gif" snow[4] = "//www.thai.to/janekiku/snow1.gif" var imgSize = 30; // ?P"ิ'ๅ?ซ?ข?ๆ'?ฬ??ณ{10?ฎ?็?ข?๐?w'่?ท?้B // _dom : 0=other, 1=Mozilla, 2=NN4, 3=IE4/5 var _dom=(document.all?3:(document.getElementById?1:(document.layers?2:0))); var dx, xp, yp; var am, stx, sty; var i;
function getDocumentSize() { if(_dom == 1 || _dom == 2) { doc_width = self.innerWidth; doc_height = 500; } if (_dom == 3) { doc_width = document.body.clientWidth; doc_height = 500; } } getDocumentSize(); dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); j = 0; for (i = 0; i < no; ++ i) { dx[i] = 0; xp[i] = (doc_width-500) / 2 + Math.random() * 300; yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; stx[i] = 0.02 + Math.random()/10; sty[i] = 1.0 + Math.random(); if (_dom==2) { document.write(""); } else if (_dom==1 || _dom==3) { document.write(""); } if (j == (snow.length-1)) { j = 0; } else { j += 1; } } function snowLoop() { for (i = 0; i < no; ++ i) { yp[i] += sty[i]; if (yp[i] > doc_height-imgSize) { getDocumentSize(); xp[i] = (doc_width-300) / 2 + Math.random() * 300; yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 1.0 + Math.random(); } dx[i] += stx[i]; snowMove("dot"+i,yp[i],xp[i] + am[i]*Math.sin(dx[i])); } setTimeout("snowLoop()", 10); } function snowMove(lay,t,l) { if (_dom == 1) { document.getElementById(lay).style.top = t; document.getElementById(lay).style.left = l; } if (_dom == 2) { document.layers[lay].top = t; document.layers[lay].left = l; } if (_dom == 3) { document.all[lay].style.pixelTop = t; document.all[lay].style.pixelLeft = l; } } if (_dom) { snowLoop(); } // End --> */SCRIPT>
Create Date : 02 เมษายน 2548 |
Last Update : 2 เมษายน 2548 19:19:22 น. |
|
8 comments
|
Counter : 354 Pageviews. |
|
|
|
ถ้าใครเอาโค้ดนี้ไปใช้แล้วบ๊อกเจ๊ง
ก้อ...ตัวใครตัวมันนะคร๊า หุหุ