GetDotted Domains

Viewing Thread:
"Some JavaScript Help"

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.

Sun 10/11/02 at 17:24
Regular
Posts: 787
Trying to write a script that lobs up an alert box at a certain time preset by the user. However, the alert box never comes up. I've toyed with it all afternoon and everything I've tried has failed.

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
There have been no replies to this thread yet.
Sun 10/11/02 at 17:24
Regular
"You've upset me"
Posts: 21,152
Trying to write a script that lobs up an alert box at a certain time preset by the user. However, the alert box never comes up. I've toyed with it all afternoon and everything I've tried has failed.

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

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Brilliant service.
Love it, love it, love it!
Christopher
Wonderful...
... and so easy-to-use even for a technophobe like me. I had my website up in a couple of hours. Thank you.
Vivien

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.