You should check out this plugin:
https://github.com/kemayo/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.
More Related Contents:
- pure javascript to check if something has hover (without setting on mouseover/out)
- How to tell .hover() to wait?
- jQuery: trigger a hover event from another element
- How to start mouseover event while dragging
- Why jQuery .load() is not working? [closed]
- jQuery AJAX file upload PHP
- What does [object Object] mean?
- How to decode HTML entities using jQuery?
- jQuery click not working for dynamically created items [duplicate]
- Stop setInterval
- Determine Pixel Length of String in Javascript/jQuery?
- How do I remove all null and empty string values from an object? [duplicate]
- Add st, nd, rd and th (ordinal) suffix to a number
- Bootstrap: Open Another Modal in Modal
- How to get html elements from an object tag?
- How do I remove javascript validation from my eclipse project?
- How can I detect browser type using jQuery?
- get a list of all folders in directory [closed]
- Using javascript and jquery, to populate related select boxes with array structure
- Defining a HTML template to append using JQuery
- Populating a select box using JQUERY, AJAX and PHP
- How to Determine if ::before is applied to an element?
- Submit form after calling e.preventDefault()
- Age from Date of Birth using JQuery
- one document.createElement, append it twice, only shows once
- Change form values after submit button pressed
- Submit jQuery UI dialog on
- Put quotes around a variable string in JavaScript
- How to show loading status in percentage for ajax response?
- How to get read data from response header in jquery/javascript [duplicate]