harriyott.com

Sliding pane

Today was so much fun. I fiddled around creating a sliding sidebar using JavaScript. It is most satisfying. To the right of the sidebar, a button-so-tall-and-thin-that-it-looks-like-a-slider uses setTimeout() to call a function that decrements the CSS width property of the <div>, which then calls setTimeout() again (and again...), until only the slider is visible. Another does the reverse, until the sidebar is its original width again. And I got it to work in Netscape.
20 December 2004