Facebox time delay once page load I keep getting jQuery.facebox

瀏覽次數:19 次
跳到第一則未讀訊息

James Wrest

未讀,
2016年5月21日 清晨7:14:302016/5/21
收件者:facebox
this is what i started with

  <script type="text/javascript"> 
    jQuery(document).ready(function($) { 
        jQuery.facebox('hello'); 
        
       
    }) 
</script> 

this is the code im using to delay

  <script type="text/javascript"> 
$(document).ready(function(){
    timeOut();
});

function timeOut() {
    var t = setTimeout("showPopup();", 3000);
}

function showPopup() {
    jQuery.facebox('hello');
}
</script> 

i keep getting safety_score.php:258 Uncaught TypeError: jQuery.facebox is not a function

im not sure what im doing wrong, the on page load works fine....


回覆所有人
回覆作者
轉寄
0 則新訊息