|
Home
Languages
VB6
JavaScript
Perl
HTML
SQL
Java
DOS
Forums
Web Site
Software
gbCodeLib
Personal
Webcam
Biography
Contact Me
|
GBIC >>
Source Code >>
JavaScript >> Snippet
|
Show time/day visitor comes to a web page
<
script
>
//This script posts the exact day and time you arrived
RightNow
=
new
Date
();
document.write(
"Today's date is "
+
(RightNow.getMonth()
+
1)
+
"-"
+
RightNow.getDate()
+
"-"
+
RightNow.getFullYear()
+
".
You entered
this
Web Page at exactly
:
" + RightNow.getHours() +
":"
+
RightNow.getMinutes()
+
" and "
+
RightNow.getSeconds()
+
" seconds"
)
</
script
>
|
|
|
|