HOME       >>       Programming

Help With Retractale Sidebar


kobra500

Hey, I want to create a retractable sidebar whose default position is in with just a button poking out the screen. When opened I want it to go on top of other div layers. I also want it to stay opened or closed depending on wether it was open or closed on the previous page.I have no idea what to do, I assume JS so maybe this post should be there but I dont think java should be with JS.Thx to anyone who helps


Live-Dimension

It's not that hard. You make the panel, when the page loads, it puts the panel to the right off-screen (This means that anyone without javascript should be able to use the panel). You then click the button, and javascript simply moves the panel's X in enough for it to display. Press the button again, it goes off the screen.

I also want it to stay opened or closed depending on wether it was open or closed on the previous page.

This is the tricky part. You could use GET/POST, maybe a cookie?
I can't help you with the code sorry - but there's the theory work done

mikeyboy63

Sorry I don't have the answer exactly, but I know there are several Javascripts available for free at dynamicdrive.com that'll get you going in the right direction, at least. I'm sure I've seen scripts for the retractable sidebar there.



VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.