PDA

View Full Version : Time Specified Page Opening?



alsocoor
12-17-2005, 03:39 PM
Hello There :)

I have a question..I really don't know if this is something that can be accomplished or not. Any help or information on this would be greatly appreciated!

I am looking for a code that will open a page at a specified time.

Currently, I am changing the /notyet.html link everyday at 7 pm to /17dec.html (or whatever the date may be), to make a new page pop up.

<TD ALIGN=“LEFT”>17<br>
<A HREF="javascript:popUp('http://users.igl.net/canusapro/adventcalendar/notyet.html')"> <img BORDER="0" width="100" height="100" src="http://users.igl.net/canusapro/xmas/soldiers.gif"></A>

Is there any script out there that will do this automatically?

Thanks :)
alsocoors

jscheuer1
12-17-2005, 04:22 PM
<script type="text/javascript">

function timeYet(){
var today=new Date()
if (today.getHours()>18)
popUp('http://users.igl.net/canusapro/adventcalendar/'+today.getDate()+'dec.html')
else
popUp('http://users.igl.net/canusapro/adventcalendar/notyet.html')
}

</script>
</head>
<body>
<A HREF="javascript:timeYet();"> <img BORDER="0" width="100" height="100" src="http://users.igl.net/canusapro/xmas/soldiers.gif"></A>
</body>

alsocoor
12-17-2005, 05:31 PM
Thank you so much John :)
You just made my life much easier!