jQuery delay and javascript settimeout won't work with facebook button -


i'm using socialite.js put social buttoms on page, social buttons inside div id="social". div hidden (display: none;).

i'm calling socialite.load($('#social')); , nextly want show div after delay,

i tried:

$('#social').delay(4000).fadein(400); 

and:

timeoutid = settimeout(function(){ $('#social').fadein(400)}, 3000); 

it doesn't matter method use, ie , ff shows g+ , twitter buttons, fb button missing, chrome shows 3 buttons.

except without timeout:

$('#social').fadein(400); 

this works great in every browser.

any idea, please?

facebook button won't load if container div hidden. try this:

set opacity 0.0 , after fb button loaded, change 1.0 , hide div. can show or hide whenever want.

timeoutid = settimeout(function(){     $('#social').css("display", "none");     $('#social').css("opacity", "1.0");     $('#social').fadein(500) }, 3000); 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -