Snowing over framesets

windows

Guest
I got a javascript code from a site that gives the page a snowing effect. This is the page with the code on:<br />
<!-- m --><a class="postlink" href="http://www.hooverwebdesign.com/snoweffect.html">http://www.hooverwebdesign.com/snoweffect.html</a><!-- m --><br />
<br />
I was wondering if it is possible to use it on a page with frames. This way there can always be snow falling when a new page is opened within the main frame. Is this possible to do because i really don't want to add the script to every page on my site. Could some one help please????<!--content-->Put it in an external JavaScript file.<br />
<script type="text/javascript" src=http://www.webdeveloper.com/forum/archive/index.php/"snow.js"></script><!--content-->Because the script needs to be in the body section of a document to work you would have to place the script in each of the pages that are loaded into the individual frames. That sounds like a lot of work to me.<!--content-->i have frames within the frames, so i would have to put the script in all the frames aswell. this would also make the snow fall independantly in all 3 frames.<br />
<br />
Wot did u mean about java script, how would it effect wether it appears over the frames?<br />
<br />
Thanks, I'll have ago at the javascript, but if it doesn't work, ill think i'll leave it. If i have to do all that work, just to take it off after christmas. Thanks anyway<!--content-->Based on the script instructions you must place the script in the body section of the document that you want the snow to appear. This would not work if you attempted to place it in the head section of the frameset. A frameset is just a way to display multiple "windows" that have separate documents in each of them. You are correct also that if you placed the script in each document that the snow would fall independantly. Good Luck.<!--content-->If you want the snow to be falling all over your screen, not just within one frame, you might considder to put your frameset in a div layer with z-index:1;. Put a second layer on top of it which has the snow effect. Give that layer z-index:2;.<br />
<br />
I am not sure if this would work but it's worth a try.<br />
<br />
Cheers, Jochem :cool:<!--content-->i'm not really ne good with html. I did wot i thjought i ment, this is wot i did:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><br />
<html><br />
<head><br />
<title>Sk8berty - The local Sheffield Skate Scene</title><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
</head><br />
<frameset rows="137,*" cols="*" framespacing="0" frameborder="NO" border="0"><br />
<frame name="header" target="main" scrolling="no" marginwidth="0" marginheight="0" src=http://www.webdeveloper.com/forum/archive/index.php/"header.html"><br />
<frame name="mainframe" marginwidth="0" marginheight="0" scrolling="auto" src=http://www.webdeveloper.com/forum/archive/index.php/"pages/homemain.htm" target="_self"><br />
</frameset><br />
<br />
<body><br />
<div><br />
*****{script}*****<br />
</div><br />
<br />
</body><br />
<br />
</html><br />
<br />
******{script}****** being the snowing script, i also tried it with the frameset in <div>, because i'm an amature with html i did'nt know wot u ment so if u cud be kind to explain it in a little more depth please. thank you.<!--content-->i forgot to say, wen they were both in <div> they didn't work, but i got loads of snow jumping about at the very top of the page, the rest was white. when only the script was in div, and the frameset wasn't, i just got the frames, with no snow. I don't know if this will help but to be honest i dont think it can be done with out doin wot requestocde says. If anyone knows a way, please tell me b4 christmas. thanks :D<!--content-->
 
Back
Top