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.
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()">
Bookmarks