Results 1 to 5 of 5

Thread: Multiple scripts on one page

  1. #1
    Join Date
    Sep 2010
    Location
    Crystal River, FL
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Multiple scripts on one page

    1) Script Title: anylinkmenu.js and fadeslideshow.js

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

    3) Describe problem:

    I have a website where I am using two javascripts that I downloaded from dynamicdrive. One for the drop down menu and one for the slide show. When I try to use the drop down menu it is hiding behind the slide show images. Anyone else have this problem.

    The drop down menu is the anylinkmenu.js and the slide show is the fadeslideshow.js

    My web address is www.citrusedc.net

    Thanks for any help in this matter.

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    try this css
    Code:
    #fadeshow2 {
    z-index: 1;
    }

  3. #3
    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 will lose your mouseover pause with that. The alternative is to raise the z-index of the menu. It's a little more complicated:

    Code:
    .anylinkmenu {
    	z-index: 1101;
    }
    
    .anylinkshadow {
    	z-index: 1100;
    }
    Add to the end of your anylinkmenu.css file.
    - John
    ________________________

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

  4. #4
    Join Date
    Sep 2010
    Location
    Crystal River, FL
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much the changes to the z-index on the anylinkmenu worked. I'm glad I found this forum. I was sure other people had this issue before. I wasn't familiar with the z-index in the css and need to learn more about it.

    Thanks!

  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

    You can Google z-index. But basically it's how things appear on the z-axis. The x-axis is width, the y-axis is height, and the z-axis is depth. However, unlike width and height that apply in almost all situations, for z-index to take effect you need to also have position relative, absolute, or fixed on all elements involved in the z-axis stacking. The higher z-index on elements positioned as mentioned allows them to appear over the lower z-index elements whenever one or more of them are trying to occupy some of the same space on 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
  •