FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » browser time
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: browser time [message #173274 is a reply to message #173270] Fri, 01 April 2011 04:05 Go to previous messageGo to previous message
P E Schoen is currently offline  P E Schoen
Messages: 86
Registered: January 2011
Karma:
Member
"suresh" wrote in message
news:ef82c644-ec3a-41f0-9134-57fbb2560557(at)glegroupsg2000goo(dot)googlegroups(dot)co m...

> Hi Paul,
> thanks, why dont you paste your code also here ? :)

You can just use your browser and View | Source. But the script is as
follows:

function sbClock() {
var DateString=(new Date()).toString();
document.forms.Form1.Time.value=
DateString.substr( DateString.indexOf(":")-2, 8 );
}

I got that from the FAQ:
http://www.linuxtopia.org/online_books/javascript_guides/javascript_faq/clo ckexa.htm

But the substring is incorrect. Apparently there are many other errors, so
it should be used with caution. A better JavaScript reference is:
http://jibbering.com/faq/

Paul
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mssql_select_db problem
Next Topic: relative v. absolute paths
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 15:52:08 GMT 2024

Total time taken to generate the page: 0.04186 seconds