...

View Full Version : Delaying an overlay that is automatically loaded..



asaf
07-13-2011, 09:20 PM
Hello to all, new to this forum so pardon any mistakes in my question.


I have an overlay that contains a video which loads upon page load.



<script type="text/javascript">
$(function() {
$("#intro_video").overlay({
mask: {
color: '#000',
loadSpeed: 1000,
startOpacity: 0,
zIndex: 9997,
opacity: .85
},
top: 131,
closeOnClick: true,
load: true,

onLoad: function(){
var $overlay = this;
setTimeout(function(){$overlay.close()}, 44000)
}});
});

</script>


I'd like to delay this by about 5 seconds or so but can't figure out how to do so as I am a JS n00b.

The overlay is contained in a div: <div id="intro_video">

Thank you for your help.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum