javascript - Missing Element Confusion -



javascript - Missing Element Confusion -

i'm creating script produces content locker after x number of minutes. problem is, content within likebutton not display. modal popup displays fine, title , instructions. not likebutton content. if take code block out of timer, works. i'm little confused. thought whats going on?

var title = 'please press like'; var instructions = 'like our videos? bring together our fanpage. takes 1 second.'; var lockdelay = 100; // 1200000 = 20 minutes /* stop editing */ var boxy; $(document).ready(function() { // create button settimeout(function() { // create button var likebutton = '<div id="likebutton"><fb:like href="" send="false" layout="box_count" width="70" show_faces="false" font=""></fb:like></div>'; // display modal boxy = new boxy('<p id="instructions">' + instructions + '</p>' + likebutton, { title: title, modal: true, closeable: false, }); }, lockdelay); // close modal after user likes $('#likebutton').mouseover(function() { settimeout(function() {boxy.hide()}, 3000); }); });

try this

var title = 'please press like'; var instructions = 'like our videos? bring together our fanpage. takes 1 second.'; var lockdelay = 100; // 1200000 = 20 minutes /* stop editing */ var boxy; $(document).ready(function() { // create button settimeout(function() { // create button var likebutton = '<div id="likebutton"><fb:like href="" send="false" layout="box_count" width="70" show_faces="false" font=""></fb:like></div>'; // display modal boxy = new boxy('<p id="instructions">' + instructions + '</p>' + likebutton, { title: title, modal: true, closeable: false, }); // close modal after user likes $('#likebutton').mouseover(function() { settimeout(function() {boxy.hide()}, 3000); }); }, lockdelay); });

javascript jquery facebook fbml fbjs

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -