ภาษาไทย
<!-- http://www.downcodes.com --> <!-- bbs http://bbs.downcodes.com --> <!--เพิ่มโค้ดต่อไปนี้ลงในพื้นที่ <body> หมายเหตุ: รูปภาพ คุณสามารถเลือกของคุณเอง --> <body background="Back" bgproperties=fixed link="#FF6699" vlink="#FF9999"> <script> <!-- Begin var snowsrc="/u/info_img/2009 -06/20 /9501_logo.gif"//การปรับแต่งรูปภาพ var no = 11; // หมายเลขหิมะ var speed = 11; // จำนวนที่น้อยกว่าจะทำให้หิมะเคลื่อนที่เร็วขึ้น var ns4up = (document.layers) ? 1 : 0; // เบราว์เซอร์ sniffer var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; // พิกัดและตัวแปรตำแหน่ง var am, stx, sty; // ความกว้างและตัวแปรขั้นตอน var i, doc_width = 1,000, doc_height = 1200; if (ns4up) { doc_width = self.innerWidth; } dx = อาร์เรย์ใหม่ (); xp = อาร์เรย์ใหม่ (); yp = อาร์เรย์ใหม่ (); am = อาร์เรย์ใหม่ (); sty = อาร์เรย์ใหม่ (); dx[i] = 0; // ตั้งค่าตัวแปรพิกัด xp[i] = Math.random()*(doc_width-50); // ตั้งค่าตัวแปรตำแหน่ง yp[i] = Math.random()*doc_height; ] = Math.random()*20; // ตั้งค่าตัวแปรแอมพลิจูด stx[i] = 0.02 + Math.random()/10; // ตั้งค่าตัวแปรขั้นตอน sty[i] = 0.7 + Math.random(); ตั้งค่าตัวแปรขั้นตอน if (ns4up) { // ตั้งค่าเลเยอร์ if (i == 0) { document.write("<layer name="dot"+ i +"" left="15" top=" 15" การมองเห็น ="show"><img src='"+snowsrc+"' border="0"></layer>"); } else { document.write("<layer name=" dot"+ i +"" left="15" top="15" การมองเห็น="show"><img src='"+snowsrc+"' border="0"></ layer>") ; } } else if (ie4up) { if (i == 0) { document.write("<div id="dot"+ i +"" style="POSITION: สัมบูรณ์; Z- ดัชนี: "+ i +"; การมองเห็น: มองเห็นได้; TOP: 15px; ซ้าย: 15px;"><img src='"+snowsrc+"' border="0"></a></div>" } else { document.write("<div id="dot"+ i +"" style="POSITION: สัมบูรณ์; Z-INDEX: "+ i +"; การมองเห็น: มองเห็นได้; TOP: 15px; ซ้าย: 15px; "><img src='"+snowsrc+"' border="0"></div>"); 0; i < no; ++ i) { // วนซ้ำทุกจุด yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random() *(doc_width- am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); .innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; left = xp[ i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", 10); } ฟังก์ชั่น snowIE() { // ฟังก์ชันแอนิเมชั่นหลักของ IE สำหรับ (i = 0; i < no; ++ i) { // วนซ้ำทุกจุด yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random() *(doc_width- am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); .body.clientWidth ; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].pixelTop = yp[i]; dot"+i ].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowIE()", 10); } ถ้า (ns4up) { snowNS( } อื่น ๆ ถ้า (ie4up) { snowIE(); } </script> </body>