Web Design Help
It's free to register, to post a question or to start / join a discussion
Script for permanently hiding a selected DIV?
Likes # 0
Posted November 22, 2011 at 2:35PM
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
- Tags:
- hide
- div
- javascript
Likes # 0
Posted February 11, 2012 at 8:55PM
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.
Reply to this topic
This thread has been locked.
Check out PC Advisor's other tech forums
Top 5 Most Popular
-
New Xbox One release date, specs, features and price in UK
-
Samsung Galaxy S4 vs Apple iPhone 5 comparison review
-
Galaxy S4 vs BlackBerry Z10 comparison review - which is best, the Samsung or the BlackBerry?
-
Best cases and covers for the new iPad: protect your tablet in style
-
What’s the best mobile OS: iOS, Android, Windows Phone 8 or BlackBerry 10?



