<html> <head> <title>Now put these lines where you want the message to go</title> <script language="JavaScript"> <!-- Hide this script from old browsers -- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (2 < argc) ? argv[2] : null; var path = (3 < argc) ? argv[3] : null; var domain = (4 < argc) ? argv[4] : null; var secure = (5 < argc) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function ResetCounts(name) { visits = 0; SetCookie("visits", visits, expdate , "/", null, false); location.reload(); } // -- End Hiding Here --> //If you want to spice up the lettering a little bit by making it bold or adding color, you would take one of the lines like this --> document.write("YOUR MESSAGE"); and add the tags. Here's an example...// //document.write("<font color="red"><strong><em>"+"YOUR MESSAGE"+"</font></strong></em>);// </script> </head> <body> <p align="center">Now put these lines where you want the message to go. <script language="JavaScript"> <!-- Hide this script from old browsers -- var expdate = new Date(); var visits; expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365)); if(!(visits = GetCookie("visits"))) visits = 0; visits++; SetCookie("visits", visits, expdate, "/", null, false); document.write("You have visited this page "+visits+" time(s)."+"<br>"); if(visits == 1) document.write("YOUR MESSAGE 1 "); if(visits == 2) document.write("YOUR MESSAGE 2"); if(visits == 3) document.write("YOUR MESSAGE 3"); if(visits == 4) document.write("YOUR MESSAGE 4 "); if(visits == 5) document.write("YOUR MESSAGE 5 "); if(visits == 6) document.write("YOUR MESSAGE6 "); if(visits == 7) document.write("YOUR MESSAGE7"); if(visits== 8) document.write("YOUR MESSAGE8"); if(visits== 9) document.write("YOUR MESSAGE9"); if(visits>=10) document.write("YOUR MESSAGE10"); // -- End Hiding Here --> </script> </p> </body> </html>
1998 Copyright (C) Next Step All Rights Reserved