January 20, 201115 yr Hi I have a project: http://studioaura.com/woodpeckerwindows/case-studies-carshalton-surrey.html It requires (a) an image preloader for the main image on the right to fade-in smoothly and also ( the standard lightbox script loading from the gallery image at the bottom left. The trouble is at the moment I can only have one or the other. Does anyone know why? I have fixed something similar before by changing the $ sign in the jquery script to 'jQuery'. However this is already present. Are there are any Javascript experts that could offer some advice as to how to get both scripts working? Cheers, Sam.
January 20, 201115 yr are you using the Lightbox? I couldn't see it being used on the site. have you tried another. I gave up on the standard one long ago as it kept conflicting with things. Now favour colorbox. There are a whole heap of them out there though http://planetozh.com/projects/lightbox-clones/
January 20, 201115 yr Author Thanks for the reply, I was using the lightbox but I too have had issues with it before. Colorbox looks very interesting and I am going to give it a try! Many thanks. Sam
January 20, 201115 yr Author I had a look and it seemed interesting, however, the client wants the original lightbox and there is a conflict between the prototype.js file and the jquery library. Does anyone know a solution to this? I've searched everywhere but nothing anyone has offered has stopped this conflict. Basically I want to use the standard lightbox and also this image preloader: JS: <script> function turnoffpreloader() { var preloader = document.getElementById("product_preloader"); var mainimage = document.getElementById("main_product_shot"); preloader.style.display = "none"; //mainimage.style.display = "block"; jQuery("#main_product_shot").fadeIn('slow', function() { //alert("testing"); }); } </script> HTML: <span id="product_preloader" style="display:block;position:absolute;top:280px;left:50%;margin-left:-10px;"></span> <img src="images/home.jpg" alt="" title="" onload="turnoffpreloader()" id='main_product_shot' style='display:none;' />
Create an account or sign in to comment