<!--WEEKLY TIMED POP-UP--> <!-- This goes in the HEAD of the html file --> <script language="JavaScript" type="text/javascript"> <!-- Copyright 2006, Sandeep Gangadharan --> <!-- For more free scripts go to http://sivamdesign.com/scripts/ --> <!-- var day = new Array(); day[0]="Sunday"; day[1]="Monday"; day[2]="Tuesday"; day[3]="Wednesday"; day[4]="Thursday"; day[5]="Friday"; day[6]="Saturday"; var theDay = "Monday"; // Set the day the pop-up should open at left in the format shown var hourAlrm = "07"; // Set the hour the pop-up should open at left in the format shown var minAlrm = "56"; // Set the minute the pop-up should open at left in the format shown var suf = "pm"; // Set whether 'am' or 'pm' in the format shown (lowercase only) today = new Date(); day = (day[today.getDay()]); function sivamtime() { now=new Date(); hour=now.getHours(); min=now.getMinutes(); sec=now.getSeconds(); if (min<=9) { min="0"+min; } if (sec<=9) { sec="0"+sec; } if (hour>12) { hour=hour-12; add="pm"; } else { hour=hour; add="am"; } if (hour==12) { add="pm"; } if (hour==00) { hour="12"; } hour = (hour<=9) ? "0"+hour : hour; ST=setTimeout("sivamtime()", 1000); if (day == theDay && hour == hourAlrm && min == minAlrm && add == suf) { window.clearTimeout(ST); window.open('popwind.html','NewWin','toolbar=no,status=no,width=350,height=135'); } // Create a html document (in this example "popwind.html") that shall be the pop-up } // --> </script> <!-- Note the script in the BODY tag --> <body onLoad="sivamtime()">