Unstoppable Domains โ€” Get your daily AI drops report

Javascript time and date help

Spacemail by SpaceshipSpacemail by Spaceship
Watch
Impact
11
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.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
anyone?
 
0
•••
0
•••
adiboy said:
but the time must be running.
http://www.dynamicdrive.com/dynamicindex6/clock2.htm
 
0
•••
0
•••
That one uses onload, is it really that important whether onload is used or not?

Dan
 
0
•••
Daniel said:
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 :

weblord said:
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
 
0
•••
Thanks for modifying the script.

Irieman said:
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
 
0
•••
No problem. :)
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back