Menu

#3 Different Image display on clicking thumbnail

open
nobody
None
5
2008-09-28
2008-09-28
Ap Muthu
No

If we wish to display a different image than the one that is clicked (or manual thumbnail)in the ZClickZoomImg function, it is not currently possible directly.

A workaround is done by using the CSS style property 'display' (since it does not take up space as opposed to the 'visibility' property) by prepending the target image before the clicked image as below:-

Product<br>
<a href="javascript: void(0);" style="border: 0px none ;" onclick="ZClickZoomImg(this);">
<img src="Z-pictures/rt01b.jpg" style="display: none;" width="0" height="0">
<img src="Z-pictures/rt01s.jpg" alt="Product">
</a>

Here rt01s.jpg is the clickable thumbnail and rt01b.jpg is the larger (or another) image that gets displayed when the former is clicked.

HTH

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.