Sets or retrieves the distance, in pixels, that a filter effect extends.
dhtml语法
HTML | { filter:progid:dximagetransform.microsoft. filter-name( strength = idistance ... ) ... } |
---|
scripting | object. filters. item( "dximagetransform.microsoft. filter-name"). strength [ = idistance ] |
---|
dhtml可能的值
iDistance | Integer that
specifies or receives the distance, in pixels, that an effect extends. |
The property is read/write.
The property has a default value of
5
for all objects with the
following exceptions:
remarks
the following table defines the limitations on the range of iDistance depending on the filter used.
DHTML代码范例
This example sets the Strength and direction properties of the motionblur filter to an initial strength of 1. when the page loads, the strength and direction properties cause the onfilterchange event to fire repeatedly until the strength reaches 200.
<SCRIPT>
function HandleChange()
{
with (window.event.srcElement.filters[0])
{
if (strength < 200)
{
strength += 1;
direction += 45;
}
}
}</SCRIPT>
<IMG ID="img1" SRC="solarsys.gif" onfilterchange="HandleChange()"
STYLE="filter:progid:DXImageTransform.Microsoft.motionBlur(STRENGTH=1, DIRECTION=0)" />
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.
applies to