How to switch images with jquery ?

Posted by eemceebee on Stack Overflow See other posts from Stack Overflow or by eemceebee
Published on 2010-04-29T13:40:31Z Indexed on 2010/04/29 13:57 UTC
Read the original article Hit count: 270

Filed under:
|

Hi

I have a simple setup with one big image container and 3 smaller thumbnail containers.

Now when I click on the thumbnail I want to switch the big image and the small thumbnail image, so that the big image container has now the bigger sized thumbnail and the thumbnail container shows the thumbnail view of the before big image.

    <div class="thumbnailFloat">
    <img src="data/img_2.jpg" width="60" >
    <img src="data/img_3.jpg" width="60" >
    <img src="data/img_4.jpg" width="60" >
</div>

<div class="imageFloat">
    <img src="data/img_1.jpg" width="180" height="250">
</div>

Thanks for helping out.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about thumbnail