Im trying to insert a jquery Spotlight snippet ( By Dev7Studios ) on my website. I have to work it out with following scenario:
I mouse over on "Div A" and "Div B" gets highlight-ed. I have to work on jQuery no conflict mode. So far, the script I use is:
jQuery.noConflict();
jQuery(window).load(function() {
jQuery('#A, #B').bind('mouseover', function(){
jQuery(this).spotlight({exitEvent:'mouseover', speed:600});
});
});
With following script, each of the divs get highlighted when mouseover but, I need to make it the way that when mouseovered "Div A", "Div B" gets highlighted. This would be ideal solution.
Possible solution can also be that when mouse over on "Div A", "Div B" gets highlighted together with Div A.
At this moment, with the script I have, Only that Div is getting highlighted, whichever has the mouseover on it.
Any ideas please?
Thank you!
Just call the jQuery selector on #b after you mouseover on #a...like below.