Events revisited
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 will also use jQuery's event system to display textual information about each photo when the user's mouse cursor is over it:
<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> <div class="date">...