Results from the most recent live auction are here .
11 members in the live chat room. Join Chat !
04-01-2008, 11:01 PM
· #1 Senior Member
Name: Adi
Location: S'pore
Join Date: Mar 2005
Posts: 1,357
NP$: 154.00 (
Donate )
Javascript time and date help
Anyone know any javascript code that can showcase date and time but without the use of body onload function?
Format must be similar to
this but the time must be
running .
__________________
TalkMoolah - Talk about ways to make money online
04-02-2008, 07:09 PM
· #2 Senior Member
Name: Adi
Location: S'pore
Join Date: Mar 2005
Posts: 1,357
NP$: 154.00 (
Donate )
anyone?
__________________
TalkMoolah - Talk about ways to make money online
04-02-2008, 07:15 PM
· #3 www.1weblord.com
Name: William R. Nabaza - williamrnabaza.com
Location: Philippines - www.Nabaza.com
Join Date: Dec 2005
Posts: 18,163
NP$: 16235.78 (
Donate )
04-02-2008, 08:37 PM
· #4 <?if(!$alive){exit();}?>
Name: -Unknown-
Location: Inside your head...
Join Date: Oct 2005
Posts: 791
NP$: 26.70 (
Donate )
Originally Posted by adiboy but the time must be running .
http://www.dynamicdrive.com/dynamicindex6/clock2.htm
04-02-2008, 08:43 PM
· #5 www.1weblord.com
Name: William R. Nabaza - williamrnabaza.com
Location: Philippines - www.Nabaza.com
Join Date: Dec 2005
Posts: 18,163
NP$: 16235.78 (
Donate )
04-03-2008, 05:05 AM
· #6 Danltn.com
Name: Daniel Neville
Location: Danltn.com / Nottingham, UK
Join Date: May 2007
Posts: 1,185
NP$: 0.56 (
Donate )
That one uses onload, is it really that important whether onload is used or not?
Dan
04-04-2008, 03:20 AM
· #7 NamePros Regular
Name: Richard
Location: Switzerland
Join Date: Sep 2006
Posts: 835
NP$: 15.10 (
Donate )
Originally Posted by Daniel That one uses onload, is it really that important whether onload is used or not?
No, onload only executes the function to display the clock when the page loads, but you could call the function elsewhere in the page.
Try the script weblord posted :
Originally Posted by weblord
DynamicDrive tells you to use the following code to make it work:
Code:
<body onLoad="goforit()">
It also works if you add the following code to your page, but is only displayed after the function is executed, so try to place this near the top of your html, but after the body tag:
Code:
<script>goforit();</script>
Hope this helps,
Richard
04-04-2008, 03:26 AM
· #8 www.1weblord.com
Name: William R. Nabaza - williamrnabaza.com
Location: Philippines - www.Nabaza.com
Join Date: Dec 2005
Posts: 18,163
NP$: 16235.78 (
Donate )
Thanks for modifying the script.
Originally Posted by Irieman No, onload only executes the function to display the clock when the page loads, but you could call the function elsewhere in the page.
Try the script weblord posted :
DynamicDrive tells you to use the following code to make it work:
Code:
<body onLoad="goforit()">
It also works if you add the following code to your page, but is only displayed after the function is executed, so try to place this near the top of your html, but after the body tag:
Code:
<script>goforit();</script>
Hope this helps,
Richard
04-04-2008, 05:36 AM
· #9 NamePros Regular
Name: Richard
Location: Switzerland
Join Date: Sep 2006
Posts: 835
NP$: 15.10 (
Donate )
No problem.
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off