PDA

View Full Version : Delay whilst Simple Controls Gallery initialises



Lol999
04-28-2011, 07:56 PM
1) Script Title: Simple Controls Gallery v1.3

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/simplegallery.htm

3) Describe problem: I'm using the Simple Controls Gallery on my website and it is sometimes taking around 10 seconds for the gallery to initialise, I'm presuming whilst the images load. There are currently 52 images, all optimised for web via Photoshop. I have had to disable the autoplay as the first two or three images were half displaying. is there a way of setting a delay, preferably with user notification such as a status bar, whilst the gallery initialises?

Thanks, Lol

ddadmin
04-30-2011, 12:29 AM
Try the below modified .js file, which should load the slideshow only when all the images have preloaded. It does utilize features found in jQuery 1.5x, so instead of the default:


<script type="text/javascript" src="jquery-1.2.6.pack.js"></script>

reference in the HEAD section of your page, you'll need to replace that with:


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>

If the modified code works, then we can go on to the next step of adding some sort of preload indicator. :)