•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 374,174 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,464 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 714 | Replies: 6
![]() |
•
•
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation:
Rep Power: 0
Solved Threads: 7
Hi all,
I do not know where to put these Thread , so I am hoping that you will answer me here .
http://www.w3schools.com/js/tryit.asp?filename=tryjs_timing_clock
I do not understand why these code display clock .
Thank you for your effort of reading .
I do not know where to put these Thread , so I am hoping that you will answer me here .
http://www.w3schools.com/js/tryit.asp?filename=tryjs_timing_clock
I do not understand why these code display clock .
Thank you for your effort of reading .
•
•
Join Date: Jul 2007
Posts: 94
Reputation:
Rep Power: 2
Solved Threads: 2
hi
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
All this is doing is pulling the date from your local computer (little clock in the bottom right corner (on xp). And storing the hours, mins and seconds in variables.
the rest of the script is a bit usless and just makes it look complicated. All it does is add 0's and stuff.
This is quite simple javascript, so if you are just hopping, trying to grasp the language, i would suggest to start at the beggining and go slowly making sure you understand peices before moving on.
Reece
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
All this is doing is pulling the date from your local computer (little clock in the bottom right corner (on xp). And storing the hours, mins and seconds in variables.
the rest of the script is a bit usless and just makes it look complicated. All it does is add 0's and stuff.
This is quite simple javascript, so if you are just hopping, trying to grasp the language, i would suggest to start at the beggining and go slowly making sure you understand peices before moving on.
Reece
•
•
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation:
Rep Power: 0
Solved Threads: 7
•
•
Join Date: Nov 2007
Location: Banjaluka,RS,Bosnia
Posts: 283
Reputation:
Rep Power: 0
Solved Threads: 7
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
Similar Threads
- displaying time (Java)
- Visual Basic Timer/Clock/Countdown. (Visual Basic 4 / 5 / 6)
- how to clock video card? (Monitors, Displays and Video Cards)
- !NEW!:::::!!Time Display Program!! (C++)
Other Threads in the HTML and CSS Forum
- Previous Thread: Software info help :)
- Next Thread: Layout Tables to CSS



Linear Mode