Use this cookie to show your visitors what's new on your Web site since their last visit.It is very basic line of code written in java script . If you have basic knowledge of java script so you can do it easily . Click here to Download Demo .
Code:
- <html>
- <head>
- <script language="javascript">
- expireDate.setMonth(expireDate.getMonth()+6)
- document.cookie = "pageVisit="+now+";expires=" + expireDate.toGMTString()
- function cookieVal(cookieName) {
- for (i=0; i<thisCookie.length; i++) {
- }
- }
- return "1 January 1970"
- }
- function newCheck(yyy,mm,dd) {
- if (lastChgd.getTime() > lastVisit.getTime()) {
- document.write("<img src=http://2.bp.blogspot.com/-BH7YBcRMuWI/TkgXEI71ZfI/AAAAAAAAAFI/_I2y83xRNBI/s1600/new.gif' alt='new'>")
- }
- }
- </script>
- </head>
- <body>
- <script type="text/javascript" language="JavaScript"> newCheck(2005,2,11)</script>
- Be sure to check out our new scripts!
- <br>
- <script type="text/javascript" language="JavaScript"> newCheck(2005,2,3)</script>
- Have you seen our Tutorials?
- </html>
No comments:
Post a Comment