PDA

View Full Version : Floating top bar script - set cookie per page



clivewalker
10-22-2007, 08:11 PM
1) Script Title: Floating Top Bar Script

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex17/floatbar.htm

3) I am using the script on several website pages. Is it possible to set the cookie on a per page basis. I would want the user to be able to close the floating top bar on the first page, the top bar will still appear with different content on the second page, but when the user returns to the first page, the page 'remembers' that the user closed it and does not show it again. This action would happen on any page where the user closes the top bar

Basically, I guess I want each page to set a cookie and behave independently of the cookies on other pages.

As an alternative, can the top bar be set so that it appears once only per page per browser session (regardless of user action) - but each page still acts independently of the other pages where the script is used?