Here is my code
$(".circle").mouseenter(function(){
var div=$(this);
div.animate({width:'500px'},"slow",dropdown);
var child=div.children("#header");
var child2=div.children(".close");
child.show();
child2.show();
$(".circle").bind();
});
function dropdown(){
var div=$(this);
div.children(".form").slideDown();
}
$(".close").click(function(){
var div=$(this);
var chid=div.parent();
var parent=chid.parent();
parent.children(".form").slideUp("slow",animationStep2 )
});
function animationStep2()
{ var div=$(this);
var parent=div.parent();
parent.animate({width:'70px'},"slow");
parent.children("#header").fadeOut();
}
function animationStep3()
{ var div=$(this);
var parent=div.parent();
div.children("#header").fadeOut("fast");
}
});
This post has been edited by Dormilich: 13 December 2012 - 05:52 AM
Reason for edit:: please use [CODE] [/CODE] tags when posting code

New Topic/Question
Reply


MultiQuote




|