pop up with close function

i had the script for this before but i lost it what it was: a pop up/under that closed after so many seconds... this is really useful when you need sponcers and your web site viewers dont want annoying pop ups<!--content-->Something like this most likely:<script type="text/javascript"><br />
//<![CDATA[<br />
onload = function()<br />
{<br />
var w = window.open('ad.html', '', 'height=300,width=550'), s = 5;<br />
w.blur();<br />
setTimeout(function(){if(typeof w!="undefined")w.close();}, s*1000);<br />
}<br />
//]]><br />
</script>Simply change ad.html to the filename of your ad and the value of the s variable to how many seconds you want to wait before the window closes (five is the default).<!--content-->
 
Back
Top