test the mouse events

 <html>
<head>
<title>
test the mouse event page
</title>
<script language = "javascript">
<!--
function ShowMouseDown()
{
   alert("the mouse had down");
}

function ShowMouseEnter()
{
   alert("the mouse had entered");
}
function ShowMouseLeave()
{
   alert("the mouse had Left");
}

function ShowMouseMove()
{
   document.getElementById("TdMsg").innerHTML += "..";
}
function ShowMouseOut()
{
   alert("the mouse had out");
}

function ShowMouseUp()
{
   alert("the mouse had up");
}
function ShowMouseWheel()
{
   document.getElementById("TdMsg1").innerHTML += "1 ";
}

-->
</script>
</head>
<body>
<form method = "post" action  = "http://mail.163.com">
<fieldset width = 50%>
<legend>test the mouse events
</legend>
<table border = 1>
<tr>
<td id = "TdMsg">asdf</td>
<td id = "TdMsg1">asdf</td>
</tr>
<tr>
<td style = "Visibility:hidden">
<input type ="radio" name = "color" value = "red"/>red
<input type ="radio" name = "color" value = "blue"/>blue
<input type ="radio" name = "color" value = "green"/>green<br/>
</td>
<td id = "td1" onmousewheel = "ShowMouseWheel()">MouseWheel</td>
</tr>
<tr>
<td id = "td2" onmousedown = "ShowMouseDown()">MouseDown</td>
<td id = "td3" onmouseenter = "ShowMouseEnter()">MouseEnter</td>
</tr>
<tr>
<td id = "td4" onmouseleave = "ShowMouseLeave()">MouseLeave</td>
<td id = "td5" onmousemove = "ShowMouseMove()">MouseMove</td>
</tr>
<tr>
<td id = "td6" onmouseout = "ShowMouseOut()">MouseOut</td>
<td id = "td7" onmouseup = "ShowMouseUp()">mouseUp</td>
</tr>
</table>
</fieldset>
</form>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值