I am attempting to implement a script that will fade in a new set of images, replacing an old set, upon a click event on a button that will be an image or piece of text. To get an idea of what I am looking to replicate (in flash, unfortunately), see the “teaching” section of http://seanjustice.com/.
I found this jfiddle from another topic on stackoverflow, but I wasn’t sure how to use a button and mouse click to replace the set of images instead of using just a simple fade upon hover effect.
So can anyone help me out with suggestions? How do I use a button that will trigger a swap of images?
Using the jsfiddle you provided you could do something like this:
http://jsfiddle.net/H8z2G/41/
Sorry, here’s the markup: