Script Categories













Date & Time >>> Time and Date 3.

This is a simple example of a JavaScript which tells the time and date.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!--
Stamp = new Date();
document.write('<font size="2" face="Arial"><B>' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getFullYear() + '</B></font><BR>');
var Hours;
var Mins;
var Time;
Hours = Stamp.getHours();
if (Hours >= 12) {
        Time = " P.M.";
}
        else {
                Time = " A.M.";
        }

if (Hours > 12) {
        Hours -= 12;
        }

if (Hours == 0) {
        Hours = 12;
        }

Mins = Stamp.getMinutes();

if (Mins < 10) {
        Mins = "0" + Mins;
        }

document.write('<font size="2" face="Arial"><B>' + Hours + ":" + Mins + Time + '</B></font>');

//-->
</script>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

http://www.cashadvance-loans.net/florida/cash-advance-palm-coast-fl/ . Bitcoin Gambling - The Original Crypto Dice Game


©