Hey People,
How do I delay the drop of a pop up, say by 10 seconds? And this pop up code is gotten from this link: http://www.dynamicdrive.com/dynamici.../dropinbox.htm
Thanks all.
Hey People,
How do I delay the drop of a pop up, say by 10 seconds? And this pop up code is gotten from this link: http://www.dynamicdrive.com/dynamici.../dropinbox.htm
Thanks all.
I'm assuming that you can change this:
to this:Code:window.onload=initbox
Code:var box_sec = 10 //Seconds before appearing setTimeout(function(){initbox()},box_sec*1000)
Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide
Not a good idea, though, because the page might not have loaded yet. Try:Code:window.onload = function() { setTimeout(initbox, 10 * 1000); };
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks