PDA

View Full Version : how to set a delay on the DHTML window popup script



smit
01-30-2009, 08:28 PM
1) Script Title: DHTML Window widget (v1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:
I am using the above script on my website http://www.eczemacuretoday.com/
I am using the #4 method (Window 4 (Content from a DIV on the page))

I am want set a delay of 8 seconds

so after 8 seconds the popup appears
can some1 pls. pls. pls. help me in how to do this

Nile
01-30-2009, 08:43 PM
Try:


var ajaxwin;
setTimeout(function(){
ajaxwin = dhtmlwindow.open("ajaxbox", "ajax", "newsletter.html", "Subscribe To Our Newsletter", "width=480px,height=450px,left=300px,top=100px,resize=1,scrolling=0", "recal")
}, 8000);

Change the highlighted to the delay of seconds * 10.
4 sec = 4000.

ddadmin
01-30-2009, 09:41 PM
Just to add to Nile's response, here's another thread on this: http://www.dynamicdrive.com/forums/showthread.php?t=40381

smit
01-30-2009, 09:58 PM
Try:


var ajaxwin;
setTimeout(function(){
ajaxwin = dhtmlwindow.open("ajaxbox", "ajax", "newsletter.html", "Subscribe To Our Newsletter", "width=480px,height=450px,left=300px,top=100px,resize=1,scrolling=0", "recal")
}, 8000);

Change the highlighted to the delay of seconds * 10.
4 sec = 4000.


Just to add to Nile's response, here's another thread on this: http://www.dynamicdrive.com/forums/showthread.php?t=40381


thank you!!!

it worked!!!!

Nile
01-30-2009, 10:05 PM
I'm glad to help you anytime. Your welcome. :)