<html>
<head>
<title>Page for schi0249</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function nameDefined(ckie,nme)
{
var splitValues
var i
for (i=0;i<ckie.length;++i)
{
splitValues=ckie[i].split("=")
if (splitValues[0]==nme) return true
}
return false
}
function delBlanks(strng)
{
var result=""
var i
var chrn
for (i=0;i<strng.length;++i) {
chrn=strng.charAt(i)
if (chrn!=" ") result += chrn
}
return result
}
function getCookieValue(ckie,nme)
{
var splitValues
var i
for(i=0;i<ckie.length;++i) {
splitValues=ckie[i].split("=")
if(splitValues[0]==nme) return splitValues[1]
}
return ""
}
function insertCounter() {
readCookie()
displayCounter()
}
function displayCounter() {
document.write('<H3 ALIGN="CENTER">')
document.write("You've visited this page ")
if(counter==1) document.write("the first time.")
else document.write(counter+" times.")
document.writeln('</H3>')
}
function readCookie() {
var cookie=document.cookie
counter=0
var chkdCookie=delBlanks(cookie) //are on the client computer
var nvpair=chkdCookie.split(";")
if(nameDefined(nvpair,"pageCount"))
counter=parseInt(getCookieValue(nvpair,"pageCount"))
++counter
var futdate = new Date()
var expdate = futdate.getTime()
expdate += 3600000 * 24 *30 //expires in 1 hour
futdate.setTime(expdate)
var newCookie="pageCount="+counter
newCookie += "; expires=" + futdate.toGMTString()
window.document.cookie=newCookie
}
// -->
</SCRIPT>
</head>
<body>
The current time and date:
<h4>It is now
<script type="text/javascript">
<!--
var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
var month = [color=red]currentTime.getMonth() + 1[/color]
var day = currentTime.getDate()
var year = currentTime.getFullYear()
if (minutes < 10)
minutes = "0" + minutes
document.write(hours + ":" + minutes + " ")
if(hours > 11){
document.write("PM, ")
} else {
document.write("AM, ")
}
document.write(month + "/" + day + "/" + year)
//-->
</script>
</h4>
<hr>
<a href="http://www.wunderground.com/US/MN/Minneapolis.html?bannertypeclick=bigwx">
[img]http://banners.wunderground.com/weathersticker/bigwx_both_cond/language/www/US/MN/Minneapolis.gif[/img]</a>
<hr>
You are visitor #:
<SCRIPT LANGUAGE="JavaScript">
<!--
insertCounter()
// -->
</SCRIPT>
</body>
</html>