Results 1 to 3 of 3

Thread: Image Thumbnail Viewer

  1. #1
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Image Thumbnail Viewer

    Image Thumbnail Viewer
    http://www.dynamicdrive.com/dynamicindex4/thumbnail.htm

    Need help with code -> I have the following questions ->
    1. When I try to put more images than one, I get a redex on the second image but the first image function.
    2. The tag: <div id="showimage"> when put by the second image nothing functions.
    3. What is my problem here? How do I put 10 different images on one side and where should I put the tag? ( I know its in the body) but where exactly.

  2. #2
    Join Date
    Dec 2004
    Posts
    177
    Thanks
    0
    Thanked 18 Times in 17 Posts

    Default

    You only want one div statement. A final piece would look like:

    <div id="showimage">
    <a href="photo1.jpg" onClick="return enlarge('photo1.jpg',event)"><img src="thumbnail.gif" border="0"></a>

    <a href="lemoncake.jpg" onClick="return enlarge('lemoncake.jpg',event,'center',300,375)">Lemon Cake (centered)</a>
    </div>

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    If I understood you correctly, you're trying to show more than one enlarged image simultanously when the user clicks on a thumbnail? Unfortunately that's currently not possible with this script. Each thumbmail can only launch one enlarged image. Also, as Minos mentioned, the tag:

    <div id="showimage"></div>

    needs to be unique on the page.

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
  •