|
Page Details >>>
Displays one of two messages after comparing the current date on the user's computer to a date that you determine, such as a product or web site launch date. A before or after message can be customized with your own HTML code, including images.
Add the below code to the <body> section of your page:
<script
language="javascript"
type="text/javascript">
function
launchCheck()
{
var
today =
new
Date();
var
date =
new
Date("January
1, 2001");
if
(today.getTime()
>
date.getTime())
{
document.write('<b>It
is after our launch date of January 1, 2001 !</b>');
}
else
{
document.write('We
have not yet reached the demo lauch date of January 1, 2001.<p><font
size=-1>(For this demo, you can see the other message by changing your
computer clock to after January 1, 2001.)</font>');
}
}
launchCheck();
</script>
|
|