View Full Version : Image changer

07-28-2011, 11:55 PM
I may be too close to this to see the answer but i have an image viewer with one big image and lots of little ones. What i need is that when you click on one of the smaller ones it grabs it's image src and sets the larger photo to that src. The small images are dynamic but the larger image will have a static id.

Logic Ali
07-29-2011, 04:28 AM
Each thumbnail image needs an onclick handler like this:

function(){ document.getElementById( 'myBigImage' ).src = this.src; }