PDA

View Full Version : Image Thumbnail Viewer II script preload image not working



pauldevine78
12-29-2011, 09:29 PM
1) Script Title: Image Thumbnail Viewer II script

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

3) Describe problem: The preload image is not coming up, the gallery works fine, but the preload image is not coming up when you view the page, I have looked at the http://www.divine-media.co.uk/thumbnailviewer/thumbnailviewer2.js file and it says preload:'yes'

here is the gallery http://www.divine-media.co.uk/thumbnailviewer/test.php

any advice please??:(:(

jscheuer1
12-30-2011, 03:27 AM
Preload only means that the larger images are preloaded into the browser's cache. It doesn't mean that any of them appear in the loadarea when the page loads.

But you can hard code it that way if you like (it will be overwritten once a trigger is activated). Where you have:


<tr>
<td colspan="10" height="379">
<div id="loadarea" style="width: 600px"></div></td>
</tr>

Make that:


<tr>
<td colspan="10" height="379">
<div id="loadarea" style="width: 600px"><img src="main-picture-1.jpg" style="border-width:0" alt=""></div></td>
</tr>

pauldevine78
12-30-2011, 03:37 PM
that's great working perfectly now.

http://www.divine-media.co.uk/thumbnailviewer/test.php

thanks:)