Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/11/2011, 10:51
cesarincr15
 
Fecha de Ingreso: noviembre-2011
Mensajes: 1
Antigüedad: 12 años, 6 meses
Puntos: 0
Como poner setTimeout en fancybox

Tengo un popup con el siguiente script:


<script type="text/javascript">
$(document).ready(function() {
$("#yt").click(function() {
$.fancybox({
'padding' : 2,
'autoScale' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 300,
'speedOut' : 200,

'title' : this.title,
'width' : 790,
'height' : 600,
'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
'type' : 'iframe',
'swf' : {
'wmode' : 'transparent',
'allowfullscreen' : 'true'
}
});
return false;
});
});
</script>

En el Body tengo lo siguiente:

<div style="display: none;">
<p><a id="yt" title="" href="http://www.xxx.html"></a></p>
</div>
<body onload='$("#yt").trigger("click");'>


Necesito que tarde unos 5 segundos para que aparezca...