Results 1 to 5 of 5

Thread: How to select several Thumbnail Images in DHTML

  1. #1
    Join Date
    Aug 2006
    Posts
    121

    How to select several Thumbnail Images in DHTML

    I am trying to learn DHTML for myself. I have done the C, C++ and HTML. Now I have turned to DHTML. I am making small assignment in which I have added some thumbnail images. But the problem is I am not able to select several thumbnail images. So does anyone know how to select several Thumbnail Images in DHTML. The coding related to the same would be greatly appreciable. Please help me as soon as possible.!!
    Whats my name again? I spend so much time looking at code i fogot my own name ahhh!

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to select several Thumbnail Images in DHTML

    There are many applications on the web by which you can add or select the many thumbnail images in DHTML. I would like to suggest you to download such application. Instead of writing large code for the same purpose it would be better if you use an application which is having the same purpose. You will have to download such application first. These applications are available for free of cost. After downloading you will need to install that application on your system. Hope that doing this will help you for solving your problem.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: How to select several Thumbnail Images in DHTML

    You can use the following instructions for viewing the images in DHTML.
    You will have to add the following to the <head> section of your page :
    Code:
    <script src="viewerofthumbnail.js" type="text/javascript">
    </script>
    Add the below sample HTML to your page, which shows setting up the script on a regular link and a thumbnail image link :
    Code:
    <p><a href="http://img203.imagepoint.us/img654/1159/star6.gif" rel="thumbnail" title="This is the biggest Star">Castle</a></p>
    
    <p><a href="http://img242.imagepoint.us/img201/6923/countryxb6.gif"" rel="thumbnail"><img src="thumbnail.gif" style="width: 65px; height: 65px" /></a></p>

  4. #4
    Join Date
    Nov 2005
    Posts
    1,323

    Re: How to select several Thumbnail Images in DHTML

    I would like to tell you something more about the viewing an images in DHTML, which can definitely help you in future. There are some features of the Image Thumbnail Viewer, which you can download from the web. The below are the features of same :
    1. If you are having an enlarged image that can be optionally hyperlinked.
    2. It is very easy set up- just add to thumbnail links on your page.
    3. If enlarged image is set to be shown "mouseover", it is automatically preloaded for faster display.
    4. Configure larger image to be shown via "click" or "mouseover" of thumbnail.
    5. Define multiple regions for different images to be displayed in.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: How to select several Thumbnail Images in DHTML

    You can use the following code for selecting several Thumbnail Images in DHTML :
    HTML Code:
    <html>
    <head>
    <style>
    body {
    background-color:#0000ff;
    color:#E27918;
    font-family:Comic Sans MS,Arial;
    font-size:12pt;
    letter-spacing:3;
    }
    .thumbNormal {
    border:5px solid #0000ff;
    }
    .thumbSelected {
    border:5px solid #ff0000;
    }
    </style>
    <script language=javascript>
    var lastID = 0;
    function SelectImg(id) {
    if (lastID > 0) {
    document.getElementById(lastID).className = "thumbNormal";
    }
    document.getElementById(id).className = "thumbSelected";
    document.getElementById(0).src = document.getElementById(id).src;
    lastID = id;
    }
    function LoadTrigger() {
    SelectImg(1);
    }
    window.onload = LoadTrigger;
    </script>
    </head>
    <body>
    Click a photo on the left to view full size.
    <table border=0>
    <tr>
    <td valign=top>
    <img id=1 class="thumbNormal" src="http://www.images.com/images/3lio103.jpg" width=130 onclick="SelectImg(1)">
    <br><img id=2 class="thumbNormal" src="http://www.images.com/images/3lio20.jpg" width=120 onclick="SelectImg(2)">
    <br><img id=3 class="thumbNormal" src="http://www.images.com/images/3lion19.jpg" width=120 onclick="SelectImg(3)">
    </td>
    <td width=17> </td>
    <td valign=top>
    <img id=0 src="">
    </td>
    </tr>
    </table>
    </body>
    </html>

Similar Threads

  1. No Thumbnail Images after Installing Nero 11
    By Akshey in forum Windows Software
    Replies: 10
    Last Post: 11-11-2011, 11:18 AM
  2. Create thumbnail of images in Windows Phone 7
    By Ajabu in forum Portable Devices
    Replies: 5
    Last Post: 26-10-2010, 08:38 PM
  3. Project Import converted all Images to Thumbnail
    By Caydien in forum Windows Software
    Replies: 5
    Last Post: 13-01-2010, 07:01 PM
  4. How do I add thumbnail images to folders...?
    By Otilio in forum Operating Systems
    Replies: 3
    Last Post: 15-12-2009, 05:44 PM
  5. To Enlarge Thumbnail Images
    By FlashX in forum Tips & Tweaks
    Replies: 2
    Last Post: 20-03-2009, 02:48 PM

Tags for this Thread

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
  •  
Page generated in 1,713,409,039.17361 seconds with 17 queries