I’m trying to make a simple jQuery panel slider and have it basically where I want it minus two features. You can see a version of it at: http://jsfiddle.net/7WArj/
Currently the panel slides down over content and closes when the close button is clicked. The button changes because I want the image that will eventually be the button to point up when open and down when closed.
I would love to add the functionality that when you are no longer hovering over the panel, it times out and slides back up after x seconds.
I would also love to add the functionality that if you click anywhere off the slide-panel it will also trigger the panel sliding up.
I attempted some of this with .toggle() and .bind but was unable to make it work properly. The menu would randomly slide up and down, etc.
If there is a better way to write my code, as well, it would be much appreciated.
I am pretty sure that this is what you want, the code is commented with what I did:
Demo: http://jsfiddle.net/SO_AMK/jhYWk/
jQuery:
CSS:
HTML: Same