View Single Post
  #1 (permalink)  
Old April 4th, 2010, 01:20 PM
andypandyrox456 andypandyrox456 is offline
Registered User
 
Join Date: Apr 2010
Location: Planet Earth
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
Default Mistake in book about image maps!

Hello everyone!
I have found a big mistake in this book in Chapter 3: Images, Audio, and Video. The mistake deals with image maps. Here is the code:
Code:
<img src="http://p2p.wrox.com/images/cafe_map.gif" alt="Cafe Map" width="500" height="300" border="0" usemap="#cafe" /> 
        <map name="gallery">
          <area shape="circle" coords="154,150,59" href="Cafe.html" target="_self" alt="Cafe">
          <area shape="poly" coords="272,79,351,79,351,15,486,15,486,218,272,218,292,166,292,136,270,76" href="courtyard.html" target="_self" alt="Courtyard">
          <area shape="rect" coords="325,224,488,286" href="Kitchens.html" target="_self" alt="Kitchens">
        </map>
I put in red the mistake. As you can see, it says usemap="#cafe". However, it doesn't correspond to map name="gallery". The usemap and map name must correspond to each other.
Surprisingly, when I downloaded the code for this, both of them said "cafe". The error is in the book.

Just wanted to alert everyone of that, including the author if there's a second edition coming.
Reply With Quote