The following is the Java script for getting local time from the user's
computer, but it does not work as is on WikiEd.
<center><table BORDER CELLSPACING=0 CELLPADDING=5 > <tr> <td ALIGN=CENTER
VALIGN=CENTER BGCOLOR="#990000"><script language=JavaScript> function
process(){} today = new Date() if(today.getMinutes() < 10) { pad = "0"} else
pad = ""; if((today.getHours() < 12) && (today.getHours() >= 6)) {
document.write("<center><FONT SIZE=3 color=white><B>I wish you a Good
Morning</FONT></center>")} if((today.getHours() >= 12) && (today.getHours()
< 18)) { document.write("<center><FONT SIZE=3 color=white><B>I wish you a
Good Afternoon</FONT></center>")} if((today.getHours() >= 18) &&
(today.getHours() <= 23)) { document.write("<center><FONT SIZE=3
color=white><B>I wish you a Good Evening.</FONT></center>")}
if((today.getHours() >= 0) && (today.getHours() < 4)) {
document.write("<center><FONT SIZE=3 color=white><B>Well, you're up late ...
Try to get some sleep</FONT></center>")} if((today.getHours() >= 4) &&
(today.getHours() <= 6)) { document.write("<center><FONT SIZE=3
color=white>You're up early this morning !</FONT></center>")}
document.write("<center><B><FONT SIZE=3 color=white>The Time is :
",today.getHours(),":",pad,today.getMinutes()) document.write(" hrs. ..
Today is : ",today.getFullYear(),"-",today.getMonth()+1,
"-",today.getDate(),"<br></font></center>"); // end hiding contents -->
</script> </td> </tr> </table></center>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "WikiEducator" group.
To visit wikieducator: http://www.wikieducator.org
To visit the discussion forum: http://groups.google.com/group/wikieducator
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---