date time stamp




JavaScript Source Code 3000: Page Details: Date & Time Stamp





























Date & Time Stamp








With this script, you can have the date and time the page was loaded 'stamped' to the page. This would make a wonderful header or footer for any web page.













JavaScript Source Code 3000: Page Details: Date & Time Stamp
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as NotePad or SimpleText) and save (Control-s or Apple-s). The script is yours!




    





<!-- ONE STEP TO INSTALL DATE & TIME STAMP:

1. Paste the coding into the BODY of your HTML document -->

<!-- STEP ONE: Copy this code into the BODY of your HTML document -->

<BODY>

<CENTER>
<SCRIPT LANGUAGE="JavaScript">

<! >
<! >

<!-- Begin
Stamp = new Date();
year = Stamp.getYear();
if (year < 2000) year = 1900 + year;
document.write('<font size="2" face="Arial"><B>' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+ year + '</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>');
// End -->
</SCRIPT>
</CENTER>



<!-- Script Size: 0.97 KB -->











Wyszukiwarka

Podobne podstrony:
date time short
date time long
AutoGallery SQL Date & Time Format
date time scroll
THE CLOCK zegar telling the time podawanie godzin i cwiczenia
The Time Machine Wehikuł czasu FullHD 1080p DTS AC3 5 1
Ranko Magami (Shark) Attract and Date 1 PL
Clawfinger Waste my Time
java sql Date
The Time of the?rk
coffee date dress multisize instructions
date
Prepositions of Time
A Tryst in Time
Larry Niven Passing Perry Crater Base, Time Uncertain
Doctor Who Time Crash
HIM One Last Time

więcej podobnych podstron