Results 1 to 3 of 3

Thread: Delayed timing of drop-in content box...possible at all?

  1. #1
    Join Date
    Oct 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Delayed timing of drop-in content box...possible at all?

    Drop-in Content Box
    http://www.dynamicdrive.com/dynamici.../dropinbox.htm

    Does anybody know how (or if its even possible) to tweak the script so that the box drops down after a specific time delay?

    For example, a visitor goes to my site, they start reading what my sites about, and after they have been there for 10 seconds or whatever, the content box drops in...

    Anyone?
    Cheers

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Since there are three 'flavors' of this script, there are three ways it can look but all three have this line in them somewhere:

    Code:
    window.onload=initbox
    This is the line that ultimately leads to the box dropping. To delay this event, change this line to something like this:

    Code:
    window.onload=function(){setTimeout("initbox()", 10000)}
    The number 10000 is the number of milliseconds delay after page load, before the box will drop. In this case, 10 seconds.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you VERY much John!

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
  •