Hi
I have made a javascript image viewer where there are thumbnails at the top and when you click on them the bigger image below the row of thumbnail image changes according
My question is, how do i make the larger image become a hyperlink to the corresponding page it represents. Alternatively, it would not be a problem if a caption could be displayed below which i could make into a hyperlink.
Any help appreciated
Here is my script .js file
function img1click() {document.IMG.src="imagelibrary/dazzlebig.jpg";}
function img2click() {document.IMG.src="imagelibrary/gunshotbig.jpg"}
function img3click() {document.IMG.src="imagelibrary/searoombig.jpg"}
function img4click() {document.IMG.src="imagelibrary/smokebig.jpg"}
Here is the HTML
<img src="imagelibrary/dazzlethumb.jpg" onmouseup="img1click()" border="5" />
<img src="imagelibrary/gunshotthumb.jpg" onmouseup="img2click()" border="5" />
<img src="imagelibrary/searoomthumb.jpg" onmouseup="img3click()" border="5" />
<img src="imagelibrary/smokethumb.jpg" onmouseup="img4click()" border="5" />
</br>
<img src="imagelibrary/dazzlebig.jpg" name="IMG" width="320" border="0" />