You should check out this plugin:
http://plugins.jquery.com/project/maphilight
and the demo:
http://davidlynch.org/js/maphilight/docs/demo_usa.html
if anything, you might be able to borrow some code from it to fix yours.
You should check out this plugin:
http://plugins.jquery.com/project/maphilight
and the demo:
http://davidlynch.org/js/maphilight/docs/demo_usa.html
if anything, you might be able to borrow some code from it to fix yours.
I found this wonderful mapping script (mapper.js) that I have used in the past. What's different about it is you can hover over the map or a link on your page to make the map area highlight. Sadly it's written in javascript and requires a lot of in-line coding in the HTML - I would love to see this script ported over to jQuery :P
Also, check out all the demos! I think this example could almost be made into a simple online game (without using flash) - make sure you click on the different camera angles.
Although jQuery Maphilight plugin does the job, it relies on the outdated verbose imagemap in your html. I would prefer to keep the mapcoordinates external. This could be as JS with the jquery imagemap plugin but it lacks hover states. A nice solution is googles geomap visualisation in flash and JS. But the opensource future for this kind of vectordata however is svg, considering svg support accross all modern browsers, and googles svgweb for a flash convert for IE, why not a jquery plugin to add links and hoverstates to a svg map, like the JS demo here? That way you also avoid the complex step of transforming a vectormap to a imagemap coordinates.
I happened across this thread while trying to implement a particularly tricky image map recently. As a result I checked the Maplight plugin but found it unsatisfactory to my particular requirements.
As the HTML Image Map I was working on only had 9 distinct hot-spots I was able to opt for an HTML/Image/CSS/JQuery solution that I feel is elegant, flexible, robust and pretty accessible.
I wrote about it here: Revisiting HTML Image Map
Hi, I was wondering if there was an automatic way to create an image map from a simple png or svg image ?