<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
  <title>ASP.NET AJAX</title>
</head>
<body>
  <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div>
      <asp:Label ID="Label1" runat="server" Text="Patrz jak zanikam..."
        Style="display: inline-block; background-color: Red; position: relative; left: 8px; top: 8px;" />
    </div>
    <ajaxToolkit:AnimationExtender ID="AnimationExtender1" runat="server" 
      TargetControlID="Label1">
      <Animations>
        <OnLoad>
          <Parallel>
            <FadeOut Duration="3" Fps="25" />
            <Condition ConditionScript="(Math.random() &lt; 0.5)">
              <Length StartValue="0" EndValue="250" Unit="px" 
                Property="style" PropertyKey="left" />
              <Length StartValue="0" EndValue="250" Unit="px" 
                Property="style" PropertyKey="top" />
            </Condition>
          </Parallel>
        </OnLoad>
      </Animations>
    </ajaxToolkit:AnimationExtender>
  </form>
</body>
</html>
