Hello, I'm a beginner with Jquery so those questions should be pretty easy to answer. I'd like to modify the map hilight script (http://plugins.jquery.com/project/maphilight) to add 2 features :
- Question 1. I'd like to be able to highlight some areas by keeping the mouse button pressed instead of having to click and release the button.
Here is the relevant part of the code :
$.fn.maphilight = function(opts) {
opts = $.extend({}, $.fn.maphilight.defaults, opts);
return this.each(function() {
mouseclick = function(e,id)
{
...}
// MY CHANGES
mouseover = function(e, id)
{
if(pressed)
mouseclick(e,id)
}
I tried to call the mouseclick function in mouseover but it doesn't highlight anything. I'm probably not calling the function in the right way ?
- Question 2. I'd like to be able to change the color used to highlight areas after pressing a button.
Thanks