p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning HTML, XHTML, CSS, and JavaScript (http://p2p.wrox.com/forumdisplay.php?f=541)
-   -   Mistake in book about image maps! (http://p2p.wrox.com/showthread.php?t=78843)

andypandyrox456 April 4th, 2010 01:20 PM

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.


All times are GMT -4. The time now is 07:44 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.