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;
}
I'm sorry, I have a little English. Anyway I'm starting :D
I want to do this functions with queue. But i is always 0. I know I'm doing this. So what can I do :D
Can I take css's variables. (div#rozet).top's variable, I can use it on if