![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2006
Posts: 22
Rep Power: 0
![]() |
JavaScript Time for your webpage
Does anyone have that JavaScript code where you put that time into your page and code the time to follow the time on the bottom right hand corner. I tried many times to make a Java time code but it didnt work so I need help from you guys to give me the JavaScript code for time.
|
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Javascript != Java. There is a Javascript forum.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
document.write(new Date()); You can have more flexibility with the format. Google tells all: http://www.google.ca/search?hl=en&q=...ipt+time&meta= |
|
|
|
|
|
#4 |
|
Sexy Programmer
|
[PHP]
var date = new Date(); var hour = date.getHour(); etc... [/PHP] and like DaWei said, JAVA is not JAVASCRIPT http://www.programmingforums.org/for...splay.php?f=23 Java is a programming language which almost can be integrated in web pages as applet program. Javascript is a scripting language for the web. So web developer have something to make their web pages dynamic and have awesome features!
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 122
Rep Power: 4
![]() |
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet" |
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I hate that, Agent. Now I know I'm a day late and a dollar short.
![]()
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#7 |
|
Expert Programmer
|
Doing a 'time' script in javascript would be considered an easy task. Why don't you try google. I don't even have to look, and i know tehre are tons of tutorials, and scripts already out there.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|