DHTML : Pages with customised scrollbars
Dr Benton
Drop it!
Now that we have dealt with the activation and moving of the cursor, the next step is to handle the "drop" effect at the same
time as the user releases the mouse button.
We just need to reinitialise the
selectObj variable to indicate that no layer is selected anymore:
115: function release(evt) {
116: if (selectedObj) {
117: setZIndex(selectedObj, 0)
118: selectedObj = null
119: }
120: }
By customising the code, you can create vertical and horizontal scrollbars of any size. Nothing prevents you from also designing
bars and cursors that are more attractive than ours. It is entirely up to you!