Full version: jsB@nk » Browser » Window » Counts down then popup
URL: https://www.javascriptbank.com/counts-down-then-popup.html
This JavaScript will open a few windows after specified time period for new URLs. This timer is displayed in status bar and quantities of windows in example are 5.
Full version: jsB@nk » Browser » Window » Counts down then popup
URL: https://www.javascriptbank.com/counts-down-then-popup.html
<SCRIPT>function display(){ rtime=etime-ctime; if (rtime>60) m=parseInt(rtime/60); else m=0; s=parseInt(rtime-m*60); if(s<10) s="0"+s window.status="Time Remaining : "+m+":"+s window.setTimeout("checktime()",0)}function settimes(){ var time= new Date(); hours= time.getHours(); mins= time.getMinutes(); secs= time.getSeconds(); etime=hours*120+mins*60+secs; etime+=10; /* (120 = 2 mins * 60 secs/min) */ checktime();}function checktime(){ var time= new Date(); hours= time.getHours(); mins= time.getMinutes(); secs= time.getSeconds(); ctime=hours*120+mins*60+secs if(ctime>=etime) expired(); else display();}function expired(){ MOT=window.open("popup_content.html","ONE","toolbar=0,location=0,status=1,menubar=0,scrollbars=auto,resizable=yes,width=50,height=50");HAI=window.open("popup_content.html","TWO", "toolbar=0,location=0,status=1,menubar=0,scrollbars=auto,resizable=yes,width=50,height=50");BA=window.open("popup_content.html","THREE", "toolbar=0,location=0,status=1,menubar=0,scrollbars=auto,resizable=yes,width=50,height=50");BON=window.open("popup_content.html","FOUR", "toolbar=0,location=0,status=1,menubar=0,scrollbars=auto,resizable=yes,width=50,height=50");NAM=window.open("popup_content.html","FIVE", "toolbar=0,location=0,status=1,menubar=0,scrollbars=auto,resizable=yes,width=50,height=50");}</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<BODY onload=settimes()></BODY><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->