js鼠标悬停

<html>
<body text="#ffffff">
<!-----------控制层显示的js代码(这种是最简单的了)---------->
<script language=javascript>
ie4=(document.all)?true:false;
ns4=(document.layers)?true:false;
function toExit(){
var args=toExit.arguments;
var visible=args[0];
if(ns4){
theObj=eval("document.layers[\'"+args[1]+"\']");
if(theObj)theObj.visibility=visible;
}
else if(ie4){
if(visible=='show')visible='visible';
if(visible=='hide')visible='hidden';
theObj=eval("document.all[\'"+args[1]+"\']");
if(theObj)theObj.style.visibility=visible;
}
}
</script>
<!--------------------------------这是显示内容层------->
<!甲的资料层>
<div id=boysoft
style="HEIGHT: 128px; LEFT: 120px; POSITION: absolute; TOP: 20px; VISIBILITY: hidden; WIDTH: 83px; Z-INDEX: 1; background-

color: #666666; layer-background-color: #666666; border: 1px none #000000">
<table border="0" width="639" height="128">
<tr>
<td height="22"><font color="#9999FF">姓名:王小丫</font></td>
</tr>
<tr>
<td height="22"><b>年龄:18</b></td>
</tr>
<tr>
<td height="28"><i><font color="#CCCCCC">个人简介:略...</font></i></td>
</tr>
<tr>
<td><font color="#99CCFF">其它:无</font></td>
</tr>
</table>
</div>

<!乙的资料层>
<div id=xiaowang
style="HEIGHT: 128px; LEFT: 122px; POSITION: absolute; TOP: 68px; VISIBILITY: hidden; WIDTH: 83px; Z-INDEX: 1; background-

color: #333333; layer-background-color: #333333; border: 1px none #000000">
<table border="0" width="639" height="128">
<tr>
<td height="22"><font color="#9999FF">姓名:黄小贱</font></td>
</tr>
<tr>
<td height="22"><b>年龄:20</b></td>
</tr>
<tr>
<td height="28"><i><font color="#CCCCCC">个人简介:略...</font></i></td>
</tr>
<tr>
<td><font color="#99CCFF">其它:无</font></td>
</tr>
</table>
</div>
<!----------------------主连接部分----------------->
<!甲的连接>
<a href="#" onMouseOver="javascript:toExit('show','boysoft')" onMouseOut="javascript:toExit('hide','boysoft')"><font

color="#0000FF">[甲]</font></a>
<p>
<p>
<!乙的连接>
<a href="#" onMouseOver="javascript:toExit('show','xiaowang')" onMouseOut="javascript:toExit('hide','xiaowang')"><font

color="#0000FF">[乙]</font></a>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值