Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Times Visited Plus Message
Insert into <HEAD>
<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 --> </script>
Insert into <BODY>
<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"); if(visits == 2) document.write("YOUR MESSAGE"); if(visits == 3) document.write("YOUR MESSAGE"); if(visits == 4) document.write("YOUR MESSAGE"); if(visits == 5) document.write("YOUR MESSAGE"); if(visits == 6) document.write("YOUR MESSAGE"); if(visits == 7) document.write("YOUR MESSAGE"); if(visits== 8) document.write("YOUR MESSAGE"); if(visits== 9) document.write("YOUR MESSAGE"); if(visits>=10) document.write("YOUR MESSAGE"); // -- End Hiding Here --> </script>
Other Options
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>);