[advanced search]
Results from the most recent live auction are here.
15 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 > CODE
User Name
Password

Old 07-18-2005, 06:53 PM   · #1
axilant
Account Closed
 
axilant's Avatar
 
Name: Cody Selzer
Location: /etc/passwd
Trader Rating: (40)
Join Date: May 2004
Posts: 2,194
NP$: 0.00 (Donate)
axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold
Member of the Month
July 2005
Javascript live clock

Save this as: clock.js

Code:
//Coded by axilant[at]gmail.com function clock() { var curtime = new Date; var hours = curtime.getHours(); if(hours < 10) { var hourstring = "0" + hours+toString(); } else { var hourstring = hours.toString(); } var minutes = curtime.getMinutes(); if(minutes < 10) { var minutestring = "0" + minutes.toString(); } else { var minutestring = minutes.toString(); } var seconds = curtime.getSeconds(); if(seconds < 10) { var secondstring = "0" + seconds.toString(); } else { var secondstring = seconds.toString(); } var timestring = hourstring + ":" + minutestring + ":" + secondstring; var timeplace = document.getElementById("time"); timeplace.childNodes[0].nodeValue = timestring; setTimeout('clock()', 1000); } setTimeout('clock()', 1000);


Save this as: index.htm
Code:
<html lang="en"> <head> <script src="clock.js"> </head> <body> <h2>Time:<div id="time">00:00:00</div></h2> </body> </html>


This should work in all browsers. Been tested in ie 6, and firefox (newest version)

Any questions or comments please post here.


Please register or log-in into NamePros to hide ads

Last edited by axilant : 07-20-2005 at 07:53 PM.
axilant is offline   Reply With Quote
Old 07-19-2005, 09:32 PM   · #2
SecondVersion
while ($awake){ code(); }
 
SecondVersion's Avatar
 
Name: Eric
Location: Kentucky
Trader Rating: (142)
Join Date: Mar 2005
Posts: 4,240
NP$: 385.00 (Donate)
SecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond repute
Member of the Month
MOTM September 2005 Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet
I've uploaded your script

However, comes up blank: http://www.dndrop.net/index.htm

Any ideas as to why?
__________________

SecondVersion.com - The Personal Blog of SecondVersion
Domain Name Portfolio - Get your free copy. - Version 1.0.2 now available!!
MetaCreator.com - Free Meta Tag Creator
CodingPlanet.com - Coming soon...
SecondVersion is offline   Reply With Quote
Old 07-19-2005, 09:38 PM   · #3
axilant
Account Closed
 
axilant's Avatar
 
Name: Cody Selzer
Location: /etc/passwd
Trader Rating: (40)
Join Date: May 2004
Posts: 2,194
NP$: 0.00 (Donate)
axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold
Member of the Month
July 2005
Yes, my mistake

Change the id to time instead of clock in the body

Fixed it above.
axilant is offline   Reply With Quote
Old 07-19-2005, 09:48 PM   · #4
SecondVersion
while ($awake){ code(); }
 
SecondVersion's Avatar
 
Name: Eric
Location: Kentucky
Trader Rating: (142)
Join Date: Mar 2005
Posts: 4,240
NP$: 385.00 (Donate)
SecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond repute
Member of the Month
MOTM September 2005 Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet
Ok, I edited and uploaded...But still, comes up blank.
__________________

SecondVersion.com - The Personal Blog of SecondVersion
Domain Name Portfolio - Get your free copy. - Version 1.0.2 now available!!
MetaCreator.com - Free Meta Tag Creator
CodingPlanet.com - Coming soon...
SecondVersion is offline   Reply With Quote
Old 07-20-2005, 07:54 PM   · #5
axilant
Account Closed
 
axilant's Avatar
 
Name: Cody Selzer
Location: /etc/passwd
Trader Rating: (40)
Join Date: May 2004
Posts: 2,194
NP$: 0.00 (Donate)
axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold
Member of the Month
July 2005
Hmm... use the new body code in the above... http://phpprint.com it works perfectly fine O.o same code... :-/
axilant is offline   Reply With Quote
Old 08-22-2005, 05:17 AM   · #6
Zubair1
NamePros Regular
 
Trader Rating: (11)
Join Date: Mar 2005
Posts: 847
NP$: 29.00 (Donate)
Zubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really nice
AIDS/HIV
you could also try this it's without the formatting:

<script type="tex/tjavascript">
function start_time(){
var nDate = new DATE();
var elem = document.getElementById ? document.getElementById("box")(document.all) ? document.all("box"):null);
if(elem){
elem.innerText = nDate;
}
setTimeout("start_time()",100);
}
</script onload>
<body onload="start_time()">
<div id = "box"></div>
</body>
__________________
Live Support : Zubair11 [at] hotmail.com
Free SEO Directory! || Free Games and Songs || eBloggy.net
Zubair.info || Mixcat Interactive
Zubair1 is offline   Reply With Quote
Old 09-05-2005, 12:26 AM   · #7
bbalegere
Senior Member
 
bbalegere's Avatar
 
Name: Bharat Balegere
Location: Bangalore
Trader Rating: (16)
Join Date: Jul 2005
Posts: 1,222
NP$: 282.60 (Donate)
bbalegere is just really nicebbalegere is just really nicebbalegere is just really nicebbalegere is just really nice
Nice tip.
bbalegere is offline   Reply With Quote
Closed Thread

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RegisterFly removes Live Support? Raf Domain Name Discussion 7 05-15-2005 02:25 PM
Domain Masters is going to be live today from SES at 3PM EST instead of 7 PM EST mcahn For Sale / Advertising Board 0 03-02-2005 10:32 AM
Upcoming NamePros Live Events (Next Event: Thursday June 30th) -RJ- NamePros Announcements 0 06-07-2004 11:45 PM

Site Sponsors
Traffic Down Under Proof is in the Parking EscrowDNS
Advertise your business at NamePros
All times are GMT -7. The time now is 09:54 PM.


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