QA


Q&A

Q1:

I don't have Paint Shop Pro and my graphics software doesn't tell me x,y coordinates. How do I figure out the coordinates for my imagemaps?

A1:

Here's a sneaky way to do it using your web browser. Put the image on a page with the ismap attribute and an <a> tag around it, like the following:

 <a href="nowhere"><img src="/books/4/158/1/html/2/myimage.gif" ismap="ismap" /></a> 


When you view that page with a web browser, move the mouse over the image. You will see the coordinates in the status bar along the bottom of the window. This works because the ismap attribute is intended for use with older server-side imagemaps, which had to relay the mouse coordinates back to a web server to determine what part of the map was clicked.

Q2:

What happens if I overlap areas on an imagemap?

A2:

You are allowed to overlap areas on an imagemap; just keep in mind that one area will have precedence over the other one when it comes to determining which link to follow. Precedence is assigned according to which areas are listed first in the imagemap. For example, the first area in the map has precedence over the second area if they overlap, which means that a click in the overlapping portion of the areas will link to the first area. If you have an area within an imagemap that you don't want to link to anything, you can use this overlap trick to deliberately keep it from linking to anythingjust place the "dead" area before other areas so that it will overlap them, and then set its href attribute to "".




SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net