Log in

View Full Version : Hide/show header


Dave Hawley
04-27-2007, 08:39 AM
Hi all

I currently have used "Header on/off" link to give users the ability to hide the header. I used some JavaScript and a Div found via a Google search. That is;

<a style="text-decoration: none" href="javascript:;" onmousedown="if(document.getElementById('tdiv').style.display == 'none'){ document.getElementById('tdiv').style.display = 'block'; }else{ document.getElementById('tdiv').style.display = 'none'; }"><span style="font-size: 6pt">
Header on/off</span></a>
<a name="top"></a></p>

<div id="tdiv" style="width: 938; height: 200">

HEADER STUFF HERE

</div>

It works but ONLY until the user changes page on the forum, then it defaults back to show (on).

What I would like to do is retain the members choice until they either log out or close my forum in their browser.

Is there any hack out there, or anyone willing to share some code?

Dave Hawley
05-02-2007, 07:52 AM
Anyone?

Dave Hawley
05-06-2007, 12:43 AM
Ok, found exactly what I need here (http://www.vbulletin.com/forum/showthread.php?t=168739)