Yes, but it depends upon the script(s) involved. Lightbox has several versions which potentially complicates things. Basically though, a page can have only one onload event. These can be declared in several different ways so, the trick is to find all onload declarations (including any on external scripts linked to your page) and combine them together in one place. There are other approaches but the most economical and successful is the combining of multiple onload events into one.Originally Posted by WebFire
Most but not all versions of lightbox use this onload event:
initLightbox();
Sometimes just adding this to your body's onload will do the trick, other times it also needs to be removed from the external script file as well.
Specific examples of how to do this with the original lightbox version and preloading can be found here (on the author's site):
http://www.huddletogether.com/projects/lightbox/
Scroll down to the troubleshooting section.



Reply With Quote
Bookmarks