Add Snow Fall in a website with Frames

RL

Member
Sep 22, 2000
30
0
0
Ok, I just found a website that tells you how to add a falling snow to your website with this script and a js file. <SCRIPT LANGUAGE="JavaScript" src="sdbs_header_index_images/snow.js"> </script>

Now, I am able to add this script to a website, but my website have many frames. And is there a way to add the falling snow to the frames so that I don't have to add this in every pages. Thank You. By the way, what is js file format, what do I open it with.
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
*.js files are basically JavaScript source files.
You can open those in notepad or other text editors (for us fancy users, we use vim ;) )

the problem is that javascript is usually tied to a particular webpage. that means, if you want to include the snow in page1.html and page2.html, you have to explicitly include them in each of the files.

you can treat frames as placeholders for webpages. that means if you include something like the javascript text, it won't get picked up by the "children" frames.

of course, i may be wrong, in which case somebody please correct me

and i agree with BigFatCow, this sounds pretty nifty ... care to share with us where you found it? :)

-864-
 

BigFatCow

Diamond Member
Aug 11, 2001
3,373
1
0
that is cool!

i already knew how to do almost all the other things on that web site (i didnt know a few of the java things). but that site does have very usefull FREE information for anyone wanting to start learning.
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
cool, thanks for sharing :)
btw, if you open the snow.js file in text editor, you will see this line:
var snowflake = "http://www.learnkey.com/lkweb/dott4.gif";

basically it's gettting the snowflakes from someone else's website --- bad bad bad ....
but what that means is that you can replace that line to refer to any image you want.
i would recommend getting your own "snow flake" image, because:
1. it makes sure you have the image in case learnkey moved the location of the gif file
2. it's bad stealing someone else's image, and not to mention the bandwidth when calling this script.

for JavaScript resources, you may also want to check http://www.javascript.com/. and this one is fun as well :)

-867-
 

RL

Member
Sep 22, 2000
30
0
0
Well, I would love to learn how to make the snow image too. But How, can you tell me how to do that. Thank You. And what software do I use to create it
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
what i mean was actually if you're going to use the snow flakes, at least copy the file locally to your server and link to your server instead of learnkey.com. of course that's not required, but just what i think. ...

or if you want something other than snowflakes, just hunt for some cool icons and use those

if you are thinking of creating your own icons, any imaging program will do (as long as they support gif files). could be a little hard, but the work should be worth it

i don't know ... maybe i'm just blabbering .... it's almost 2 am and i'm still stuck at my work (which is supposed to be 8am to 5pm :| )

/me sssoooooooo.... sleepy :(

-869-