|
||||||||||||||||||||||||||||||
. |
|
Home Image Effects Here Image Thumbnail Viewer II IE Credits: Dynamic Drive Description: Similar in function to Image Thumbnail Viewer, this script loads and displays a larger image when a thumbnail is clicked on. Great for letting visitors preview from many images then select the image of his choice to view on the same page. Features include:
Yes, deceptively loaded! Demos: Using conventional thumbnail images and activated onMouseover: Using text links and activated onClick:
Step 1: Add the following script to the <head> section of your page: Be sure to refer to the comments inside to specify the images and more. Step 2: Add the following example code to the <BODY> section of your page. It illustrates how to set up thumbnails to display their larger counterparts: As shown, a thumbnail looks something like: <a href="#" onMouseover="modifyimage('dynloadarea', 0)">image 1</a> Inside function "modifyfunction()", pass in the ID of the DIV tag that will hold the larger image (ie: "dynloadarea"), and following that, the index number of the array element containing the desired image (see code of Step 1). Also shown is how the DIV tag that will act as the display area of the larger image looks like: <div id="dynloadarea" style="width:80px;height:225px"></div> You should set the width and height of this DIV to the dimensions of the largest image that will be shown inside it. Move this tag to the desired location on the page where the larger images should be shown. Finally, if all this is starting to get confusing, don't worry, installing the script is actually much simpler than following the instructions, which are simply there for sake of reference. :)
Recommend Us! Legend Copyright © 1998-2004 Dynamic Drive. Please read Terms Of Use here before using any of the scripts. Partners: JavaScript Tutorials | JavaScript Reference |