1 Jquery animate the posting butons ! Wed Jun 15, 2011 3:18 pm
razvy3
Registered Member
I tried to animate up/down the posting buttons but no effect this is the code
css
jquery
css
- Code:
.posting img {
background: url("http://i36.servimg.com/u/f36/11/96/49/61/onhove10.png") repeat scroll 0 0 transparent;
}
jquery
- Code:
$(function(){
$('.posting img')
.css( {backgroundPosition: "0 0"} )
.mouseover(function(){
$(this).stop().animate({backgroundPosition:"(0 44px)"}, {duration:200})
})
.mouseout(function(){
$(this).stop().animate({backgroundPosition:"(0 0)"}, {duration:200})
})
});