No replies
Aberdeen, Scotland
Last seen: 13 years 4 weeks ago
Aberdeen, Scotland
Joined: 2009-05-03
Posts: 1
Points: 0

Hey all

I'm new here so apologies if I do something wrong :scared:.
I have a div section on my site, which is still in development, and I would like the option for a small link in it to say 'hide'. It would hide the div section and somewhere else on the page there would be a link saying 'show'.

If a user clicks hide, the div section would disappear, and a cookie would be stored, remembering to hide the div section if the user visited the site again. I would like the cookie to last for a month, but I am aware of how to change that :thumbsup: .

Then the show link would appear elsewhere and it would delete the cookie from the browser, so the div section would be shown each time after that.

Can you please explain to me how to do it, and provide me with some code if possible Wink ? Also, can you tell me what sort of brackets to use to open/close the text?

I'm sure this sort of thing has been done before but please help Laughing out loud

Thanks in advance

Kenneth Watt }:)