了解了!
谢谢各位!
以下是实现功能的具体代码:
<%@ Page language="c#" Codebehind="1.aspx.cs" AutoEventWireup="false" Inherits="CalendarTest._1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>shiyan</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:TextBox id="TextBox1" onFocus="show()" onBlur="asd()" style="Z-INDEX: 101; LEFT: 272px; POSITION: absolute; TOP: 120px"
runat="server"></asp:TextBox>
<asp:Button id="Button1" runat="server"
Text="Button" style="visibility:hidden"></asp:Button>
</form>
</body>
<script language="javascript">
function show()
{
document.getElementById("Button1").style.visibility="visible";
}
function asd()
{
document.getElementById("Button1").style.visibility= "hidden";
}
</script>
</HTML>
笨人多福