[advanced search]
Results from the most recent live auction are here.
11 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 04-01-2008, 11:01 PM   · #1
adiboy
Senior Member
 
adiboy's Avatar
 
Name: Adi
Location: S'pore
Trader Rating: (36)
Join Date: Mar 2005
Posts: 1,357
NP$: 154.00 (Donate)
adiboy is just really niceadiboy is just really niceadiboy is just really niceadiboy is just really niceadiboy is just really nice
Animal Cruelty
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.


Please register or log-in into NamePros to hide ads
__________________
TalkMoolah - Talk about ways to make money online
adiboy is offline   Reply With Quote
Old 04-02-2008, 07:09 PM   · #2
adiboy
Senior Member
 
adiboy's Avatar
 
Name: Adi
Location: S'pore
Trader Rating: (36)
Join Date: Mar 2005
Posts: 1,357
NP$: 154.00 (Donate)
adiboy is just really niceadiboy is just really niceadiboy is just really niceadiboy is just really niceadiboy is just really nice
Animal Cruelty
anyone?
__________________
TalkMoolah - Talk about ways to make money online
adiboy is offline   Reply With Quote
Old 04-02-2008, 07:15 PM   · #3
weblord
www.1weblord.com
 
weblord's Avatar
 
Name: William R. Nabaza - williamrnabaza.com
Location: Philippines - www.Nabaza.com
Trader Rating: (224)
Join Date: Dec 2005
Posts: 18,163
NP$: 16235.78 (Donate)
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
Autism Protect Our Planet
http://www.yaldex.com/FSDateAndTime/DateTime1.htm

Originally Posted by adiboy
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.

weblord is offline  
  Reply With Quote
Old 04-02-2008, 08:37 PM   · #4
maximum
<?if(!$alive){exit();}?>
 
maximum's Avatar
 
Name: -Unknown-
Location: Inside your head...
Trader Rating: (15)
Join Date: Oct 2005
Posts: 791
NP$: 26.70 (Donate)
maximum has much to be proud ofmaximum has much to be proud ofmaximum has much to be proud ofmaximum has much to be proud ofmaximum has much to be proud ofmaximum has much to be proud ofmaximum has much to be proud ofmaximum has much to be proud ofmaximum has much to be proud of
Originally Posted by adiboy
but the time must be running.

http://www.dynamicdrive.com/dynamicindex6/clock2.htm
__________________
Support the Children's Miracle Network hospitals
■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□
maximum is offline  
  Reply With Quote
Old 04-02-2008, 08:43 PM   · #5
weblord
www.1weblord.com
 
weblord's Avatar
 
Name: William R. Nabaza - williamrnabaza.com
Location: Philippines - www.Nabaza.com
Trader Rating: (224)
Join Date: Dec 2005
Posts: 18,163
NP$: 16235.78 (Donate)
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
Autism Protect Our Planet
http://www.dynamicdrive.com/dynamicindex6/clock3.htm

Originally Posted by adiboy
Anyone know any javascript code that can showcase date and time

weblord is offline  
  Reply With Quote
Old 04-03-2008, 05:05 AM   · #6
Daniel
Danltn.com
 
Daniel's Avatar
 
Name: Daniel Neville
Location: Danltn.com / Nottingham, UK
Trader Rating: (65)
Join Date: May 2007
Posts: 1,185
NP$: 0.56 (Donate)
Daniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond reputeDaniel has a reputation beyond repute
Ethan Allen Fund Ethan Allen Fund
That one uses onload, is it really that important whether onload is used or not?

Dan
Daniel is offline   Reply With Quote
Old 04-04-2008, 03:20 AM   · #7
Irieman
NamePros Regular
 
Name: Richard
Location: Switzerland
Trader Rating: (16)
Join Date: Sep 2006
Posts: 835
NP$: 15.10 (Donate)
Irieman is a jewel in the roughIrieman is a jewel in the roughIrieman is a jewel in the rough
AIDS/HIV Animal Cruelty Animal Rescue Wildlife 9/11/01 :: Never Forget Save a Life Save a Life Autism AIDS/HIV Autism Save a Life Save a Life Save a Life Adoption AIDS/HIV Adoption Autism Autism Autism Parkinson's Disease Parkinson's Disease Parkinson's Disease
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
Irieman is online now   Reply With Quote
Old 04-04-2008, 03:26 AM   · #8
weblord
www.1weblord.com
 
weblord's Avatar
 
Name: William R. Nabaza - williamrnabaza.com
Location: Philippines - www.Nabaza.com
Trader Rating: (224)
Join Date: Dec 2005
Posts: 18,163
NP$: 16235.78 (Donate)
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
Autism Protect Our Planet
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

weblord is offline  
  Reply With Quote
Old 04-04-2008, 05:36 AM   · #9
Irieman
NamePros Regular
 
Name: Richard
Location: Switzerland
Trader Rating: (16)
Join Date: Sep 2006
Posts: 835
NP$: 15.10 (Donate)
Irieman is a jewel in the roughIrieman is a jewel in the roughIrieman is a jewel in the rough
AIDS/HIV Animal Cruelty Animal Rescue Wildlife 9/11/01 :: Never Forget Save a Life Save a Life Autism AIDS/HIV Autism Save a Life Save a Life Save a Life Adoption AIDS/HIV Adoption Autism Autism Autism Parkinson's Disease Parkinson's Disease Parkinson's Disease
No problem.
Irieman is online now   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Proof is in the Parking Get Your Site Linked at LinkedKeywords.com http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 05:19 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0