<%@ 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-weight: bold;
            color: #008080;
            font-family: 华文琥珀;
        }
    </style>
    
<script language=javascript>
function deal()
{
var someValue;
someValue = window.showModalDialog('Myimage.aspx','','Width=400;Height=200;status=no;help=no;scrollbars=no');
if(someValue==undefined)
{
someValue="1";
}
document.images.img.src="Images/Image"+(parseInt(someValue)+1)+".gif";
}
</script> 
    
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table align="center" style="width: 420px;">
            <tr>
                <td align="center"  colspan = "2">
                    <span class="style1">动态选择会员图像</span><br class="style1" />
                    <br />
                </td>
            </tr>
            <tr>
                <td align="right"  >
                    会员图像：</td>
                <td align="center" >
                    <img src="Images/Image1.gif" name="img" style="height: 67px; width: 66px"/>
                    <br />
                    <br />
                    <a href="#" onclick="deal()"> 选择会员图像 </a> </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
