事件触发,求指点 鼠标移动到上面是用onmouseout事件,鼠标移走是用onmousemove事件。怎么才能使鼠标在"网络信任域管理","接入网管理","机构管理","用户管理","设备管理","数字证书管理"上面,还是触发onmouseout事件,鼠标移走和从“可信身份管理”移走一样触发onmousemove事件。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在"网络信任域管理","接入网管理",...的单元上再加onmouseout事件onmousemove事件!如是用div;<div onmouseout="..." onmousemove="...">网络信任域管理</div>如是用table;<td onmouseout="..." onmousemove="...">网络信任域管理</td> 我试了那样不行啊,鼠标移走触发onmouseout事件了,就把"网络信任域管理","接入网管理",...隐藏了,9不能在触发"网络信任域管理","接入网管理",...的onmousemove事件 做了个例子,你拷贝一下试试:<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <script type="text/javascript"> function overEvent() { document.getElementById("div2").style.display="block"; } function outEvent() { document.getElementById("div2").style.display="none"; } function overEvent2() { document.getElementById("div2").style.display = "block"; } function overEvent3(obj) { obj.style.backgroundColor = "#ffff00"; } function outEvent3(obj) { obj.style.backgroundColor = "#ffffff"; } </script></head><body> <form id="form1" runat="server"> <div style="width:150px;"> <div id="div1" style="width:150px;" onmouseover="overEvent()" onmouseout="outEvent()">可信身份管理</div> <div id="div2" style="display:none;" onmouseover="overEvent2()" onmouseout="outEvent()"> <div onmouseover="overEvent3(this)" onmouseout="outEvent3(this)" >网络信任域管理</div> <div onmouseover="overEvent3(this)" onmouseout="outEvent3(this)">接入网管理</div> </div> </div> </form></body></html> 谢谢 刚刚我用的<li><li/> <ul><ul/>怪不得不行 ASP.NET弹出层控件ModalPopupExtender和TreeView的问题 关于if...else if的疑问 C#怎么算100! VS2010谁出现过这种问题?? CollectionBase中的list是一个ArrayList对象吗? DataGridvie实时更新数据库---菜鸟别来! 谁有用微软speech语音开发包开发的程序~~~ C#适合做数据库应用吗?和PB VB旗鼓相当吗? .net 好书下载 C#的Window编程中,如何实现控件位置的拖动? .net用IE6浏览jquery报错,阿晕啊SOS! C#三元运算符的一个有趣的问题
<div onmouseout="..." onmousemove="...">网络信任域管理</div>如是用table;
<td onmouseout="..." onmousemove="...">网络信任域管理</td>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
function overEvent() {
document.getElementById("div2").style.display="block";
}
function outEvent() {
document.getElementById("div2").style.display="none";
}
function overEvent2() {
document.getElementById("div2").style.display = "block";
}
function overEvent3(obj) {
obj.style.backgroundColor = "#ffff00";
}
function outEvent3(obj) {
obj.style.backgroundColor = "#ffffff";
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div style="width:150px;">
<div id="div1" style="width:150px;" onmouseover="overEvent()" onmouseout="outEvent()">可信身份管理</div>
<div id="div2" style="display:none;" onmouseover="overEvent2()" onmouseout="outEvent()">
<div onmouseover="overEvent3(this)" onmouseout="outEvent3(this)" >网络信任域管理</div>
<div onmouseover="overEvent3(this)" onmouseout="outEvent3(this)">接入网管理</div>
</div>
</div>
</form>
</body>
</html>