|
Mouse Wheel Scrolling
If your ShowScollers parameter is set to 'yes', SuperTree displays scroll buttons allowing the user to scroll up and down in the tree. SuperTree also supports the use of the mouse-wheel (for Internet Explorer 6 users only) for scrolling. To enable this feature, a small amount of script and HTML must be added to your web page.First, add the script below. You can place this anywhere in the page - head or body.
<script language="JavaScript"> <!-- function onWheel() { if (document.SuperTree) document.SuperTree.SetVariable("wheel",event.wheelDelta); } // --> </script> If you changed the ID and Name of the applet in your HTML code, replace SuperTree in the code above with the ID/Name you chose. Next, find the <object> tag for SuperTree in your web page (where the applet's width, height and ID are set). Before the closing > symbol of that tag, add a space and the following:
onmousewheel="onWheel();return false"
That's it! Internet Explorer 6 users can now use the mouse wheel as an alternative to the scroll buttons. (This won't work in other browsers, but it won't cause errors in the browser or the applet.)
|