Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 5th, 2006, 6:13 PM   #1
DBZ
Newbie
 
Join Date: Feb 2006
Posts: 22
Rep Power: 0 DBZ is on a distinguished road
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.
DBZ is offline   Reply With Quote
Old Mar 5th, 2006, 7:17 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Mar 5th, 2006, 7:41 PM   #3
Navid
Hobbyist Programmer
 
Navid's Avatar
 
Join Date: Feb 2005
Location: Canada
Posts: 187
Rep Power: 4 Navid is on a distinguished road
Send a message via MSN to Navid
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=
Navid is offline   Reply With Quote
Old Mar 5th, 2006, 8:09 PM   #4
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
[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!
ReggaetonKing is offline   Reply With Quote
Old Mar 9th, 2006, 5:09 AM   #5
Agent 47
Hobbyist Programmer
 
Agent 47's Avatar
 
Join Date: Nov 2005
Posts: 122
Rep Power: 3 Agent 47 is on a distinguished road
http://misc.nickbrokeit.net/js/clock.html
__________________
"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"
Agent 47 is offline   Reply With Quote
Old Mar 9th, 2006, 7:53 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Mar 9th, 2006, 9:57 PM   #7
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
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.
Booooze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:42 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC