Forum Moderators: open
What I'm trying to do: have onClick & onMouseOver & onMouseOut of DIVs w/in a list change the contents of another DIV on the same page. I want the contents of the changing DIV to be external files. Is the only way to do that with layers? I have the luxury of only needing to support IE 5+ & NN 6+.
Let me know if I'm being unclear....
Thanks!
Beth
If you could elaborate a little more as to what you need to do I can probably offer a more complete solution.
Is this an iframe thing, then?
Thanks! :)
<URL snipped>
(edited by: Marcia at 7:01 pm (utc) on April 23, 2002)
If you use the iframe method your LI items could simply be links that target the iframe (like a normal frame):
<a href="welcome.htm" target="myIframe">welcome</a><iframe name="myIFrame" ......etc
Or if you choose to load the whole thing up at once and do it dynamically you just need to put your content in a series of layers all positioned at the same spot with their visibility set to hidden.(style="visibility:hidden"). Your funcThatChangesColorAndLoadsBox(foo) would then set the relevant layer's visibility to visible.
Hope I'm not drifting off down the wrong road there.
Josh
I've been looking for a way to do the same thing. Basically, I have found two options that seem viable - the same two that Joshie outlined. Either I use iframes, in which case I have all the navigational/branding limitations that come with frames, or I download an entire site's worth of content with the first download.
neither option really suits me. If I find something better, I'll tell you.
The browsers you mentioned can both handle this functionality. It gets messy when you need to design for NN4, but you should be alright.
Good luck!
Eeblet, could you stickymail me a URI so I can see what you're doing dynamically?
*Admittedly it won't require a cray to change the innerHTML, but it will be slower, probably notably so on older clients. The reason it's slower is that the browser will have to recalculate the document flow (lie of the land so to speak).
- javascript controls the source of an iframe
- each external file consists of
- a jsp include that contains header schtuff (doctype, charset, inline style), same file for each page
- the text
- a jsp include that contains footer schtuff (closing tags)
does this sound about right?