<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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>随机显示图像动画效果</title>
    <style type="text/css">
        .style1
        {
            font-size: xx-large;
            font-family: 华文行楷;
            font-weight: bold;
            color: #0000FF;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table align="center" style="width: 480px;">
            <tr>
                <td align="center" class="style1">
                    随机显示图像动画效果</td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="随机图像动画" />
&nbsp;&nbsp;
                    <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="停止图像动画" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Image ID="Image1" runat="server" Height="207px" ImageUrl="~/1.gif" 
                        Width="243px" />
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <asp:Timer ID="Timer1" runat="server" Enabled="False" Interval="1000" 
                        ontick="Timer1_Tick">
                    </asp:Timer>
                </td>
            </tr>
        </table>

    
    </div>
    </form>
</body>
</html>
