Results 1 to 8 of 8

Thread: hvmenu appear under my drop down list

  1. #1
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy hvmenu appear under my drop down list

    1) Script Title: HVMENU

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/hvmenu/

    3) Describe problem:

    hi, there is a drop down list below my HVMenu. As the HVMenu shows its drop down child, it appears under my drop down list. This problem appears in IE browser, it is ok in FireFox.

    What can i do to solve this problem???

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Try changing the z-index property in your css file. Make the menu have a larger value than anything else on the page.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Feb 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by thetestingsite View Post
    Try changing the z-index property in your css file. Make the menu have a larger value than anything else on the page.

    Hope this helps.
    thanks for your reply!

    i've tried on your suggestion...

    however, the problem is not solved...

    do you have any other idea?

  4. #4
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have the same problem happening with Cool DHTML Tooltip II (http://dynamicdrive.com/dynamicindex5/dhtmltooltip2.htm)

    I've tried setting the z-index higher and it doesn't work. Even when I set the lists with a negative z-index the tooltip still appears behind them in IE. Very annoying.

  5. #5
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    See the attached screenshot of this issue in IE 6. Doesn't happen in FF.

  6. #6
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    A lot of people are looking at this page, but few have replied. I'm new to the forum, so is there some additional information that I can provide or can someone suggest a different approach to finding a solution to our issue?

    Thanks in advance for helping a newbie.

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by espelund View Post
    I have the same problem happening with Cool DHTML Tooltip II (http://dynamicdrive.com/dynamicindex5/dhtmltooltip2.htm)

    I've tried setting the z-index higher and it doesn't work. Even when I set the lists with a negative z-index the tooltip still appears behind them in IE. Very annoying.
    This came up before. Here is a demo from that:

    http://home.comcast.net/~jscheuer1/s...ip_II_shim.htm

    As you can see from the background around the pointer, it isn't ideal. A better solution would be to move the tooltip away from the select element.

    This was first put forth here:

    http://www.dynamicdrive.com/forums/s...56&postcount=4
    Last edited by jscheuer1; 04-20-2007 at 07:15 PM. Reason: Add link to original post
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  8. #8
    Join Date
    Jul 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by liyenn View Post
    1) Script Title: HVMENU

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/hvmenu/

    3) Describe problem:

    hi, there is a drop down list below my HVMenu. As the HVMenu shows its drop down child, it appears under my drop down list. This problem appears in IE browser, it is ok in FireFox.

    What can i do to solve this problem???
    In IE (6 and previous versions), the drop down control is a windowed control and layer or z-index properties can not be applied on this control. Always this control will be put above all other document level controls. Only way to get rid of this is to hide the drop down list controls using javascript whenever we use the menu.

    This is what i have done in my HV Menu javascript file to avoid the dropdown problem.

    function hideSelects()
    {
    var aSelects = document.getElementsByTagName( "select" );
    var nSelects = aSelects.length;
    for( var i=0; i<nSelects; i++ )
    {
    eSelect = aSelects[ i ];
    eSelect.style.visibility = "hidden";
    }
    }

    function showSelects()
    {
    var aSelects = document.getElementsByTagName( "select" );
    var nSelects = aSelects.length;
    for( var i=0; i<nSelects; i++ )
    {
    eSelect = aSelects[ i ];
    eSelect.style.visibility = "visible";
    }
    }

    u hav to call these functions in openMenu and closeMenu functions respectively

    u can improve this code by hiding only the controls which are overlapping with the menu list.

    hope this helps

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •