Revisiting events
For our sample document, we will create a simple photo gallery. The gallery will display a set of photos with an option to display additional photos upon the click of a link. We'll also use jQuery's event system to display textual information about each photo when the cursor is over it. The HTML that defines the gallery is as follows:
<div id="container"> <h1>Photo Gallery</h1> <div id="gallery"> <div class="photo"> <img src="photos/skyemonroe.jpg"> <div class="details"> <div class="description">The Cuillin Mountains, Isle of Skye, Scotland.</div> <div class="date">12/24/2000</div> <div class="photographer">Alasdair Dougall</div> </div> </div> <div class="photo"> <img src="photos/dscn1328.jpg"> <div class="details"> <div class="description">Mt. Ruapehu in summer</div>...