View Full Version : Image Thumbnail Viewer II onmouseout...

08-16-2006, 07:00 AM
1) Script Title: Image Thumbnail Viewer II

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

3) Describe problem: I want the large image to disappear when the mouse is not on it..


08-17-2006, 06:36 AM
Add this event to the trigger images or texts:


If using a different id than dynloadarea for your larger image's display area, substitute yours for it, ex (using dynloadarea):

<a href="#" onmouseover="modifyimage('dynloadarea', 0)" onmouseout="document.getElementById('dynloadarea').innerHTML=''" oncick="return false;">Linked Image Tag or Linked Text</a>

I added in a return false; onclick event as well - just a good idea unless you want the link to actually go to another page.

08-18-2006, 12:34 PM
Is it possible to integrate the following code into the Image Thumbnail Viewwer II code for the location of the photos?

if($i == '2')
$Image2 = "photos.gif";

$MyImages = explode("|", $a1[image]);

$ShowInfo .= "<table valign=top align=center width=\"500\" height=50>\n<tr>\n\t<td align=center valign=top width=\"500\" height=50>";

while(list(,$v) = each($MyImages))
$ShowInfo .= "<a href=\"info.php?id=$_GET[id]&i=$_GET[i]&f=$v\"><img src=\"re_images/$v\" width=50 height=50 border=0></a>&nbsp;&nbsp;&nbsp;\n\n\t";

08-18-2006, 04:54 PM
Probably but, I'm not very strong in php code. You most likely need to find a way to pass the server side variable(s) to client side. This most often is done by having the php code write a little bit of javascript code to the page. Due to the limitations of server side coding, anything that you would want to have happen dynamically after the page loaded would need to be done client side with javascript. Very often this is done by creating an array of client side choices using the server side, then having them selected client side. Hope this makes sense to you, if you need help on the particulars visa vis php, ask in the php forum.