Hi everyone, Recently Caroline was looking for a way of displaying a "note" when a visitor entered her site via a link that may have directed them to a page far removed from a directory index page. The "note" would only be displayed on the initial entry to the site, and any subsequent navigation within the site wouldn't cause the "note" to be displayed again. Essentially, this requires that the user's browser be given a cookie when it first visits the site, while at the same time displaying the "note". The "note" can be closed by the user, and they can then navigate around the site while the cookie prevents the "note" being displayed again. The cookie is a text file, but in our case the cookie itself will be created using Javascript and stored in the browser cache for 30 days, or such other number of days the site owner requires. This same file provides means of dynamically creating the "note", styling and displaying it, complete with a "close" button. Our cookie text file is stored in your freepages community root directory, e.g. freepages.genealogy.rootsweb.ancestry.com/~myaccount/ and is accessible using the same address from anywhere in the ~myaccount genealogy community. Using SSI - (Server Side Includes) is the simplest method of doing this, and the address for the "freepages-cookie.txt" file is as follows:- <!--#include virtual="/~myaccount/freepages-cookie.txt" --> ... which is placed in the <head> section of each of your pages. That is all you have to do, and just changing the text for the note in one file [freepages-cookie.txt] is all that may need to be done in the future. As an example, I've placed a couple of identical html pages in my "misc" root directory at:- http://freepages.rootsweb.ancestry.com/~bristowe/cookie-test.html and http://freepages.rootsweb.ancestry.com/~bristowe/cookie-test-2.html The only differences are in the <title>; Cookie Test, and Cookie Test 2. There is a single style in the head section, but that is just fixing the Rootsweb footer at the bottom of the open window. The head section looks as follows:- <!doctype html> <html> <head> <meta charset="utf-8"> <title>Cookie Test</title> <link rel="stylesheet" href="#"> <!--#include virtual="/~bristowe/freepages-cookie.txt" --> <style> #fp_ftr {position:fixed;bottom:0} </style> </head> ...the same files are also in the /test/ directory - http://freepages.rootsweb.ancestry.com/~bristowe/test/cookie-test.html and http://freepages.rootsweb.ancestry.com/~bristowe/test/cookie-test-2.html For demonstration purposes the first file you access will show the "note" [Hello World!] and a close button, and the page background will be Cyan. Open another tab and paste the same url into it; this time the page will come up with a Magenta background and no "note". Go back to the first page, close the "note" and refresh the page. It will now have a Magenta background. If you download the freepages-cookie.txt file from - http://freepages.rootsweb.ancestry.com/~bristowe/freepages-cookie.txt ... and open it, you'll notice that it is made up of <script> and <styles>. Provided you dont go back to any of these pages until after 30 days has passed, your next visit will show the the "note" once more. Clearing your browser's cache will allow the cookie to reset when you next visit either of the above pages. Barry