Results 1 to 10 of 10
-
1st Dec 2010, 08:59 PM #1OPOH GOD!!!!!Website's:
HotNewHipHop.comMake it snow on your website!
Make it snow for the holidays!
Step 1: Save and upload to your site one of the following 3 images (depending on the effect you want), by right clicking the image, and choosing "save as":
Step 2: Having done that, simply add the below chunk of code to the Header section of your page: (In vbulletin add this to the header to have it in all pages or add it to forumhome to have it only in the index)
Copy and paste this code and add it to header or wherever you want:
Code:<script type="text/javascript"> /****************************************** * Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html) * Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code * Last updated Nov 9th, 05' by DD. This notice must stay intact for use ******************************************/ //Configure below to change URL path to the snow image var snowsrc="snow.gif" // Configure below to change number of snow to render var no = 10; // Configure whether snow should disappear after x seconds (0=never): var hidesnowtime = 0; // Configure how much snow should drop down before fading ("windowheight" or "pageheight") var snowdistance = "pageheight"; ///////////Stop Config////////////////////////////////// var ie4up = (document.all) ? 1 : 0; var ns6up = (document.getElementById&&!document.all) ? 1 : 0; function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } var dx, xp, yp; // coordinate and position variables var am, stx, sty; // amplitude and step variables var i, doc_width = 800, doc_height = 600; if (ns6up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = iecompattest().clientWidth; doc_height = iecompattest().clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc for (i = 0; i < no; ++ i) { dx[i] = 0; // set coordinate variables xp[i] = Math.random()*(doc_width-50); // set position variables yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; // set amplitude variables stx[i] = 0.02 + Math.random()/10; // set step variables sty[i] = 0.7 + Math.random(); // set step variables if (ie4up||ns6up) { if (i == 0) { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>"); } else { document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>"); } } } function snowIE_NS6() { // IE and NS6 main animation function doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10; doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")? iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight; for (i = 0; i < no; ++ i) { // iterate for every dot 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(); } dx[i] += stx[i]; document.getElementById("dot"+i).style.top=yp[i]+"px"; document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px"; } snowtimer=setTimeout("snowIE_NS6()", 10); } function hidesnow(){ if (window.snowtimer) clearTimeout(snowtimer) for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden" } if (ie4up||ns6up){ snowIE_NS6(); if (hidesnowtime>0) setTimeout("hidesnow()", hidesnowtime*1000) } </script>
Make sure that the "snowsrc" variable in the above code correctly references the full URL path to the image used. Enjoy!
for example right now is: var snowsrc="snow.gif"
you may change that to:
var snowsrc="yoursite.com/images/snow.gif" or where ever you placed the image.
Remember to rename the snow images to snow.gif if you plan to use any other image, or simply point the path to that image!
Source: DynamicDrive
DEMObxflow Reviewed by bxflow on . Make it snow on your website! Make it snow for the holidays! Step 1: Save and upload to your site one of the following 3 images (depending on the effect you want), by right clicking the image, and choosing "save as": http://www.dynamicdrive.com/dynamicindex3/snow.gif http://www.dynamicdrive.com/dynamicindex3/snow2.gif http://www.dynamicdrive.com/dynamicindex3/snow3.gif Step 2: Having done that, simply add the below chunk of code to the Header section of your page: (In vbulletin add this to the Rating: 5
-
1st Dec 2010, 09:02 PM #2Member
Thanx for the share...BX..
-
2nd Dec 2010, 12:17 AM #3Member
This is cool
I might put this on for my website, but some people its SLOW for them.
-
2nd Dec 2010, 07:42 AM #4Member
Such effects are the second most annoying thing on websites ( right behind music background and flash ads with sound ) - don't use it on your sites if you like your visitors.
.
-
2nd Dec 2010, 07:46 AM #5BannedWebsite's:
GFXFire.com Max-Share.org WarezShares.comCool effect, saved it for the future but one thing is for sure, I wouldn't use it on my site cause like Ivan said, it's annoying.
-
2nd Dec 2010, 07:49 AM #6MemberWebsite's:
MyRapidleech.NetWorks With phpBB ?
Please let me know will add to my siteRespected: Mr-R-T, Belle, eLight, iPowerz, Vizoomer, Cory, Rohit, AllSolo
MyRapidleech.net - Windows Encoding RDP,500GB HDD,Unmetered Bandwidth at $30/mo (DE)
-
2nd Dec 2010, 08:36 AM #7mmm mmm!
Nice effects, thanks for sharing m8.
HATERS GONNA probably bring up some valid points considering I am an ignorant little twat so far up my own ass that i blame my problems on everyone and if you criticize me you're automatically wrong.
-
2nd Dec 2010, 08:40 AM #8MemberWebsite's:
StoneArcade.comi was actually just getting this from another source as well lol.. good share though man
-
2nd Dec 2010, 08:45 AM #9Member
nice share
-
2nd Dec 2010, 08:47 AM #10BannedWebsite's:
google.com knownsrv.comthanks dude
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Let it snow on every site
By agroni112 in forum General DiscussionReplies: 4Last Post: 26th Dec 2011, 01:54 PM -
X'mas special | Stunning Snow Sculptures !!
By XxX in forum General DiscussionReplies: 4Last Post: 21st Dec 2010, 08:51 PM -
Good Snow Effect
By Jesse in forum Tutorials and GuidesReplies: 3Last Post: 16th Jan 2010, 03:55 PM -
How to Add snow on your logos with Photoshop
By Flash in forum Tutorials and GuidesReplies: 17Last Post: 11th Jan 2010, 05:21 AM -
Christmas Snow Effect
By Mr Happy in forum Webmaster ResourcesReplies: 1Last Post: 11th Dec 2009, 12:24 AM
themaCreator - create posts from...
Version 3.22 released. Open older version (or...