Back to Scripts page
Click in the text area below, select all and copy to grab the script
Script listing:
<HTML> <HEAD> <TITLE>New for You</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from older browsers now = new Date expireDate = new Date expireDate.setMonth(expireDate.getMonth()+6) lastVisit = new Date(cookieVal("pageVisit")) document.cookie = "pageVisit="+now+";expires=" + expireDate.toGMTString() function cookieVal(cookieName) { thisCookie = document.cookie.split("; ") for (i=0; i<thisCookie.length; i++) { if (cookieName == thisCookie[i].split("=")[0]) { return thisCookie[i].split("=")[1] } } return "1 January 1970" } function newCheck(yyyy,mm,dd) { lastChgd = new Date(yyyy,mm-1,dd) if (lastChgd.getTime() > lastVisit.getTime()) { document.write("<IMG SRC='new.gif' WIDTH=28 HEIGHT=11 ALT='new'>") } } // End hiding script --> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE> <H2> Negrino and Smith's new book is out: <A HREF="http://www.chalcedony.com/javascript/">JavaScript for the World Wide Web: Visual QuickStart Guide, 3rd Edition</A> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from older browsers newCheck(1999,5,4) // End hiding script --> </SCRIPT> <P> <A HREF="http://www.chalcedony.com/java/">Java for the World Wide Web: Visual QuickStart Guide</A> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from older browsers newCheck(1998,9,3) // End hiding script --> </SCRIPT> <P> </H2> </BODY> </HTML>