PDA

View Full Version : javascript drop down menu


liquidkrep
10-14-2009, 08:58 PM
I'm having an issue with a javascript menu on my site. Here is the link, http://www.jblspearguns.com

1. For some reason and in IE only, the sub menus go behind the flash that is below.

2. Does anybody have an idea how I can have the submenus drop down when hovering over link instead of clicking.

Any help would be much appreciated.

RysChwith
10-15-2009, 07:03 AM
Number 1 is because Flash movies are "windowed" elements. IE will display them on top of pretty much anything. The only reliable exception I know is an iframe. So the solution I generally use is to create an empty iframe and hide it behind the div (or other block element) with the list in it. The iframe covers the Flash, and then the links cover the iframe.

Rys

soakdigital
10-15-2009, 08:37 AM
To enable z-index positioning with Flash elements, you need to specify a wmode parameter, such as:

<param name="wmode" value="transparent">

liquidkrep
10-15-2009, 12:28 PM
Number 1 is because Flash movies are "windowed" elements. IE will display them on top of pretty much anything. The only reliable exception I know is an iframe. So the solution I generally use is to create an empty iframe and hide it behind the div (or other block element) with the list in it. The iframe covers the Flash, and then the links cover the iframe.

Rys

Can you elaborate a bit more. Do you mean to have an iframe in a div that is behind the menu? But wouldn't that cover everything else that is below the menu?

RysChwith
10-16-2009, 06:54 AM
It's probably moot, because I think Soak is actually correct.

But yeah, it'd cover everything below the menu. Which, in your case, would mean resizing it along with the menu as it expands and contracts.

Rys