2012-08-04 19 views

回答

1

試着這麼做:

function hipsterPictures() { 
    var clientId = 'xxx'; 
    var loading = '<div class="loading">Loading...</div>'; 

    $(".instagram.tag").html(loading).instagram({ 
    hash: 'hipster', 
    show: 5, 
    clientId: clientId, 
    onComplete: function() { 
     $(".instagram.tag .loading").remove(); 
    } 
    }); 
} 

hipsterPictures(); 

setInterval(function() { 
    hipsterPictures(); 
}, 10000); 

demo

相關問題