ajax.net应用
<ajaxToolkit:AnimationExtender ID="AnimationExample2A" runat="server" TargetControlID="Example2A">
<Animations>
<OnLoad>
<OpacityAction Opacity=".2" />
</OnLoad>
<OnHoverOver>
<FadeIn Duration=".25" Fps="20" MinimumOpacity=".2" MaximumOpacity=".8" />
</OnHoverOver>
<OnHoverOut>
<FadeOut Duration=".25" Fps="20" MinimumOpacity=".2" MaximumOpacity=".8" />
</OnHoverOut>
</Animations>
</ajaxToolkit:AnimationExtender>
鼠标移上渐隐<Animations>
<OnLoad>
<OpacityAction Opacity=".2" />
</OnLoad>
<OnHoverOver>
<FadeIn Duration=".25" Fps="20" MinimumOpacity=".2" MaximumOpacity=".8" />
</OnHoverOver>
<OnHoverOut>
<FadeOut Duration=".25" Fps="20" MinimumOpacity=".2" MaximumOpacity=".8" />
</OnHoverOut>
</Animations>
</ajaxToolkit:AnimationExtender>
<ajaxToolkit:AnimationExtender ID="AnimationExample5A" runat="server" TargetControlID="Example5A">
<Animations>
<OnClick>
<Sequence>
<EnableAction Enabled="false" />
<Color AnimationTarget="master_contentplaceholder"
Duration="1"
StartValue="#EFEFEF"
EndValue="#FF0000"
Property="style"
PropertyKey="backgroundColor" />
<Color AnimationTarget="master_contentplaceholder"
Duration="1"
StartValue="#FF0000"
EndValue="#EFEFEF"
Property="style"
PropertyKey="backgroundColor" />
<EnableAction Enabled="true" />
</Sequence>
</OnClick>
</Animations>
</ajaxToolkit:AnimationExtender>
点击变色
<Animations>
<OnClick>
<Sequence>
<EnableAction Enabled="false" />
<Color AnimationTarget="master_contentplaceholder"
Duration="1"
StartValue="#EFEFEF"
EndValue="#FF0000"
Property="style"
PropertyKey="backgroundColor" />
<Color AnimationTarget="master_contentplaceholder"
Duration="1"
StartValue="#FF0000"
EndValue="#EFEFEF"
Property="style"
PropertyKey="backgroundColor" />
<EnableAction Enabled="true" />
</Sequence>
</OnClick>
</Animations>
</ajaxToolkit:AnimationExtender>