Results 1 to 2 of 2

Thread: JavaScript Conflict?

  1. #1
    Join Date
    Feb 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JavaScript Conflict?

    I am using the Lightbox code from Dynamic Drive and it works beautifully (thank you) except when I put it into my website and I am thinking there must be a conflict because I have other JS on the site. I even tried changing the word "Lightbox" to "crewbox" to avoid conflict, but no joy.

    The site is http://www.silkwebsolutions.com/kacie/index2.html- navigate to "CREW" and click on an image.

    The way that the page is supposed to work is here: http://www.silkwebsolutions.com/kacie/crew2.html

    I would be very grateful if someone could assist me.

    Thank you very much. S

  2. #2
    Join Date
    Feb 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have fixed the issue. Thanks

    All it was (maybe this will help someone)

    This is commonly caused by a conflict between scripts. Check your body tag and look for an onload attribute. Example:
    <body onload="MM_preloadImages(‘/images/menu_on.gif’)…;">
    A quick fix to this problem is to append the initLightbox() to the onload attribute as so:
    <body onload="MM_preloadImages(‘/images/menu_on.gif’)…;initLightbox()">

    Good luck!

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
  •