Creating the MapThis! HTML tags
- Using your HTML Editor, (I use Notepad) open the file you created using Map This!. The file will look something like this:
rect http://www.oocities.org/Heartland/5960/florida.html 1,48 99,67
rect http://www.oocities.org/Heartland/5960/16th.html 102,48 199,69
rect http://www.oocities.org/Heartland/5960/navylink.html 203,48 300,69
rect /Research/Triangle/Node/1533/htmlhelp.html 303,49 400,68
rect http://www.oocities.org/ 406,4 463,64
rect /Research/Triangle/Node/1533/index.html 349,33 396,44
- First change the spaces in the coordinates to commas. It should now look like this:
rect http://www.oocities.org/Heartland/5960/florida.html 1,48,99,67
rect http://www.oocities.org/Heartland/5960/16th.html 102,48,199,69
rect http://www.oocities.org/Heartland/5960/navylink.html 203,48,300,69
rect htmlhelp.html 303,49,400,68
rect http://www.oocities.org/ 406,4 463,64
rect /ResearchTriangle/Node/1533/index.html 349,33,396,44
- Next add the HTML tags as shown below:
Note that the SHAPE can be defined as SHAPE="rect" or SHAPE="poly".
- The section of code you have just created needs to be placed somewhere in the HTML file in which you want to use the image map. From habit, I choose to place it at the very top of the file, directly under the tag.
Using the Image Map
To make use of the image map requires an additional attribute to be added to the IMG SRC tag. To insert the image map I have used in this example, I would need to use the tag
Using this tag, the following image map will appear. You will notice that when you move your mouse over various parts of the image, you can tell where it will link to.
Note: It is very important when using image maps to always provide alternative text links for those browsers that do not support client-side image maps Text links can be placed in another location.
Back
Main HTML Help
Site© 1996-2003 Copyright by dcrum@infionline.net