Results 1 to 2 of 2

Thread: JavaScript Conflict?

  1. #1
    Join Date
    Feb 2011

    JavaScript Conflict?

    Hello Everyone, I am really hoping someone can assist me. I have created a site using some JavaScript and everything is working great, then I tried to add in a "lightbox" to have a popup window appear when you click on an image but instead of it opening the popup it opens the image in a different window.

    The site is http://www.silkwebsolutions.com/kacie/index2.html - navigate to "CREW" and click on the 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
    I fixed the issue - 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()">

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center