Hi everyone, I'm dynamically creating image maps using the jQuery Image Map emulator which works fantastically. (Basically a user defines what area of an image is selectable using jQCrop and that becomes with image map).
I was wondering if anyone knew how to make that area with a border (or any styling) so that the image map is visible (without needing to hover over or look for it). I figured
if(jQuery.imagemap.inelement){
$(this).css('cursor','default');
// This is the section I added
$(this).css('border','1 px solid #aaa');
// End section
jQuery.imagemap.inelement = false;
}
but that just added a border to the image, and, besides, I think $(this)
refers to the cursor.
Any hints or ideas would be greatly appreciated!