如何使用jQuery在鼠标悬停时弹跳图片?
$('img').bind('mouseenter', function(){
$(this).effect("bounce", { times:3 }, 300);
});
使用jQuery UI特效。
我不确定您具体需要什么,但如果您正在使用jQueryUI,它有一个bounce效果。
试一下:http://jsfiddle.net/G8Ste/
$('#myimage').mouseenter(function() {
$(this).effect('bounce',500);
});