Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with javascript menu and <object>

Status
Not open for further replies.

frag

Programmer
Dec 7, 2000
321
GB
Hi!

I designed a page with a frameset (3 frames in columns).
In the first column (frame) there is a javascript menu. On mouseover the menu item over which the mouse is will pop up a submenu in the second frame (where the whole content is shown).
My problem is that I have a <object>-tag to show a flash animation on one of my pages that are displayed in the second frame and the javascript menu will not be drawn over this object. It seems that the object is one &quot;level&quot; higher than the menu. Do you know how I can fix that?

Hope that I could make my problem understanable...

Cheers

frag



patrick.metz@epost.de
 
I'm not so sure that this is fixable. The problem occurs (I think) because the browser doesn't deal directly with displaying the flash animation but leaves it up to the flash player. So the normal 'levelling' that the browser does doesn't apply to the flash animation. I think the same is true of form elements as well.

I think I read something related to this on this very forum but couldn't find it. Hunt around a bit and you'll probably get a better answer than mine (but one that will probably still say there is nothing you can do).

MrBelfry
 
Hm... I could not find anything related to my problem in the forum... perhaps I am to stupid for using the search-form. :-(

This is really annoying. That would mean that I either can have the menu or the flash but not both at the same time. [evil]

Will most probably get rid of the flash... *sigh*

Thanx anyway...



patrick.metz@epost.de
 
frag, this occurs with a number of elements that are treated as 'windowed' controls - combo boxes, flash plugins etc. As MrBelfry pointed out, some elements are immune from the normal z-index rules that govern the rest of a web page's elements. The way around this is to, in the same function that displays your menu, set the visibility of the offending item to 'hidden' - and back to 'visible' again when the menu disappears. It's not the most elegant workaround, but it's the only one we've got.

Perhaps reconsider the flash... is it useful? I mean is it doing anything that an animated gif can't do?
 
It's just an orgchart. I will design a static one (as a normal image) and throw this flash thing away.

patrick.metz@epost.de
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top