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

20 views
Skip to first unread message

James Wrest

unread,
May 21, 2016, 7:14:30 AM5/21/16
to 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....


Reply all
Reply to author
Forward
0 new messages