Construct an Interactive Photo Album
The first thing you need to do is create thumbnail versions [Hack #77] of each of your photos. Then, place this code in your listing description:
<table cellpadding=10 cellspacing=0 border=1> <tr><td> <img src="view1.jpg" border=0 name="view"> </td></tr> <tr><td align=center> <img src="view1s.jpg" border=1 onClick="document.images['view'].src='view1.jpg';"> <img src="view2s.jpg" border=1 onClick="document.images['view'].src='view2.jpg';"> </td></tr> </table>
This creates a simple, two-cell table, shown in Figure 5-13. The upper cell contains the first of several images and the lower cell contains the thumbnails for all images.
Figure 5-13. This simple photo album gives photos hosted off eBay a classy presentation