J-Query

jquery 를 이용한 마우스를 올릴시에 백그라운드를 변경

사라링 2013. 5. 10. 17:32

$('.hovertr').bind("mouseover", function(){

var color  = $(this).css("background-color");

$(this).css("background", "#F5F5F5");

$(this).bind("mouseout", function(){

$(this).css("background", color);

})

});