Results 1 to 4 of 4

Thread: Problem with Drop down/ Overlapping Content script in IE

  1. #1
    Join Date
    Feb 2008
    Posts
    10
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Problem with Drop down/ Overlapping Content script in IE

    1) Script Title: Drop down/ Overlapping Content script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lapcontent.htm

    3) Describe problem: Script is working perfectly with Firefox, Safari and Opera but in IE when I attempt to mouse over the drop down content it disapears.

    I cant work it out.

    Here is the page in question:


    Here is the css for the drop down content:

    #menu_items{background:#f8f8f8; margin-top: 3px; width: 200px; padding: 10px; text-align: left; color: #06c; border: 1px #ccc solid;border-bottom: 1px #ccc solid; line-height: 15px;}
    #menu_items2{background:#f8f8f8; margin-top: 3px; width: 220px; padding: 10px; text-align: left; color: #06c; border: 1px #ccc solid;border-bottom: 1px #ccc solid; line-height: 15px;}
    #menu_items3{background:#f8f8f8; margin-top: 3px; width: 200px; padding: 10px; text-align: left; color: #06c; border: 1px #ccc solid;border-bottom: 1px #ccc solid; line-height: 15px; text-align: right;}


    Any help would be much appreciated.

    Phil
    Last edited by sumer; 02-29-2008 at 09:38 PM.

  2. #2
    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

    In IE, due to the lack of background to the about_content and similar divisions (the drop downs), IE thinks that the mouse is off of them while passing over their transparent regions. Add:

    Code:
    background-color:white;
    to their style. Example:

    Code:
    <div id="about_content" style="background-color:white; position:absolute; visibility: hidden; padding-top: 10px;">
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    sumer (02-29-2008)

  4. #3
    Join Date
    Feb 2008
    Posts
    10
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Thanks very much John, thats fixed it.

  5. #4
    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

    You're welcome. There is a more complex solution that can maintain the transparent sections, at least in IE 7 and non-IE browsers, perhaps even in IE 6 and 5.5. But I won't go into that unless you are sincerely interested. It would involve applying separate styles depending upon which version of IE was being used to view the page.
    - John
    ________________________

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

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
  •