PDA

View Full Version : Removable one-time message/div?



jammnrose
09 Dec 2007, 10:30 PM
I was wondering how you would go about making a message that would be loaded on a page, but if the user clicked a small button to remove it, it would not come back. ie, like an new-news message that would load site wide, until the user dismissed it.

alvo
10 Dec 2007, 12:30 AM
Javascript to turn it on or off and a cookie set if they turn it off that the script looks for when the page loads. No cookie, show the code; cookie, hide the code.