PDA

View Full Version : Delayed timing of drop-in content box...possible at all?



parker
10-27-2005, 02:02 AM
Drop-in Content Box
http://www.dynamicdrive.com/dynamicindex17/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

jscheuer1
10-27-2005, 06:28 AM
Since there are three 'flavors' of this script, there are three ways it can look but all three have this line in them somewhere:


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:


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.

parker
10-31-2005, 08:09 AM
Thank you VERY much John!