Codesnipp.it Social Code Sharing

Arron arronhunt.mac@gmail.com

Simple way to create a thumbnail style photo viewer

by Arron arronhunt.mac@gmail.com on Jul 28, 2010

<script type="text/css"> /* Note: Images must be named sequentially (ie 001.png, 002.png, 003.png etc */ function changeViewLarge(image_id){ document.getElementById('view_large').src='gallery/00' + image_id + '.png'; } </script> <img id="view_large"> <img src="gallery/001.png" onclick="changeViewLarge('1')" class="thumb"> <img src="gallery/002.png" onclick="changeViewLarge('2')" class="thumb"> <img src="gallery/003.png" onclick="changeViewLarge('3')" class="thumb">

Can't see the comments? Please login first :)