var myVar; 
jQuery(document).ready(function(){ 
jQuery('.bxslider').bxSlider({ 
auto: true 
}); 
jQuery(".bannerslider").css("display","none"); 
if(jQuery(".bannerslider").css("display") =="none"){ 
myFunction(); 
}else{ 
myStopFunction(); 
} 
}); 
//myFunction(); 
function myFunction() { 
myVar = setTimeout(function(){ jQuery(".bannerslider").css("display","block"); }, 300); 
} 
function myStopFunction() { 
clearTimeout(myVar); 
}
Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.