Hi,
We can simulate click event to trigger the AnimationExtender using setTimeout.
For instance:
<%@ 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 runat="server">
<title>Untitled Page</title>
</head>
<script type="text/javascript">
function pageLoad()
{
$get('MyPanel').click();
var t=setTimeout("ShowAnimation()",5000);
}
function ShowAnimation()
{
$get('MyPanel').click();
var t=setTimeout("ShowAnimation()",5000);
}
</script>
<body>
<form id="form1" runat="server">
<div>
<asp:scriptmanager ID="ScriptManager1" runat="server">
</asp:scriptmanager>
<ajaxToolkit:AnimationExtender ID="AnimationExtender1" runat="server" TargetControlID="MyPanel">
<Animations>
<OnClick>
<sequence>
<Scale ScaleFactor="1.5" Unit="px" Center="true"
ScaleFont="true" FontUnit="pt" Duration="1.5" Fps="30" />
<parallel>
<Scale ScaleFactor=".5" Unit="px" Center="true"
ScaleFont="true" FontUnit="pt" Duration="1.5" Fps="30" />
</parallel>
</sequence>
</OnClick>
</Animations>
</ajaxToolkit:AnimationExtender>
<asp:panel ID="MyPanel" runat="server" Height="50px" Style="position: static" Width="125px">
teste</asp:panel>
</div>
</form>
</body>
</html>
I look forward to hearing from you.