|
||
| Inside Technique : WebFX DHTML Demos : Coolbar Toolbar Create html toolbars. This cool bar script supports standard buttons, toggle buttons, and the ability to selectively enable and disable individual buttons. The cool bar uses simple onmouseover/out and some element tree checking. Draggable Coolbar Demonstration requires Internet Explorer 4.0 or later To use you need the coolbuttons.js library. To make a button, add the To group buttons as in the above example, place SPAN tags inside a DIV that has the The drag and drop is added using the genericMove.js function that was discussed earlier in the genericMove article. SampleDemonstration requires Internet Explorer 4.0 or later Enabling and Disabling ButtonsYou can also disable/enable Cool Button 1 above using <script> addToggle(coolButton2); // Create a toggle button. Discussed below disable(coolButton1); // Disable a button </script> Just as easy as you can disable a button, you can reenable the button by calling the enable method. With the following cool bar, you can enable and disable the button above. Demonstration requires Internet Explorer 4.0 or later The disable(id) does not actually happen until the document has finished rendering. The reason for this the processing of the button must
be complete before you can manipulate it. You can still call the
Toggle ButtonsYou can also toggle Cool Button 2 using the function Demonstration requires Internet Explorer 4.0 or later The CoolbarBelow is the HTML used to create the cool bar used by the initial example:
Page 1:WebFX DHTML Demos © 1997-2000 InsideDHTML.com, LLC. All rights reserved. |