I am working on an application where I am utilizing jQuery along with maphilight for highlighting image map segments. In addition to this functionality, I want to dynamically highlight specific HTML elements based on mouseover/mouseout events for the image maps.
While I know how to manipulate classes using addClass and removeClass to achieve the desired highlighting effect, there is one thing I am unsure of. I would like to either:
- Create a CSS style dynamically that matches the visual settings of maphilight (line/fill style + opacity)
- Configure the maphilight plugin to reflect a pre-existing CSS style that I have defined
Although I would prefer the latter option by setting it up in a .css file, I am currently unsure of how to accomplish either of these tasks.
If anyone can provide guidance or assistance, it would be greatly appreciated.
edit: My main focus is on learning how to interact with styles within the jQuery maphilight plugin since there seems to be limited documentation available.