Results 1 to 10 of 10
05-27-2003, 08:33 AM #1
Pulldown menu blocks my popup menu
Last edited by George123; 05-27-2003 at 08:36 AM.
05-27-2003, 08:59 AM #2
05-27-2003, 09:07 AM #3
Dave, I am not able to give a link at this moment since I am working on my test server.
05-27-2003, 10:19 AM #4
How about posting some code then? It's kind of hard to diagnose the problem blind.
05-27-2003, 10:50 AM #5
Code itself is really normal. Just some code to generate popup menu and pulldown menu. It works fine with ns6 but not in IE6. In fact, it works in IE also except the selection box layover the popup menu. I guess it's just IE's property that pulldown menu layer has a higher priority to show up than popup menu layer. The following is some code, thanks for your help.
<span class=wrap2 onClick="dropit(event, 'dropmenu0');event.cancelBubble=true;return false"><font face=Verdana><b><a href="alternate.htm" onClick="if(ns4) return dropit(event, 'document.dropmenu0')">General Information</a></b></font>
<OPTION VALUE=10>--- Select Application Type ----</OPTION>
<OPTION>Error: System offline</OPTION>
05-27-2003, 02:08 PM #6
Try setting both elements to have a z-index value, with the element you wish on top having a higher z-index.
This might, however, I distrust Internet Explorers capabilities when it comes to ilayers.If one of our members helps you, please click the icon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
05-28-2003, 08:06 AM #7
Thank you. Z-index does not work. I checked microsoft webpage. My problem is the exact microsoft "designed" way. I have to figure out some work around solution for my problem. Thank you ALL for your help.
05-28-2003, 10:30 AM #8
Here's a simple function I've written to help me get over this IE bug. Just stick it in at the beginning of your onclick event in your code above and you should be good to go.
// Hide the drop downs so they don't show through the pop up window.
var lobj_collection = document.getElementsByTagName("SELECT");
for (var i = 0; i < lobj_collection.length; i++)
lobj_collection(i).style.display = as_display;
05-28-2003, 10:32 AM #9
Oh...sorry....pass in either "none" or "inline" as your parm options.
05-28-2003, 10:57 AM #10
Thank you. This is the only way to work around this problem. Microsoft probably leaves this bug unfixed on purpose. They encourage people to use Popup object to do this kind of job but popup object only works in IE5.5+. Thanks all for your help!