Results 1 to 7 of 7

Thread: Javascript superfish menu and dd script incompatible?

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

    Default Javascript superfish menu and dd script incompatible?

    Hi,

    Not sure if this is the right place to post this, but I am using a superfish menu on a website and a featured content slider from DD. What is happening is that the drop down menu sometimes shows up behind the content slider rather than in front of it. This can happen in IE8 or others including Firefox. Is there anything I can do to stop this from happening? The boss wants it fixed no matter what browser is being used.

    I don't know if this is a conflict or whether it is in the menu code or the featured content slider code. Would appreciate any helpful insights from those who can write code.

    Corinne

  2. #2
    Join Date
    Aug 2011
    Location
    both, Germany and Bulgaria
    Posts
    54
    Thanks
    14
    Thanked 10 Times in 10 Posts

    Exclamation

    Hi,

    does the "z-index:xxxx" style property not working in your case??

    Cheers

  3. #3
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Should I look for the z-index in the css for the superfish menu or both it and the featured content slider?

    I'll take a look to see what I can find.

    Thanks for a direction to go in.

    webmiss

  4. #4
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay looked at css in both scripts. The content slider does not seem to have a z-index property, but the superfish does. Could that be the problem?

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

    Actually the content slider has a scripted z-index. It escalates steadily from 0, incrementing by 1 every time the image or content changes. So, if your menu has a relatively low z-index - say, like 10 or even 100, the slider will eventually cover it. There's no way to completely guarantee that the slider won't overtake the menu, but if you set the menu's z-index to 10000 or even 100000, it's very unlikely to happen.

    Another option would be to rearrange the layout of the page so that the slider is somewhere that the menu cannot be covered by it.
    - John
    ________________________

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

  6. #6
    Join Date
    Jul 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the suggestion. I'll try setting the z-index on the menu to 1000 and see how that works, right now it is at 100.

  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

    Go higher.
    - 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
  •