TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
> From: Jean Clougherty [mailto:jean -at- vitalimages -dot- com]
...
> All of these pages will have the same image map for the graphic. The
> image map will have about 50 hotspots on it.
>
> My question is: How can I copy the image map from one HTML page to
> another, so I don't have to recreate it for each graphic?
> Can you suggest a
> tool or technique? I am currently using PageMill to create
> HTML pages, and I
> don't think PageMill can copy an image map from one graphic
> to another. I
> can buy another tool if need be.
This is extremely simple in any ASCII editor. NotePad works well. The usual
process is this:
1) Go into the file that has the image map.
- Find the image map. An image map has two parts, the MAP tag and the
graphic tag. They are probably close together.
- The MAP tag starts with '<MAP NAME="mymap">' and ends with </MAP>'.
Each hotspot is represented by an <AREA> tag inside the MAP tag.
- The graphic tag looks like '<IMG SRC="myimage.gif" maybe some
parameters go here USEMAP="#mymap">' ("myimage.gif" could be "myimage.jpg").
2) Copy the HTML code from '<MAP NAME...>' to '</MAP>' and '<IMG SRC...>'.
If the MAP and image tags are adjacent, you can do this in one step.
3) Paste the code into the other page.
But since your application involves a different graphic in each case, you
would have to change the '<IMG SRC="myimage.gif" ' to point to a different
graphic file for each page.
---
Office:
mike -dot- huber -at- software -dot- rockwell -dot- com
Home:
nax -at- execpc -dot- com