Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   JavaScript Time for your webpage (http://www.programmingforums.org/showthread.php?t=8726)

DBZ Mar 5th, 2006 6:13 PM

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.

DaWei Mar 5th, 2006 7:17 PM

Javascript != Java. There is a Javascript forum.

Navid Mar 5th, 2006 7:41 PM

:

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=

ReggaetonKing Mar 5th, 2006 8:09 PM

[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!

Agent 47 Mar 9th, 2006 5:09 AM

http://misc.nickbrokeit.net/js/clock.html

DaWei Mar 9th, 2006 7:53 AM

I hate that, Agent. Now I know I'm a day late and a dollar short. ;)

Booooze Mar 9th, 2006 9:57 PM

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.


All times are GMT -5. The time now is 4:12 AM.

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