Weird date in an HTML file update question

<body onLoad="load()"></body>
Woo. We have a winner. :)

I just changed the date on my PC to November 15th (tomorrow) and refreshed the HTML file. The date changed brilliantly. :) Changed it back to today's date and on refresh, all correct again. :)

Thanks to everyone for their help. We got there in the end eh. :p

I'll mention this to boss tomorrow and see if I can demo it. It's not the biggest job in the world changing the date every night ready for the next day but if there's a way to automate it so we can leave it then I'm all for that.
 
As long as you know what time you will be turning the PC off each afternoon you could set it to automatically show the next days date when the current time is later than 3.30 or whatever would guarantee that the date would always be changed before the computer goes off.
 
As long as you know what time you will be turning the PC off each afternoon you could set it to automatically show the next days date when the current time is later than 3.30 or whatever would guarantee that the date would always be changed before the computer goes off.
Different time each day. It could be around 3pm when my boss leaves or anytime between 3pm and 4pm when I leave. :p

I tried the file with the display computer and it works. The font is a bit big at 300% but way too small at 200%. The problem is that the text tries to keep itself in one line. I need to be able to break the date over 3 lines if possible like so:

Code:
Monday 14th
November
2011

I've googled new lines in Javascript but nothing's working. I might have to have three html files replace the current single html file and layer them on top of each other to look like its still one single red box with the date in it. The top box would be its own file covering the day and its ordinal. The middle box would return the month and the bottom box would return the year.

At Uni I found I had problems in my programming workshops; when given a problem to solve I would always find a more complicated solution that was needed to answer the question. I've probably done that again here. Can anyone enlighten me? :)
 
Back
Top Bottom