Need help with Toggle
January 9th, 2009i need a quick guide on how to animate toggle div element. I have a help div at the top of page which suppose to slide down whenever user click on help link.
my old jQuery look lik this:
another question is how can i use the build ver. which is minimized for faster loading./:)
The funciton is as simple as this.
slideToggle(Ext.get('My-Div'));
You just have to add this code to your library.
function slideToggle(e)
{
if(e.isDisplayed() )
{
//It is visible.
e.slideOut('t',{
useDisplay:true
});
}
else
{
//It ain't Visible.
e.slideIn('t',{
useDisplay:true
});
}
}
#If you have any other info about this subject , Please add it free.# |