Results 1 to 5 of 5

Thread: how to set a delay on the DHTML window popup script

  1. #1
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question how to set a delay on the DHTML window popup script

    1) Script Title: DHTML Window widget (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Try:
    Code:
    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.
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    smit (01-30-2009)

  4. #3
    Join Date
    Aug 2004
    Posts
    9,911
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

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

  5. The Following User Says Thank You to ddadmin For This Useful Post:

    smit (01-30-2009)

  6. #4
    Join Date
    Dec 2008
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Thumbs up Thank You

    Quote Originally Posted by Nile View Post
    Try:
    Code:
    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.
    Quote Originally Posted by ddadmin View Post
    Just to add to Nile's response, here's another thread on this: http://www.dynamicdrive.com/forums/s...ad.php?t=40381

    thank you!!!

    it worked!!!!

  7. #5
    Join Date
    Jan 2008
    Posts
    4,167
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I'm glad to help you anytime. Your welcome.
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •