|
MAILING LIST
Join my mailing list now to receive all the
latest hacks emailed straight to your inbox.
Join Now |
|
Programming
>> JavaScript >> Date-Clock
Combination
Date-Clock Combination
<!-- THREE STEPS TO INSTALL DATE-CLOCK COMBINATION:
1. Copy the coding into the HEAD of your HTML document
2. Add the onLoad event handler into the BODY tag
3. Put the last coding into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function printDate()
{
var today = new Date();
var day=today.getDate();
var month = today.getMonth() + 1;
var year = today.getFullYear().toString();
var box=document.forms[0].DateBox;//this is where we want to print the date
if ( ( month /10 ) < 1 )
{
month=("0" + month).toString(); //add the leading 0 -- looks more professional
}
if ( (day/10)<1)
{
day=("0" + today.getDate()).toString();//add the leading 0 -- looks better
}
box.value=month + " - " + day + " - " + year;
}
function printTime()
{
var box = document.forms[0].DateBox; //this is where we want to print the date
var thetime=new Date();
if (thetime.getMinutes() / 10 <1 )
{
box.value=thetime.getHours() + " : " + "0" + thetime.getMinutes();
}
else
{
box.value=thetime.getHours() + " : " + thetime.getMinutes();
}
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->
<BODY onLoad="return printDate()">
<!-- STEP THREE: Copy this code into the BODY of your HTML document -->
<div align="center">
<form name="stats"> Date/Time
<br>
<input type="text" readonly="readonly" name="DateBox" size="10" onmouseover="printTime();" onmouseout="printDate();">
<br>
<font size="1">Mouse over to see time</font>
</input>
</form>
</div>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.97 KB -->
|
Use this Search to look for things on my Web Site (Note: Use lower Case,
and click Submit when done, NOT enter)
|
Computer Security
CNET
Check out this site for the latest in security related news and much more.
CsD Security
Have a look at my security page, shows your stuff about computer security
and software you can get to stop hackers from getting into your comp.
CsD News
This page will have the latest in computer
news
( Security related news)
Antionline
This is one of the best sites I have come across. It deals with all
security related news, software, hacking etc. |
|
VOTE
Please vote for my site, simply
click here to vote, it will take 5 minutes, max. (Note: Just click
here then click ok on any pop up message, thats it)

Hackers Top 50
|
|