if(i==0){
$(document).ready(function(){
$("div#rozet").hover(function(){
$(this).hide("fast");
$(this).animate(
{ top:'+45px', left:'+500px'},
{duration: 1}
);
$(this).show("slow");
$(this).stopall();
});
i=1;
}
if(i==1){
$("div#rozet").hover(function(){
$(this).hide("fast");
$(this).animate(
{ top:'-85px', left:'+500px'},
{duration: 1}
);
$(this).show("slow");
$(this).stopall();
});
});
i=0;
}
对不起,我会一点英语。无论如何我要开始了:D
我想用队列来做这个功能。但我总是 0。我知道我正在这样做。那我该怎么办:D
我可以采用css的变量吗?(div#rozet).top 的变量,我可以在 if 上使用它