filter - Wheel() (Filter/transition)

Reveals the new image with a rotating spoked wheel effect.

Availability:

JScript - 5.5
Internet Explorer - 5.5
Object properties:Duration, Enabled, Percent, spokes, status
Object methods:apply(), play(), stop()

This transition effect supports the following properties:

The Duration property controls the time it takes to play back the transition effect.

The Enabled property provides a way to activate or inhibit the filter from working by assigning the true or false value to it.

The Percent property controls the point at which the effect can be halted to provide a static effect. The value can be between 0 and 100.

The spokes property indicates how many spokes there are in the cartwheel that is used for the transition effect. The value can range from 2 to 20 with 8 being a typical value.

The status value can be read to determine the current disposition of the transition filter. It will return one of three values. The 0 value indicates the transition has stopped, 1 indicates that it is completed and 2 that it is still in progress.

The following methods are supported by this transition filter:

The apply() method sets the transition effect to its initial condition.

The play() method executes the transition effect using the control values and taking the time specified in the duration value. You can override the duration property by passing an optional duration argument to this method when it is called.

The stop() method can be called at any time during the time the transition is running to halt the transition playback. This will also trigger the execution of an onFilterChange event handler if there is one defined.

This filter is demonstrated in the example.

Example code:

   <HTML>

   <HEAD>

   </HEAD>

   <BODY onLoad="swiitchState()">

   <DIV ID="CONTAINER" STYLE="position:absolute; top: 0; left: 0; width: 300; height:300;  filter:progid:DXImageTransform.Microsoft.Wheel(duration=2, spokes=10) ">

   <DIV ID="DIV1" STYLE="position:absolute; top:50; left:10; width:240; height:180;background:ivory">

   <BR>

   <BR>

   <BR>

   <HR>

   <CENTER>

   This is a DIV block containing text.

   </CENTER>

   <HR>

   </DIV>

   <DIV ID="DIV2" STYLE="visibility:hidden; position:absolute; top:50; left:10; width:240; height:180; background:antiquewhite; ">

   <CENTER>

   <BR>

   <IMG SRC="./Logo150.gif">

   </CENTER>

   </DIV>

   </DIV>

   <SCRIPT>

   DIV1.style.visibility="visible";

   function swiitchState()

   {

      CONTAINER.filters[0].Apply();

      if (DIV1.style.visibility == "visible")

      {

         DIV1.style.visibility="hidden";

         DIV2.style.visibility="visible";

      }

      else

      {

         DIV1.style.visibility="visible";

         DIV2.style.visibility="hidden";

      }

      CONTAINER.filters[0].Play();

      setTimeout("swiitchState()", 5000);

   }

   </SCRIPT>

   </BODY>

   </HTML>

See also:Filter object, style.filter

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
Duration n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
Enabled n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-
Percent n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
spokes n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
status n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-

MethodJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
apply() n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
play() n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-
stop() n/a5.5 5.5 n/a5.5 5.5 n/a n/a n/a n/a n/a n/a-