$(document).ready(function() {
$(".fancybox").fancybox({
width: 640, // o altro
height: 320,
afterLoad: function(){
setTimeout( function() {$.fancybox.close(); },3000); // 3000 = 3 secondi
}
});
});
lunedì 15 ottobre 2012
FancyBox auto close
Vediamo come fare per chiudere automaticamente un FancyBox dopo un tempo determinato:
Etichette:
javascript,
sviluppo web
Iscriviti a:
Commenti sul post (Atom)


Nessun commento:
Posta un commento