Category Archives: cookies

How To Create a Cookie to Remember Visitors

This script will prompt the user to enter his/her name, and remember and display it whenever the user returns. 1.Login to your dashboard--> layout- ->Page Elements 2.Click on 'Add a Gadget' on the sidebar. 3.Select 'HTML/Javascript' and add the code given below and click save. <script><!-- // Boolean variable specified if alert should be displayed [...]

Posted on June 6th, 2009 File Under : cookies, java script2 Comments

A Cookie to display the number of times Visit-2

This script keeps track of the number of times a surfer has visited your page, and alerts the surfer of this info. 1.Login to your dashboard--> layout- ->Page Elements 2.Click on 'Add a Gadget' on the sidebar. 3.Select 'HTML/Javascript' and add the code given below and click save. <SCRIPT LANGUAGE="JavaScript"> function getCookieVal (offset) {var endstr [...]

Posted on June 6th, 2009 File Under : cookies, java script0 Comment

A Cookie to display the number of times Visit-1

The below script uses cookies to display the number of times a (each) user has visited your page. 1.Login to your dashboard--> layout- ->Page Elements 2.Click on 'Add a Gadget' on the sidebar. 3.Select 'HTML/Javascript' and add the code given below and click save. <SCRIPT>function GetCookie (name) {var arg = name + "=";var alen = [...]

Posted on June 6th, 2009 File Under : cookies, java script0 Comment

How To Create Cookie to Display time of last visit

This script records the date+time of your visitor's last visit and displays it upon their return. If this is their first visit to your site, a greeting message is shown instead. You can customize the messages to display in each case. 1.Login to your dashboard--> layout- ->Page Elements 2.Click on 'Add a Gadget' on the [...]

Posted on June 6th, 2009 File Under : cookies, java script0 Comment