Languages

Menu
Sites
Language
why does it work very quickly?

 

why does it work very quickly?

​​(function($, undefined){

$(window).load(function() {

$('#load_im').fadeIn(3000);

$('#load_im').fadeOut(100);

$.mobile.changePage( "#WebSockets");

});

})(jQuery);
Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

4 Replies
Marco Buettner
Whats your problem?
Enjo
must first be animation, and after it switched to a page, but switches to a page at once. What am I doing wrong?
Marco Buettner
its better to use this on pageinit instead onload function, because you will work more on jquery mobile thant jquery himself! var init = { $('#load_im').fadeIn(3000).fadeOut(100); $.mobile.changePage($("#WebSockets")) } $(document).bind('pageinit', init);
Marco Buettner
Maybe you can setTimeout to $mobile.changePage($("#WebSockets"));