rpanning
07-18-2003, 05:31 PM
I havn't much time to reseach if someone else has this out some where but here it goes.
I'm trying to make a layout where the user can hide / show the navigation. It's a table with three columns; nav, hide/show bar, content. When a user clicks on the middle td, hide/show bar, it will do just that to the nav td. I've gotten it to work with buttons. Take a look here, http://stma.mtb-zone.net/toggleNav.htm Click on the little arrow next to 'content'. You'll notice that the nav is gone an another arrow pointing the other way is displayed to 'unhide' the nav. Basicly all I want to do is make it so you can click on the whole td to show/hid the nav. I can't to it with the way I have it. I've found something similar to what I want here, http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20381554.html Look at the Accepted Answer. It's just a function that checks to see what state the nav is in but I can't get it to work the way I want. Anyway, if anyone knows how I could do this that would be great.
Sorry it got so long and if someone already answered this, I don't know much about JavaScript and havn't had time to research it in detail.
Ryan
I'm trying to make a layout where the user can hide / show the navigation. It's a table with three columns; nav, hide/show bar, content. When a user clicks on the middle td, hide/show bar, it will do just that to the nav td. I've gotten it to work with buttons. Take a look here, http://stma.mtb-zone.net/toggleNav.htm Click on the little arrow next to 'content'. You'll notice that the nav is gone an another arrow pointing the other way is displayed to 'unhide' the nav. Basicly all I want to do is make it so you can click on the whole td to show/hid the nav. I can't to it with the way I have it. I've found something similar to what I want here, http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20381554.html Look at the Accepted Answer. It's just a function that checks to see what state the nav is in but I can't get it to work the way I want. Anyway, if anyone knows how I could do this that would be great.
Sorry it got so long and if someone already answered this, I don't know much about JavaScript and havn't had time to research it in detail.
Ryan