Well, this isn't a question that is actually asked too frequently, but
I only managed to come across one tutorial when I wanted to know how, which was vague and filled with awful terms that I'm sure the guy who wrote it only threw in to make himself sound smart. It took me an hour to decipher. So I've decided to make my own contribution to the world of html tutorials. Four easy steps to making an image map.
Step One: Make a dir in your images dir called cgi-bin and put a copy of the image you want to use, reneming it to ***.map (***=your images name)
Step Two: Add the following code to the page you want the map to appear:
Step Three: Below this code is where you need to add the coordinates for the html documents you wnat linked to the image. This takes a little while, but it's easy. basically you have to divide the map up into sectors of x,y using two sets of vaues, one to plot the beginning of your link and the other to plot where it ends.(x,y x,y) So if your link starts at 1,1 and ends at 179, 26 the first line of code would appear like so:
Step Four: End the code with the line
That's it, I hope you get it.
Sample code: This is the code that I used to map the image on my site:
Click your heels to go home |
![]() |