here this script will display the date for your user/visitors
input it in a html file in the head or body
Today's date script
Visit java-scripts.net or
var dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
var monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
var now = new Date
document.write("Today is " + dayName[now.getDay()] + ", " + monName[now.getMonth()] + " "+now.getDate() +".")
Don't you people ever get tired of writin these scripts ??I've written this script and seen this script atleast 20 times.Please stop writing these basic scripts
actually with php, i don't know what's the use of js. i don't even bother to learn it. this basic script show me what js can do, even if this script is really basic
And which do you think is best?
As a web designer, with which one you know that user is seeing a date?
The problem with JS is that it rely the user computer time, if the user computer date and time is not adjusted then the time showing will be inaccurate.For PHP it read the server time, no matter what date and time setting is made on the user computer the result will remain consistent and unaffected by the user computer setting.Most users will have no problem viewing becos PHP will return the time and date in plain text format whereas JS may have problem with users who choose to disable JS for security reasons and older browser that do not support JS.Hope the above explainations will help you to see what want you are choosing and what to expect.Thank you
Don't you people ever get tired of writin these scripts ??
I've written this script and seen this script atleast 20 times.
Please stop writing these basic scripts
finally somebody who agrees with me.
Even though I doubt he wrote it. I'm sure he copy pasted it from somewhere... *sigh*
|VIEW DESKTOP VERSION||REGISTER||GET FREE HOSTING|