javascript - How to check session before executing jquery preloader function? -
i trying check session when page loads , when page loading calling preloader function first. want check session before executing jquery preloader function.
code preloader function:
$(window).bind("load", function () { $('#work-in-progress').fadeout(100); });
i wants preloader function execute if session false. illustration in below code if spl false want execute preloader function else dont want execute it.
code checking session:
var spl=('<?php echo $_session['splash'] ?>'); if(!spl==true) { } else { }
within script tag, if php var $_session['splash']
false, write jquery .bind
function:
<?php if ( !$_session['splash'] ) { ?> $(window).bind("load", function () { $('#work-in-progress').fadeout(100); }); <? } ?>
javascript jquery html5 session dom
No comments:
Post a Comment