Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Map --creating code to color in coordinates auto...

Status
Not open for further replies.

ADisciple

Programmer
Jul 15, 2004
10
0
0
US
I have this portion of code below in notepad....

<AREA SHAPE="POLYGON"
COORDS="442,298,465,289,469,289,467,273,469,264,469,247,480,240,486,246,488,259,485,263,486,274,485,279,485,286,485,291,481,299,471,296,464,301,450,307,444,304,442,298" HREF="/partsmap.asp?image%5Fid=39703&part%5Fid=7" ALT="Bolt Kit">

Is there a way to run a function where as the code will automatically fill in a color using those coordinates automatically vs doing it in photoshop....?

HD..
 
You'd probably call your function from the href instead of a page name. For example, if your fill function was called "fillShape", you would run it like this:

Code:
href="javascript:fillShape();"

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top