Web Development HTML Guide - Learn HTML
Developer Tutorials
ASP
CGI & Perl
CSS
Flash
HTML
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML



Developer Manuals
Learn HTML
Learn PHP
Learn MySQL
Learn CSS
Learn Pear


Developer Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Developer Resources
Developer Tools
Developer News
Developer Forums
Developer Content
Developer Book Reviews
Survey Software

Web Hosting Directory
Budget Web Hosting
ColdFusion Hosting
Dedicated Servers
Domain Hosting
E-Commerce Hosting
Email Hosting
Free Web Hosting
Linux Web Hosting
Managed Hosting
Reseller Hosting
Small Business Hosting
Windows Web Hosting

Attribute for <AREA ...>
COORDS

Looking for info on how to make an image map?

See our tutorial How to Make an Image Map
COORDS indicates whare the shape is located in the image map. COORDS is necessary if you set SHAPE to RECT, CIRCLE, or POLY. COORDS is not required if you set SHAPE to DEFAULT.

Coordinates are always entered as a comma delimited string of numbers. That is, the stirng consists of a number, then a comma, then another number, then a comma, etc. Don't put a comma after the last number. The exact meaning of those list of numbers is different for each shape, so see the descriptions of the values for the SHAPE attribute for details.

For example, the following code sets coordinates for a rectangle, circle, and polygon, and sets no coordinates for the default.

<DIV ALIGN=CENTER>

<MAP NAME="map1">
<AREA 
   HREF="contacts.html" ALT="Contacts" TITLE="Contacts"
   SHAPE=RECT COORDS="6,116,  97,184">

<AREA 
   HREF="products.html" ALT="Products" TITLE="Products"
   SHAPE=CIRCLE COORDS="251,143,  47">

<AREA 
   HREF="new.html" ALT="New!" TITLE="New!"
   SHAPE=POLY COORDS="150,217, 190,257,  150,297,  110,257">

<AREA HREF="default.html" SHAPE=DEFAULT>

</MAP>

<IMG SRC="testmap.gif" 
   ALT="map of GH site" BORDER=0 WIDTH=300 HEIGHT=300
   USEMAP="#map1">
</DIV>

which gives us

Contacts Products New! map of GH site
.
Copyright Idocs, Inc. Written by Miko Sullivan











About the NetVisits, Inc Network | Advertise
Developer Tutorials hosted by HostGator.
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: