I'm looking for scripts that would close div layer on click (icon) and set cookie, so the next time user visit the page, div layer will be invisible (maybe similar as on cnn page - Set your CNN edition).
Thank you.
I'm looking for scripts that would close div layer on click (icon) and set cookie, so the next time user visit the page, div layer will be invisible (maybe similar as on cnn page - Set your CNN edition).
Thank you.
There are tons of scripts that do that general sort of thing. Use Google to find them. Here on DD (perhaps just a partial listing):
http://www.dynamicdrive.com/dynamici...edcollapse.htm
http://www.dynamicdrive.com/dynamici...tchcontent.htm
http://www.dynamicdrive.com/dynamici...chcontent2.htm
http://www.dynamicdrive.com/dynamici...daccordion.htm
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Download, install, and learn to use FirebugCode:To hide a div just do this: document.getElementById("myDiv").style.display = "none"; To set a cookie do this: document.cookie = "myDiv=True; expires=15/02/2003 00:00:00"; To get the cookie do this: var x = document.cookie; var hideDiv = x.split(";")(0); if(hideDiv == "True") document.getElementById("myDiv").style.display = "none"; else document.getElementById("myDiv").style.display = "block";
Bookmarks