basically I have thumbnails at the bottom of the page and one large image. I want to be able to hover over the thumbnails and have the source of the thumbnail replace that of the big image so the thumbnail takes its place.
Please someone help!! I need to get this finished asap, is there any other info I should provide?!
This is the code I am using:
jQuery('.image-rollover').hover(function() {
var src = $(this).attr("src").match(/[^\.]+/);
jQuery('.replace img').replace("src", src);
});
1 Answer