View Full Version : Scripts over multiple frames
BigRedPA
10-23-2002, 08:08 AM
Hi!
Wonder if someone can help.
I donate my services to a non-profit organization. One of my tasks is to maintain their WEB Site.
Their WEB Site is comprised of frames.
I want to run a script that appears over all (5) frames.
I've tried to use the ONLINE function in the FRAMESET Tag but it doesn't work.
Got any sugestions?
Thanks
Save your script in a .js file then call it in each frames like this
<script src="blah.js">
</script>
BigRedPA
10-23-2002, 08:32 AM
Josh,
Since the Page contains 5 frames, wouldn't that start 5 scripts in each of the frames?
I want to run 1 script that appears over the entire Page.
fyi
The script displays floating ghosts over the Page for Halloween.
Thanks again!
Joe
I understand you now.but I guess it's not possible.besides frame isn't very good.
BigRedPA
10-24-2002, 09:00 AM
Thanks Josh.
People either love or hate Frames.
I guess I can convert the page to Tables.
Thanks again.
Joe
I wouldn't recommend using tables either. Tables are not for design.
BoR|S
10-24-2002, 10:53 AM
So what's your suggestion?
Anyway, you can use a JS in the main page (the one that contains the frameset) that will apply changes to frames using javascript.frames.framename....
BigRedPA
10-24-2002, 12:52 PM
Boris,
The JS I'm trying to run is floating ghosts for Halloween.
I want them to hover over all frames (5) on the Page.
The ONLOAD="JSFX_StartEffects()" works in BODY Tags but doesn't in the FRAMESET Tag.
Got any suggestions?
Thanks
Joe
So what's your suggestion?
I would suggest learning CSS.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.