PDA

For continued disscussion on this topic : Using mouseover to change frame?



funnelfan
07-01-2000, 07:09 AM
I have a fairly clear understanding of how to use mouseover to change a image. But I've never seen a example of using mouseover the to change the HTML file that a frame has loaded.

What I want to do is when a user hoovers his mouse over a selection on the menu frame (which at this point is menu1.html), I want to use the mouseover command to change the menu frame to menu2.html

If you guys can get this figured out, it'd make my menu system a hell of a lot faster to load, and look better to boot.

I don't use frames on my webpage yet, but I need to solve this little riddle so I can add them.

Thanks to all who can help!

Kool Dude
07-01-2000, 08:17 AM
The mousover part isn't too hard, the preloading of the other pages I'm not sure on.. for the mouseovers..

onMouseover="parent.framename.location='nextpage.html'"

framename would be the name of the target frame.

Maybe someone else will have some preloading ideas. :)

Arielladog
07-01-2000, 03:48 PM
If you just preload normally, wouldn't it work?

Vincent Puglia
07-01-2000, 08:20 PM
Hi,

preloading is usually considered an image thingy, though you can preload functions and variables also. So yes, if you load all your images, etc through a *.js file with the first frameset/page, loading any subsequent pages that use those images/functions/etc will be instantenous (sp?). Text however, is another matter. You would have to put all of your text within vars (var str1[0] = "This is paragraph 1";) and then document.write() them to the page -- only then could it be consider preloading. The problem, though, is the first page will take that much more time to load, and if you have a lot of images etc., you could lose your surfer.

Vinny

funnelfan
07-02-2000, 10:01 PM
I got it to work fairly good, to see what I did goto:

http://www.icehouse.net/funnelfan/test.html

Thanks

Vincent Puglia
07-02-2000, 10:09 PM
You're welcome, Ted.

It seems to work.
btw: I want some of those steam engines for my backyard :)

Vinny