天下無雙
阿龍 --质量是流程决定的。

如何在.net c#代码 增加按钮的onmouseover鼠标移动上去的事件?

vs2005 c#代码 中按钮只有Click事件,如何实现按钮的onmouseover鼠标移动上去的事件,比如鼠标移动到按钮上,另一textbox1控件就等于“abc"。

================================================================

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script language="javascript">
function show()
{
document.all.TextBox1.value="abc";
}
function hide()
{
document.all.TextBox1.value="";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
文本1<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" onmouseover="show()" onmouseout="hide()" /></div>
</form>
</body>
</html>

 

posted on 2008-11-05 17:27  阿龍  阅读(1571)  评论(2编辑  收藏  举报