We use cookies to provide you with a better experience. If you continue to use this site, we'll assume you're happy with this. Alternatively, click here to find out how to manage these cookies

hide cookie message
Contact Forum Editor

Send an email to our Forum Editor:


PLEASE NOTE: Your name is used only to let the Forum Editor know who sent the message. Both your name and email address will not be used for any other purpose.

Tech Helproom


It's free to register, to post a question or to start / join a discussion


 

Script for permanently hiding a selected DIV?


crashb648

Likes # 0

Hi there!

Does anyone know of a script or a script that can be modified that can hide and then unhide DIV on the users request, which remembers their action throughout all the pages of a website?

For instance, i would like to hide a particular div (which appears on every page on my website) so when the user hides the div, it stays hidden when browsing the different pages.

If you need some claifying on anything, just let me know :)

  • Crashb648
Like this post
gimme987

Likes # 0

The a tag is styled to look like a button and the onclick event uses our toggleDiv which passes the ‘myContent’ div ID as the argument. The rest of the HTML basically codes for our ‘myContent’ div whose content will be toggled by a click of the a tag.

Facebook business Page

Like this post

Reply to this topic

This thread has been locked.



IDG UK Sites

Windows 10 release date, price, features. The next version of Windows will run on everything:....

IDG UK Sites

An Apple fan's perspective on the Windows 10 launch

IDG UK Sites

Sensor-laden kids' watch with 3G launches in Japan

IDG UK Sites

2014 Retina iMac release date rumours, specs and features: 27in 5K Retina iMac 'launching this mont'......