62,046
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %>
<!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>
<script type="text/javascript">
function over(obj)
{
var s=obj.id;
document.getElementById("panel"+s).style.display="block";
}
function out(obj)
{
var s=obj.id;
document.getElementById("panel"+s).style.display="none";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<input type="button" id="1" value="Button1" onmouseover="over(this);"
onmouseout="out(this);" />
<input type="button" id="2" value="Button2" onmouseover="over(this);"
onmouseout="out(this);" />
<br />
<br />
<br />
<asp:Panel ID="panel1" runat="server" >
panel1
</asp:Panel>
<br />
<br />
<asp:Panel ID="panel2" runat="server" style="display:none ">
panel2
</asp:Panel>
<br />
</form>
</body>
</html>