View Full Version : Image changer

Jul 28th, 2011, 10: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
Jul 29th, 2011, 03:28 AM
Each thumbnail image needs an onclick handler like this:

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