I want to set up a page that has the following:
Bob
Mary
Sue
Jane
<img src="none.jpg">
<img src="Bob.jpg">
<img src="Mary.jpg">
<img src="Sue.jpg">
<img src="Jane.jpg">
All of the images are initially invisible (display: none;
), except none.jpg. When Bob is clicked on, none should disappear, and Bob should become visible. What's the easiest way to go about this?
JavaScript/JQuery are what I'm trying to use. I've found methods that can toggle the display attribute, but it is clunky in that it requires me sending commands regarding ALL of the associated images.
I know the solution involves loading all of the images and then just changing their visibility, but changing the source will solve the problem stated above.