PDA

View Full Version : error on the Image Thumbnail Viewer II



wangtian
04-15-2011, 07:26 PM
1) Script Title: can't preload images on the Image Thumbnail Viewer II

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

3) Describe problem:
I am following the direction to add "preload: yes" under the "rev" options, but the picture doesn't preload automatically when the page load.



<div id="loadarea" style="width: 600px"></div><br /><br />
<a href="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" rel="enlargeimage" rev="targetdiv:loadarea, preload:yes">Saturn #1</a><br />
<a href="http://www.nasa.gov/images/content/168177main_image_feature_749_ys_4.jpg" rel="enlargeimage" rev="targetdiv:loadarea,preload:yes">The Moon #1</a><br />


please help, thank you.

Luys
04-15-2011, 08:35 PM
Hi!
I think if you read carefully and slowly all the text and examine the .js file, perhaps the preload function is activated only using conventional thumbnail images via "mouseover", no text links like in your code.

- Set preload to "yes" to have the script preload the enlarged image in the background automatically when the page loads, or "no" to have the image loaded only when requested (either "mouseover" or "click" of the THUMBNAIL IMAGE) (sic) -

On the forum: - It preloads all mouseover images (rel="elargeimage::mouseover") silently in the background onload of the page. If you are using the onclick method, it does not (sic) -

Luys

wangtian
04-15-2011, 09:26 PM
I had tested the both mouseover, and click . it 's same, the picture didn't preload.

jscheuer1
04-16-2011, 04:07 AM
Please post a link to a page on your site that contains the problematic code so we can check it out.