CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Other Programming > Scripting - Client Side
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Scripting - Client Side Discuss client-side scripting issues. Client-side scripting such as JavaScript, JScript, and VBScript as well as technologies such as HTML and stylesheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 15th, 2001, 04:00 PM
    Codelesscode Codelesscode is offline
    Junior Member
     
    Join Date: Nov 2001
    Location: New York, NY
    Posts: 1
    Codelesscode is an unknown quantity at this point (<10)
    JavaScript Mouseover Drop Down Menu Falls Behind a regular HTML select element

    Apology for the JavaScript question in a Java Programming discussion board.

    Problem:
    On a HTML page, there is a JavaScript mouse drop down navigation menu on the top, and some HTML elements in the middle area.

    When a mouseover event triggers the drop down menu to display its menu item. The menu item list overlapse the page and all of its HTML elements except the &lt;select&gt;...&lt;/select&gt; element. The menu items are displayed under the &lt;select&gt; element rather than on top of it like with all other HTML elements. This behaviour onlys occurs for the &lt;select&gt; drop down item.

    I've already tried z-index to try and remedy the problem, but it doesn't work. The issues here appears to be how elements are layered and displayed in a browser.

    Thanks in advanced for any ideas and thoughts.

    Reply With Quote
      #2    
    Old November 20th, 2003, 02:46 PM
    seandwilkins seandwilkins is offline
    Junior Member
     
    Join Date: Nov 2003
    Location: Nashville
    Posts: 1
    seandwilkins is an unknown quantity at this point (<10)
    Lightbulb Controls fall behind drop down menu in asp page.

    Set the z-index to a negative number!
    Reply With Quote
      #3    
    Old November 24th, 2003, 02:42 AM
    Thread1's Avatar
    Thread1 Thread1 is offline
    Elite Member
     
    Join Date: Jan 2003
    Location: 7,107 Islands
    Posts: 2,487
    Thread1 is a name known to all (1000+)Thread1 is a name known to all (1000+)Thread1 is a name known to all (1000+)Thread1 is a name known to all (1000+)Thread1 is a name known to all (1000+)Thread1 is a name known to all (1000+)Thread1 is a name known to all (1000+)Thread1 is a name known to all (1000+)
    Definitely it won't work because the SELECT tag is belong to the Windowed elements while the menu tag that you are using is belong to the Windowless element. These group of elements do not share the same z-order in fact they are separately displayed in the browser such that the Windowed plane is always on top of the Windowless plane in the z stack..

    This is really unfortunate especially when the menu (TABLE tab) is always touching the SELECT tag, but it is really easy indeed to just change the page design so that it won't touch the SELECT tag anymore.. But I think of a way that, you could wrap the menu inside a Windowed element i.e., IFRAME so that the z-order will work on both Windowed element.
    __________________
    Busy
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Other Programming > Scripting - Client Side


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 06:37 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009