Pop Up Timer
|
<script type="text/javascript"> <!-- function TimePop() { pop=window.open('','NewWindow','height=400,width=400,top=100,left=200'); pop.document.write("<head><style>input.cc{border:none;background:white;}\nbody{background:white;color:#DC143C;font-style:normal; font-size:15;font-family:Verdana;}</style><script language=JavaScript>\nfunction scad() {\nx=Number(document.count.timer.value);\nx--;document.count.timer.value=x;if(x <= 0) { self.close(); }\nelse { setTimeout('scad()',1000); }\n}\nfunction start() {\nsetTimeout('scad()',1000);\n}\n<\/script></head><body onLoad='start()' onBlur='self.focus()'>"); pop.document.write("<center><form name=count>\n<br><br><b>Special limited offer!<br><br>This window will expire in:<br><input name=timer type=text disabled size=3 class=cc value=12>seconds.</form>You put your text and messages here!<br>Write what ever you want!</center></body>"); pop.document.close()} window.onload=TimePop </script> |
Free JavaScripts provided
by Winfolinx.com