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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript menu showing behind list box

Status
Not open for further replies.

NeeNee

Programmer
Apr 2, 2002
97
CA
I found a menu on the web and placed it at the top of one of my pages. It works great until I placed a list box at the top. When I look at the menu, it drop downs behind the list box but in front of the text. Is there a way to fix this problem. I plan on using this menu for all my web pages and inquiries.

Denis Andre
Progrmammer, Canada
 
Listboxes have the highest Z index possible, always.Therefore they will always show up on top of everything else.
There is a trick to solve this problem that a lot of menus on the web use.
Basically this is how it works.
Whenever an item from the menu is selected the listboxes/comboboxes get hidden, when the mouse is outside the menu bar the boxes are visible again.

I don't have a good reference on that trick from the top of my head, but that would get you started.

grtfercho çB^]\..
"Imagination is more important than Knowledge" A. Einstein
-----------------------------------------------
 
u should also look into iframes, an iframe can be Drawn over a select box...

Known is handfull, Unknown is worldfull
 
I use IFrames on my menus. Just stick an empty iFrame, the same size as your drop downs behinde everthing

________________________
JoelMac
 
JoelMac,

I am running into the exact same issue. I have never used an IFrame before. Could you give a little example of how one would be coded?

THANKS!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top