Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning HTML, XHTML, CSS, and JavaScript
This is the forum to discuss the Wrox book Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett; ISBN: 978-0-470-54070-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning HTML, XHTML, CSS, and JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 4th, 2010, 01:20 PM
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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use Map/image maps teresagoh Javascript 4 February 11th, 2006 03:54 AM
mistake in code yami56 Access 3 February 24th, 2005 04:04 PM
mistake in my topics zakarya_hazara Classic ASP Basics 1 October 9th, 2004 02:49 AM
image maps NeilS21 VB How-To 0 June 29th, 2004 07:35 PM
How do you represent thumbnails and image maps? mountainbiker XSLT 0 June 17th, 2004 07:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.