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)" />
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. blur, glow, wave
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.