Animated Button and Preloader controls


© Maxim Karetnikov

Microsoft has made available a number of controls that you can use in your own VBScript HTML pages. Keep in mind that in order for these controls to work, it's up to the client to install them. These controls are freely distributable and can be made available to people interested in seeing and using your implementation of the object on their machines.

Animated Button Control

The Animated Button control takes a small Video for Windows (.AVI) file and allows you to use various combinations or frames for different button states. For example, if a file has 15 frames, the first five frames may be played in the button's default state. The second five frames can be reserved for the Mouseover state and the last five for the Mousedown state. This is a powerful control that offers more control than an animated GIF file. Table 1 lists the properties for the Animated button control.

Table 1. Animated button control properties.
Property Description
progID IEANBTN.OCX
ClassID 0482B100-739C-11CF-A3A9-00A0C9034920
DefaultFrStart Starting frame for default state
DefaultFrEnd Ending frame for default state
DownFrStart Starting frame for mousedown state
DownFrEnd Ending frame for mousedown state
FocusFrStart Starting frame for focus state
FocusFrEnd Ending frame for focus state
MouseoverFrStart Starting frame for mouseover event
MouseoverFrEnd Ending frame for mouseover event
URL Address of the AVI file used

The Animated button control has only one method, AboutBox. This method will call up the About box for the control. This control has five events. Table 2 lists these events, along with a description of each.

Go To Page: 1 2


The copyright of the article Animated Button and Preloader controls in VB Script is owned by . Permission to republish Animated Button and Preloader controls in print or online must be granted by the author in writing.

Post this Article to facebook Add this Article to del.icio.us! Digg this Article furl this Article Add this Article to Reddit Add this Article to Technorati Add this Article to Newsvine Add this Article to Windows Live Add this Article to Yahoo Add this Article to StumbleUpon Add this Article to BlinkLists Add this Article to Spurl Add this Article to Google Add this Article to Ask Add this Article to Squidoo





Table 2. Animated button control events
Event Description
ButtonEvent_Click The user clicks the button.
ButtonEvent_DblClick The user double-clicks the button.