SiteExperts.com Logo Home | Community | Developer's Paradise | Jobs
User Groups | Site Tools | Site Information | Search

Inside Technique : Toolbar Scriptlet
By Steve Gore

The toolbar scriptlet makes it easy to add custom toolbars to your web page. Each toolbar item can be either text or an image.

Reference

    <OBJECT
      TYPE="text/x-scriptlet" 
      WIDTH=100%
      DATA="toolbar.htm" 
    </OBJECT>
MethodsAddImg("url","code")Adds an image button to the toolbar. The first argument is an URL to the image, and the second argument is the code to execute when clicked.
AddText("label","code","style")Adds a text button to the toolbar. The label is the displayed text, the code is the code to execute when clicked, and the style is the appearance of the button when the mouse hovers over it.
AddSpace(width)Inserts blank space into the toolbar.
Able(number, gray)Swaps a particular button between disabled and enabled. Disabled buttons do not call the specified code. The first button is at position 0. The gray attribute specifies whether or not to still highlight the button when the mouse moves over it.