Hi, I have a big problem, I want to select in mouse event handler current attached to it selector, but I need to (i don’t know search or equal somehow) get [B]$(this=’.text_maptooltip’)[B]current
If I use $(this) it animates only, when I hover over the text, if I use $(map_placename_string) it animates all 3 elements that are created.
So I need to animate only [B]current[/B[B].text_maptooltip
[CODE]$(document).ready(function() {
var map_placename_string = “.text_maptooltip”;
var map_placeimg_string = “.img_maptooltip, .text_maptooltip”;
var fd_out_color = ‘#ff8c00’;
$(document).on(
{
mouseenter: function ()
{
// Correct, but obviously need to equal to .text_maptooltip. $(this) needed obviously
[B][U]$(this)[/U][/B].stop().animate({ color: ‘#ffffff’ },500);
},
mouseleave: function ()
{
// $(map_placename_string) for example this leaves on ALL elements that contains this class
$(map_placename_string).stop();
$(map_placename_string).animate({ color: fd_out_color },500);
}
}, map_placeimg_string);
});
Example problem highlighted in CODE.