PDA

View Full Version : SlideIn SlideOut



idal
9 Sep 2010, 4:19 AM
Hello !

I have a problem in my slide, I want to display my slide but my screen have a decalage downward...

Thank you for your help :)
have a good day !

My code..


function get_slide_in(tab_screen, i)
{
Ext.get(tab_screen[i]).slideIn('t', {
easing: 'bounceOut',
duration: 2.5
});
}

function get_slide_out(tab_screen, i)
{
Ext.get(tab_screen[i]).slideOut('t', {
easing: 'backIn',
duration: 2,
callback : function() { change_screen(tab_screen, ++i) }
});
}

function change_screen(tab_screen, i)
{
if (tab_screen[i] == null)
i = 0;
get_slide_in(tab_screen, i);
get_slide_out(tab_screen, i);
}

function main()
{
var tab_screen = Array('img1', 'img2', 'img3', 'img4');

change_screen(tab_screen, 0);
};

Ext.onReady(main);