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

JavaScript Menu Appears Behind Server Control 2

Status
Not open for further replies.

BoulderBum

Programmer
Jul 11, 2002
2,179
US
I link my page to a JavaScript template which has some drop-down menus for navigation. Everything works fine, except that when a menu overlaps my DropDownList, the DropDownList ends up being BEHIND the menu.

I tried having my DropDownList subscribe to a CSS class with a Z-INDEX of -2 to -5000, but that doesn't seem to help at all.

What can I do to make the menu stuff appear IN FRONT OF my DropDown?
 
you can't - this is a well documented bug/feature in many browsers because of how the form elements are rendered by the OS.

what you can do is hide your form element when the menu is active, using something like

document.formname.fieldname.style.visibility = "hidden";



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Darn.

Unfortunately, I don't have access to the script (I just link to it), so I guess I'm just hosed.

Your signature made me laugh.
 
Here's pretty much the definitive article with examples:

It boils down to: the OS creates them, not the browser. Solution- hide or reposition.

Jemminger, how about:
try { succeed(); } catch(E) { tryAgain(); } finally { blameNewGuy(); }

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
good one clarkin..."blameNewGuy()"

another solution: use Mozilla! v1.5 and Firebird 0.7 don't have this problem.


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Yep, using Firebird 0.7 here :)
Have a look at
and
in IE vs Fb/NN - IE are really falling behind.

Will continue to have to use IE 6 for 'bad' sites like Tek-Tips that don't look right if they aren't rendered in IE quirks-mode.

They should fix their doctype, then fix all the wierd problems their old html causes (being in standards-mode) :)

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
>>>"Will continue to have to use IE 6 for 'bad' sites like Tek-Tips"
looks pretty much the same to me in firebird 0.7??


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
For me the main forum pages have each thread spaced out too much as compared to the same pages in IE (something to do with the images left of the thread subject going on top of each other instead of side-by-side). I could post a bit of a screeny from home to show you, perhaps.
At this point, I'm just putting up with it rather than swap back to IE for this site.

Another good feature in Firebird 0.7 that IE6 is lacking is switching between available stylesheets. Have a look at say

In firebird there will be a little crayons icon at the very left of the status bar, click to choose different stylesheets :)

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top