Results 1 to 4 of 4

Thread: Image Thumbnail Viewer II onmouseout...

  1. #1
    Join Date
    Aug 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II onmouseout...

    1) Script Title: Image Thumbnail Viewer II

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

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

    thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Add this event to the trigger images or texts:

    Code:
    onmouseout="document.getElementById('dynloadarea').innerHTML=''"
    If using a different id than dynloadarea for your larger image's display area, substitute yours for it, ex (using dynloadarea):

    HTML Code:
    <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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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";

    if(!empty($a1[image]))
    {
    $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";
    }

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •