For a list of images I have the urls for the squared thumbnail http://example.com/img1_thumb.jpg and for the original size (any proportion) http://exampl
http://example.com/img1_thumb.jpg
http://exampl
Use JQuery:
$(function() { $('#thumbnails img').click(function() { $('#thumbnails').hide(); var src = $(this).attr('src').replace('.png', 'Large.png'); $('#largeImage').attr('src', src).show(); }); $('#largeImage').hide().click(function() { $(this).hide(); $('#thumbnails').show(); }); }); ...