Home
HTML
Javascript
PHP
Generators
SEO Tools
Links
Attribution
Contact

Time Script

The below script will allow a message to be displayed to your visitors, depending on the time they arrive at your page.

 

Below is a sample HTML code for deployment of the script in a web page. Notice we call the script externally. You will need to change the name of the script. Note that "dtField" will place the message where you want it to appear in your page.

<head>
<title>Message</title>
<script language="Javascript" type="text/javascript" src="name of javascriptfile .js">
</script>
</head>
<body bgcolor="#FFFFFF">
<h1 id="dtField"> </h1>
</body>

This is the script. Tweak it as you wish. Make sure you save it with a the same name you reference on your page.