PDA

View Full Version : Image Thumbnail Viewer II - Default Image in Load Area Reappear



Intersign
11-10-2006, 02:36 PM
1) Script Title: Image Thumbnail Viewer II

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

3) Describe problem: When my webpage opens, I need a larger image to open in the blank space I have created (like a default) even before the viewer uses the mouseover option. I would like the default image to reappear after the user moves the mouse away from the thumbnail image. I have successfully added the default image to the load area by using the following code...
<div id="dynloadarea" style="width:80px;height:225px"><img src="default.gif" /></div>
I have also been able to clear the mouseover image by using the following code...
onMouseOut="document.getElementById('dynloadarea').innerHTML=''

Now I simply want the default image to reappear.

Any help would be most apprecaited!

GITs
11-10-2006, 02:46 PM
Could probably use the onMouseOut property for this, just set this code on each thumbnail


<img src="..." ... onMouseOut="modifyimage('dynloadarea', X)" .../>

set the dynloadarea part to be where you are loading the images into and place the default image in the array position of X


dynimages[X]=[Default Pic URL, "#"]

should sort it out for you :)

Intersign
11-10-2006, 03:17 PM
Did the trick.

Thank you!