Maphilight or similar plugin, recursive mouseover()
Hi,
I'm looking for a plugin, where I can highlight area-ojects on mouseover() . I tried using maphilight for this but I'm getting a problem with the following idea :
When user gets over field_a, field_a and field_b should be highlighted.
When user gets over field_b, field_a and field_b should be highlighted.
I thought of something similar to this
- jQuery('#field_a').mouseover(function(e) {
jQuery('#field_b').mouseover();
}).mouseout(function(e) {
jQuery('#field_b').mouseout();
}).click(function(e) { e.preventDefault(); });
jQuery('#field_b').mouseover(function(j) {
jQuery('#field_a').mouseover();
}).mouseout(function(j) {
jQuery('#field_a').mouseout();
}).click(function(j) { j.preventDefault(); });
But this will get me in an infinite loop.
Has anybody an idea, how I can solve this problem ?
Best regards
Hassamu