| <SCRIPT>
/********** Cookie Functions **********/ function setCookie(name,
value) { function getCookie(name) {var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf(prefix); if (begin == -1) return null; var end = document. cookie.indexOf(";", begin);if (end == -1) end = dc. length;return unescape(dc. substring(begin + prefix.length, end));} /********** End of Cookie Functions **********/ var counterStr = ""; // string variable that will hold the counter digits var visits = getCookie("counter"); // if the counter cookie does not exist
then make this the first visit visits += ""; // converting the number to a string so that we can it's string properties. /* setCookie("counter", visits); </SCRIPT> <BODY> etc... <SCRIPT> document.write(counterStr); // write out the counter here </SCRIPT> </BODY> |