STRENGTH Attribute | lightStrength Property

DHTML, HTML, & CSS

STRENGTH Attribute | strength Property


Sets or retrieves the intensity of the filter.

Syntax

HTML { filter:filterName (STRENGTH = iIntensity ...) }
Scripting object.filters.filterName.strength [ = iIntensity ]

Possible Values

iIntensity Integer that specifies the intensity of the filter, using values that range from 1 (lowest intensity) to 100 (highest intensity).

The property is read/write with no default value.

Example

This example sets the strength and direction properties of a blur filter, with an initial strength of 1, on an image. When the page loads, the onfilterchange event of the image fires. The strength and direction properties cause the onfilterchange event to fire repeatedly until the strength reaches 100.

<SCRIPT>
function HandleChange()
{
   with (window.event.srcElement.filters[0])
   {
      if (strength < 100)
      {
         strength += 1;
         direction += 45;
      }
   }
}</SCRIPT>
<IMG ID="img1" SRC="joker2.jpg" onfilterchange="HandleChange()"
   STYLE="filter:blur (STRENGTH=1 DIRECTION=0)" />
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
blur, glow, wave

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.