Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-13-2011, 08:20 PM   PM User | #1
asaf
New to the CF scene

 
Join Date: Jul 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
asaf is an unknown quantity at this point
Delaying an overlay that is automatically loaded..

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.

Code:
<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.
asaf is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:57 AM.


Advertisement
Log in to turn off these ads.