PDA

View Full Version : thumbnail viewer loading problem.



mattotone
07-09-2007, 11:11 AM
Image Thumbnail Viewer Script

http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

hi, i apologise if this has been addressed earlier, iv done a search with no luck.

Iv been using the script on my local web server with no problems I.E or FF, However when i uploaded the script on line, Whilst the script works it only works once all the thumbnail images have been loaded.

is there any changes i can make to allow the script to work, even when the rest of the page hasn't loaded?

Kind regards
Matt Roberts

jscheuer1
07-09-2007, 01:27 PM
You can try removing this from the end of thumbnailviewer.js:


thumbnailviewer.dotask(window, function(){thumbnailviewer.init()}, "load") //Initialize script on page load

and placing this in the body of your page after all of your links with the rel="thumbnail" set:


<script type="text/javascript">
thumbnailviewer.init();
</script>

I say try, because I haven't tested this idea. It has a good chance of working. Otherwise I would suggest that, since the thumbnail viewer links and their thumbnail images do not require much load time (especially if those thumbnails are not too many in number, small in size, and optimized), limit the rest of the byte load of the page by removing other images, scripts, Flash, etc.