CodeOfIsis.Com
Coding for Pagan Websites
 Home Contribute Advanced Search Site Statistics Directory Register Links Polls Calendar Forum   IAmAWitch.Com
Welcome to CodeOfIsis.Com
Monday, September 06 2010 @ 11:01 AM EDT
   

Snowflakes on the web

General News I have been asked how I managed to get the snowflake effect on the IAmAWitch.Com website by more than one Witch, and so I'll detail how it was done...

Frankly, it was so simple as to be almost an afterthought! I like DHTML scripts and ready-made offerings that come from many lands, and the dynamicdrive.com website had just the thing I was looking for in a snow effect

If one visits the link:

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

They will find a snow image and a script to be installed. If you are comfortable with HTML and know to put such a script right after the "BODY" tag, you can make good use of the script in your own pages.

Since I use Geeklog to run my site, I placed the script in a strategic location to run on every page of my website! It just comes down to knowing your software and some experience.

In the following code:

//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;

you would need to change the path to match the location of your snow.gif file, so the trick is to get this properly changed in the script. You can also change the number of snowflakes visable at any one time by changing the "var no = 10;" to some other value. I chose five snowflakes for obvious symbology, but it could be any reasonable value you wish.

Hope that helps! Enjoy!

Story Options

Trackback

Trackback URL for this entry: http://codeofisis.iamawitch.net/site/trackback.php?id=2007011301061884

No trackback comments for this entry.
Snowflakes on the web | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.