The panel design has been redesigned to make it more fashionable.
The panel covers the content, instead of moving it.
The images are transparent ... and work in IE6! (Thanks 24Ways for IE PNG Fix ). This means that you can change the background color of the document as you like, or you can even use a background image.
The login button, which lowers the panel down, now changes the title from “Login | Registration "on" Close Panel "; I also added some useful rollovers: Enter button when the panel is in the closed state: Enter button when the panel is open:
The switching effect (.toggle () in JavaScript code) behaves differently in jQuery than in Mootools, and makes it very simple when you switch between the entry and exit buttons when pressed. Here is how I prepared it:
< li id ="toggle" > < a id ="open" class ="open" href ="#" > Log In | Register </ a > < a id ="close" style ="display: none;" class ="close" href ="#" > Close Panel </ a > </ li >
* This source code was highlighted with Source Code Highlighter .
... and JavaScript to expand and collapse the panel at the same time as switching the input button to the close button:
The rollover effect for the login button does not work in IE6 due to the use of the 24Ways script. Considering that when using this script in this browser translucency normally works, I think that we can ignore this minor error.
Loading
Please note that the login and registration forms in this demo will not work out of the box without a user authentication system pre-installed on your website!
Download (55.5 KiB) Sliding panel works great in IE6, IE7, Firefox, Safari, Opera and Chrome. I have not tested it in IE8. Let me know if everything works there.