左右摇摆(递归)
function move(tag,father){
//左右摆动
tag.animate({
left:father.width()- tag.width()//向左移动距离
},5000,function(){
tag.animate({
left:0
},5000,function(){
move(tag,father);
})
})
}
左右摇摆(递归)
function move(tag,father){
//左右摆动
tag.animate({
left:father.width()- tag.width()//向左移动距离
},5000,function(){
tag.animate({
left:0
},5000,function(){
move(tag,father);
})
})
}