Hello folks,
I made a simple resize-slider script which works like the slider in Google Docs, or the resize sliders in windows.
The code and the demo is attached to the post as a zip file.
Usage:
Prepare your content with divs which has CSS's "float" property set. Then between the divs you want to seperate by the slider, put the following line
HTML Code:
<div class="slider" callbackFunction="aCallbackFunction"> </div>
And call the "initSliders()" function when the page is fully loaded(I suggest using the onload event of the page). That's all! 
Notes:
- callbackFunction is optional, it is called when user completes a slide operation.
- If you define the CSS classes ".slider_hover" and ".slider_active" in your page, and set the "sliderEffects" to true, your sliders will have hover and onclick effects according to those classes.
- This code is not fully commented and tested and it is open to suggestions, comments and improvements.
Bookmarks