1) Script Title: Thumbnail Viewer II
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm
3) Describe problem:
Thanks for sharing this script! I have a question how to preload an image in the load area once opening the page.
I have 2 images, displayed as thumbs and the load area below, but when opening the page I have to move the mouse over the thumbs to get an image in the load area. I sure been searching and testing different things but no result so far.
As I understand the image doesn't get cached until mouseover=true perhaps this could be done with the help of onload or onpage or whatever.But this is a declarion in the js file I think,
My code below:
Very, very greatful for any help.PHP Code:echo "<a href=\"{$row1['bildpath']}\" rel=\"enlargeimage::mouseover\" rev=\"loadarea\"><img src=\"{$row1['bildpath']}\" width=\"$width\" height=\"$height\"</a>";
echo "<a href=\"{$row2['bildpath']}\" rel=\"enlargeimage::mouseover\" rev=\"loadarea\"><img src=\"{$row2['bildpath']}\" width=\"$width\" height=\"$height\"</a><br />";
echo "<div id=\"loadarea\" style=\"width: 400px\" </div>";
Regards,
Morgan



Reply With Quote

Bookmarks