The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
function the_TIME_now()
{
var date=new Date()
var hours=date.getHours()
var mins=date.getMinutes()
if (mins < 10)
mins="0"+mins
var secs=date.getSeconds()
if (secs < 10)
secs="0"+secs
the_time=hours+mins+secs
the_time_now=setTimeout("the_TIME_now()",001)
return the_time_now
while( eventStart != the_time_now)
the_TIME_now()
while (eventStart == the_time_now)
alert('NOW!')
}
var eventStart=prompt("What time does it start?","")
It doesn't work (I *think*) because the eventStart time is never and never can be the_time_now. I did a test for this and it proved moi correct. The problem is, I have no idea of how to resolve this.
Can you help?
Cheers
function the_TIME_now()
{
var date=new Date()
var hours=date.getHours()
var mins=date.getMinutes()
if (mins < 10)
mins="0"+mins
var secs=date.getSeconds()
if (secs < 10)
secs="0"+secs
the_time=hours+mins+secs
the_time_now=setTimeout("the_TIME_now()",001)
return the_time_now
while( eventStart != the_time_now)
the_TIME_now()
while (eventStart == the_time_now)
alert('NOW!')
}
var eventStart=prompt("What time does it start?","")
It doesn't work (I *think*) because the eventStart time is never and never can be the_time_now. I did a test for this and it proved moi correct. The problem is, I have no idea of how to resolve this.
Can you help?
Cheers