|
|
|
Include clock.txt in the HEAD section of your document
clock.txt
=========
<script language="javascript">
<!-- Clock in Java Script .. Cameron Gregory cameron@bloke.com
// http://www.bloke.com/
// http://www.bloke.com/javascript/Clock/
var dateform
speed=1000
len=28
tid = 0;
function dodate()
{
f.date.value=new Date();
tid=window.setTimeout("dodate()",speed);
}
function start(x) {
f=x
tid=window.setTimeout("dodate()",speed);
}
function cleartid() {
window.clearTimeout(tid);
}
// for some reason on some pages this crashes netscape
function Clock()
{
document.write('<FORM name=dateform><input name=date size=')
document.write(len)
document.write(' value="Clock: Requires Javascript"></FORM>')
start(document.dateform);
}
// end-->
</script>
Add the following inside your document:
<script language="javascript">
Clock();
</script> |
| PHP Calendar Categories : PHP, Calendar, Date Time, Java Script, CSS | | | Local Time clock and Server time usign PHP and JavaScript Categories : PHP, Java Script, Date Time, Beginner Guides | | | Local-to-user date and time display regardless of time zone or where the website's server is located Categories : PHP, Date Time, HTML and PHP, Java Script | |
| | Javascript Date Picker Categories : Java Script, Date Time, Calendar | | | Java Script which implements a Clock in the status bar Categories : Java Script, Date Time | | | enhanced date picker with jcript checking for a dynamic date input Categories : PHP, Java Script, Date Time, Calendar, Arrays | | | Simple Javascript CSS Digital Clock Categories : Java Script, Date Time, CSS, Beginner Guides, Web Design | | | Higly Customizable Javascript Calendar Script Categories : Java Script, Calendar, Date Time, HTML, CSS | | | Date Validation using JavaScript. Intended to use it as checkdate() from PHP. Categories : Java Script, Date Time, PHP | | | Calendars to choose a range of dates , reservation events ... Categories : PHP, Calendar, Java Script, Date Time | | | Enchancing dd/mm/yyyy forms with unobtrusive javascript Categories : Java Script, HTML, User Interface, Date Time | | | How to check if JavaScript is enabled on a remote browser with PHP Categories : PHP, Java Script | | | Change the background color of a website daily dynamically using the php date function to get the current day of the week and depending on that day, set the background color for the web page. Categories : PHP, Date Time, Beginner Guides, Web Design | | | JavaScript IP validation; IP validation script; Categories : Java Script, Algorithms | |
|
|