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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic color in an imagemap

Status
Not open for further replies.

mmcgon

Programmer
Jan 12, 2003
29
US
I have an imagemap of the United States with each state defined using <area> tags that link to specific html pages. I would like to change the displayed color of the various polygons in the imagemap on the fly based on data stored in a database. For example, all the states in the gif file are white. I would like to color the polygon over various states blue if they meet certain criteria in the database file. The result is an imagemap with some blue states and some white states.

Is it possible to do this using html attributes? Or any other way?

Thanks!
 
A flash application would be your best, quickest and easiest bet.

The other option would involve using a separate image for each combination of states. Down here, that would be OK-ish, 7 states = 127 combinations = 127 separate graphics. For the USA, you'd be looking at more like a number with 15 or 16 digits.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top