Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
ඔයාගෙ Assignment හෝ Thesis එක හරියට හදාගමු
ErMurazor
Updated:
Saturday at 10:52 PM
Ad icon
BlackWall V2ray servers
hu KANNA
Updated:
Wednesday at 4:58 AM
Peppa Pig Family Plush Toy Set – 5 Characters
anil1961
Updated:
Sep 19, 2026
Ad icon
Express VPN PC - 1 Year Rs. 600.00
Sanathbh
Updated:
Sep 19, 2026
Ad icon
Capcut Pro 7 Days Team Plan - Rs. 3️⃣0️⃣0️⃣
Sanathbh
Updated:
Sep 19, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Software Development
how to put Christmas snow
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Billl Gates" data-source="post: 3659160" data-attributes="member: 97732"><p>// Snow Effect Javascript</p><p>// copyright 19th November 2004, 20th July 2006 by Stephen Chapman</p><p>// permission to use this Javascript on your web page is granted</p><p>// provided that all of the code in this script (including these</p><p>// comments) is used without any alteration</p><p>// you can change the number of snow flakes if you like</p><p></p><p>var num_flakes = 10;</p><p>var snowflakes = new Array("snowflake.gif","snowflake1.gif");</p><p></p><p>// DOM test</p><p>var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM = document.getElementById;</p><p>if (stdDOM) aDOM = 1; else {ieDOM = document.all; if (ieDOM) aDOM = 1; else {</p><p>var nsDOM = ((navigator.appName.indexOf('Netscape') != -1)</p><p>&& (parseInt(navigator.appVersion) ==4)); if (nsDOM) aDOM = 1;}}</p><p>function findDOM(objectId, wS) {</p><p>if (stdDOM) return wS ? document.getElementById(objectId).style:</p><p>document.getElementById(objectId);</p><p>if (ieDOM) return wS ? document.all[objectId].style: document.all[objectId];</p><p>if (nsDOM) return document.layers[objectId];</p><p>}</p><p></p><p>// window size tests</p><p>function findLivePageWidth() {return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth :700;}function findLivePageHeight() {return window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null? document.body.clientHeight :500;}</p><p>function posX() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset:document.documentElement.scrollLeft? document.documentElement.scrollLeft:document.body.scrollLeft? document.body.scrollLeft:0;}</p><p>function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}</p><p></p><p>// make it snow</p><p>var speed = 50;var movw = new Array();var movh = new Array();var move = new Array();var stepw = new Array();var steph = new Array();var posw = new Array();var posh = new Array();var dir = new Array();var winWidth;var winHeight;</p><p>function startSnow() {winWidth = findLivePageWidth()-75;winHeight = findLivePageHeight()-50;</p><p>for (var i = 0; i < num_flakes; i++){move<em> = 0;movh<em> = 12+ Math.random()*2;movw<em> = 11+ Math.random()*4;posw<em> = Math.random()*(winWidth-35)+12;posh<em> = Math.random()*winHeight; stepw<em> = 0.02 + Math.random()/10;steph<em> = 0.7 + Math.random();dir<em> = (Math.random()>0.5)?1:-1;document.write('<div id="snow'+ i +'" style="position: absolute; z-index: '+ i +'; visibility:hidden; "><img src="'+snowflakes[Math.floor(Math.random()*snowflakes.length)]+ '" border="0"></div>');}setTimeout("moreSnow()", speed);}</em></em></em></em></em></em></em></em></p><p><em><em><em><em><em><em><em><em>function moreSnow() {for (var i = 0; i < num_flakes; i++) {if (posh<em> > winHeight-50) {posw<em> = 10+ Math.random()*(winWidth-movw<em>-30);posh<em> = 0;dir<em>=(Math.random()<0.5)?1:-1;stepw<em> = 0.02 + Math.random()/9;steph<em> = 1.3 + Math.random();} move<em> += stepw<em> *dir<em>; if (Math.abs(move<em>) > 3) {dir<em>=-dir<em>; posh<em>+=Math.abs(movh<em>*move<em>);posw<em>+=movw<em>*move<em>; move<em>=0;} objstyle = findDOM('snow'+i,1); objstyle.left = (posX()+posw<em> + movw<em>*move<em>)+'px'; objstyle.top = (posY()+posh<em> + movh<em>*(Math.abs(Math.cos(move<em>)+move<em>)))+'px';objstyle.visibility = 'visible';} setTimeout("moreSnow()", speed);}</em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></em></p></blockquote><p></p>
[QUOTE="Billl Gates, post: 3659160, member: 97732"] // Snow Effect Javascript // copyright 19th November 2004, 20th July 2006 by Stephen Chapman // permission to use this Javascript on your web page is granted // provided that all of the code in this script (including these // comments) is used without any alteration // you can change the number of snow flakes if you like var num_flakes = 10; var snowflakes = new Array("snowflake.gif","snowflake1.gif"); // DOM test var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM = document.getElementById; if (stdDOM) aDOM = 1; else {ieDOM = document.all; if (ieDOM) aDOM = 1; else { var nsDOM = ((navigator.appName.indexOf('Netscape') != -1) && (parseInt(navigator.appVersion) ==4)); if (nsDOM) aDOM = 1;}} function findDOM(objectId, wS) { if (stdDOM) return wS ? document.getElementById(objectId).style: document.getElementById(objectId); if (ieDOM) return wS ? document.all[objectId].style: document.all[objectId]; if (nsDOM) return document.layers[objectId]; } // window size tests function findLivePageWidth() {return window.innerWidth != null? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth :700;}function findLivePageHeight() {return window.innerHeight != null? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null? document.body.clientHeight :500;} function posX() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset:document.documentElement.scrollLeft? document.documentElement.scrollLeft:document.body.scrollLeft? document.body.scrollLeft:0;} function posY() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;} // make it snow var speed = 50;var movw = new Array();var movh = new Array();var move = new Array();var stepw = new Array();var steph = new Array();var posw = new Array();var posh = new Array();var dir = new Array();var winWidth;var winHeight; function startSnow() {winWidth = findLivePageWidth()-75;winHeight = findLivePageHeight()-50; for (var i = 0; i < num_flakes; i++){move[i] = 0;movh[i] = 12+ Math.random()*2;movw[i] = 11+ Math.random()*4;posw[i] = Math.random()*(winWidth-35)+12;posh[i] = Math.random()*winHeight; stepw[i] = 0.02 + Math.random()/10;steph[i] = 0.7 + Math.random();dir[i] = (Math.random()>0.5)?1:-1;document.write('<div id="snow'+ i +'" style="position: absolute; z-index: '+ i +'; visibility:hidden; "><img src="'+snowflakes[Math.floor(Math.random()*snowflakes.length)]+ '" border="0"></div>');}setTimeout("moreSnow()", speed);} function moreSnow() {for (var i = 0; i < num_flakes; i++) {if (posh[i] > winHeight-50) {posw[i] = 10+ Math.random()*(winWidth-movw[i]-30);posh[i] = 0;dir[i]=(Math.random()<0.5)?1:-1;stepw[i] = 0.02 + Math.random()/9;steph[i] = 1.3 + Math.random();} move[i] += stepw[i] *dir[i]; if (Math.abs(move[i]) > 3) {dir[i]=-dir[i]; posh[i]+=Math.abs(movh[i]*move[i]);posw[i]+=movw[i]*move[i]; move[i]=0;} objstyle = findDOM('snow'+i,1); objstyle.left = (posX()+posw[i] + movw[i]*move[i])+'px'; objstyle.top = (posY()+posh[i] + movh[i]*(Math.abs(Math.cos(move[i])+move[i])))+'px';objstyle.visibility = 'visible';} setTimeout("moreSnow()", speed);}[/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i] [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom