Current location: Hot Scripts Forums » General Web Coding » JavaScript » I need a javascript clock.


I need a javascript clock.

Reply
  #1 (permalink)  
Old 01-13-05, 07:56 AM
Bigbear Bigbear is offline
New Member
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question I need a javascript clock.

I need a live clock that dosn't have to be refreshed to see the new time. Also I need the hours minutes and seconds to all be universal instead of it fetching the users time.
Reply With Quote
  #2 (permalink)  
Old 01-13-05, 08:57 AM
bhinkle bhinkle is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
what kind of clock

a digital clock? or are you trying to make a drawing of a clock and make the hands move every minute?
Reply With Quote
  #3 (permalink)  
Old 01-13-05, 09:23 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by Bigbear
I need a live clock that dosn't have to be refreshed to see the new time. Also I need the hours minutes and seconds to all be universal instead of it fetching the users time.
Try here:

http://www.howtocreate.co.uk/tutoria...s/anclock.html

Or here:

http://david.blackledge.com/AnalogClock.html
Reply With Quote
  #4 (permalink)  
Old 01-13-05, 07:15 PM
Bigbear Bigbear is offline
New Member
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow

Thanks End User, sorry but I meant a digital clock. Sorry for the confusion but I need it to also be a universal time.
Reply With Quote
  #5 (permalink)  
Old 01-14-05, 02:00 AM
netbakers's Avatar
netbakers netbakers is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
digital clock

hi ,

download few digital clocks from attachment. may be these fullfill ur requirement
Attached Files
File Type: zip clocks.zip (91.1 KB, 98 views)
__________________
---------------------------------------------------------

info@netbakers.com

http://www.netbakers.com/
Reply With Quote
  #6 (permalink)  
Old 01-14-05, 11:04 AM
Bigbear Bigbear is offline
New Member
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question

Quote:
Originally Posted by netbakers
hi ,

download few digital clocks from attachment. may be these fullfill ur requirement
Ok, I downloaded the files and uploaded them to my server and I unzipped them but they all end in .swf How do I get them to work?
Reply With Quote
  #7 (permalink)  
Old 01-14-05, 10:21 PM
netbakers's Avatar
netbakers netbakers is offline
Newbie Coder
 
Join Date: Dec 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
digital clock

Hi Bigbear,

please mention the format in which you want a digital clock.

if you want to use these .swf clock files in ur website. then simply wirte down code to embed swf file in web page.
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="221" height="27">
<param name="movie" value="images/clock.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
</object>
__________________
---------------------------------------------------------

info@netbakers.com

http://www.netbakers.com/
Reply With Quote
  #8 (permalink)  
Old 01-15-05, 07:54 AM
Bigbear Bigbear is offline
New Member
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow

Thank you. I found another clock though and well I put the clock code onto my page and it all worked except the time was the same. I had some one from another time zone test it out and they had the same hour as me but they had different minutes and seconds. What is making it so I still fetch the users minutes and seconds? I need it so it is totally universal and dosn't fetch any of the users time. Here is the clock code:

<SCRIPT Language='JavaScript'>
<!-- hide from old browsers
function gmtClock(){

time = new Date()
gmtMS = time.getTime() + (time.getTimezoneOffset() * 60000)
gmtTime = new Date(gmtMS)
hour = gmtTime.getHours()
minute = gmtTime.getMinutes()
second = gmtTime.getSeconds()
temp = '' + ((hour < 10) ? '0' : '') + hour
temp += ((minute < 10) ? ':0' : ':') + minute
temp += ((second < 10) ? ':0' : ':') + second
document.clockForm.digits.value = temp
setTimeout('gmtClock()',1000)
}
//-->
</SCRIPT>
<BODY ONLOAD='gmtClock()'>

<FORM NAME='clockForm'>
<INPUT TYPE=text NAME=digits size=4 STYLE=background:00BFFF>
</FORM>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make javascript works in email? seyyen JavaScript 1 12-01-04 10:20 AM
javascript /forms /checkboxes /arrays ski_woman JavaScript 1 11-16-04 04:08 AM
Need a countdown clock Tocpe Script Requests 1 10-17-04 08:38 AM
Order of vbscript and javascript in ASP marlin ASP 0 06-03-04 03:01 PM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 11:58 AM


All times are GMT -5. The time now is 10:38 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.