Results 1 to 3 of 3

Thread: Image Thumbnail Viewer II - Default Image in Load Area Reappear

  1. #1
    Join Date
    Nov 2006
    Location
    Baltimore, Maryland
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Image Thumbnail Viewer II - Default Image in Load Area Reappear

    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!

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Could probably use the onMouseOut property for this, just set this code on each thumbnail

    Code:
    <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

    Code:
    dynimages[X]=[Default Pic URL, "#"]
    should sort it out for you

  3. #3
    Join Date
    Nov 2006
    Location
    Baltimore, Maryland
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Did the trick.

    Thank you!

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
  •