PDA

View Full Version : Snow Script



Skype
12-12-2011, 05:31 PM
So its christmas and i was looking for a snow on the background but im really noob in these things to add. could someone explain it in noob Tutorial

Link! http://www.dynamicdrive.com/dynamicindex3/snow.htm

djr33
12-13-2011, 12:10 AM
The directions are clear, I think. What is the problem? Save the images to your website, then add the Javascript code to your page.
You can also look at the "developers view" (or click "view>source") to see how it all fits together in a real page.

mlegg
12-13-2011, 03:36 AM
I just used that today on a website. You just copy the code into the body and it works. You have to save the snowflake.gif in where you upload your website at. If you keep the snowflake.gif in the root directory the code will work as is; if you save the gif to a folder such as images, then change the code of the line to show where the script should locate it.

This is the line you would change:

//Configure below to change URL path to the snow image
var snowsrc="snow.gif"

so if you keep it in images, then you would need the code to say var snowsrc="images/snow.gif"