ASP中mouseover用法

来源:百度知道 编辑:UC知道 时间:2024/06/09 13:06:09
ASP制作网页的过程中。。。

我用mic visio做了一个组织结构图。

在副经理那一栏想实现这样一个功能:

当鼠标放在副经理上面的时候,在他下边显示另一个框架图【分三支如:生产副经理,财务副经理,合同副经理】
当鼠标离开上面的时候该框架消失。
能否说的清楚一点啊。。。
多谢。
<body>
<center>
<p> </p>
<p><font size="+3"; color="#000066">结构图</font></p>
<hr>
</center>
<table width="91%" border="0">
<tr>
<td width="12%" height="216"> </td>
<td width="87%"><img src="zzjg1.gif" width="630" height="330" border="0" usemap="#Map"></td>
<td width="1%"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
&

我按你的要求简单做了个
<script>
function a(x){
if(x=="tab1"){
document.all.div1.style.display="block";
}
}
function b(){
document.all.div1.style.display="none";
}
</script>
<table width="120" height="32" border="0" align="center" onmouseover="a(this.name);" onmouseout="b()" id="tab1" name="tab1">
<tr>
<td align="center" bgcolor="#CCFFCC" onmouseover="if(true) this.style.cursor='hand';" ><strong>副经理</strong></td>
</tr>
</table>
<table width="289" height="36" border="0" align="center" id="div1" style="display:none" name="div1">
<tr>
<td width="92" align="center" bgcolor="