问下用JS怎么实现鼠标放在表格上,表格收缩(或膨胀)的效果 <div onmouseover="this.className='ahover'" onmouseout="this.className='list'" class="list" id="subject"></div>利用了onmouseover与onmouseout,鼠标进入与鼠标离开两个事件 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <title>Rank's HTML document</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <meta http-equiv="ImageToolbar" content="no" /> <style type="text/css" title="default" media="screen"> /*<![CDATA[*/ .out { padding:0;background:transparent; } .over { padding:10px;background:#eee; } /*]]>*/ </style> </head> <body id="www.never-online.net"> <table cellpadding="0" cellspacing="0" width="100%" border="1"> <tr> <td>www.never-online.net</td> <td>www.never-online.net</td> </tr> <tr> <td>www.never-online.net</td> <td>www.never-online.net</td> </tr> <tr> <td>www.never-online.net</td> <td>www.never-online.net</td> </tr> </table> <script type="text/javascript">//<![CDATA[ var a = document.getElementsByTagName('tr'); var i=a.length;while (i--) { a[i].onmouseover=function(){this.className='over';} a[i].onmouseout=function(){this.className='out';} } //]]></script> </body></html> 运营商广告劫持 关于DIV显示位置的问题,请大侠们来看看!! 求教 js两个层的切换效果? 这是我一年前写的js菜单demo,对js语法不太熟悉。想封装起来,但不知道怎么弄。而且仅支持IE,谁有兴趣拿去改改吧。:) 请问如何计算表格的高度 图片替换的问题 原来那个网页上面的图像就变了,这个怎么实现? 如何用脚本语言实现右键菜单上的"打印目标"的功能. 菜鸟问题 新手求大神关于three.js光源的问题 如何通过JS批量查找页面内特定的元素? 图片限制最大宽度,未知大小垂直居中
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Rank's HTML document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="ImageToolbar" content="no" />
<style type="text/css" title="default" media="screen">
/*<![CDATA[*/
.out { padding:0;background:transparent; }
.over { padding:10px;background:#eee; }
/*]]>*/
</style>
</head>
<body id="www.never-online.net">
<table cellpadding="0" cellspacing="0" width="100%" border="1">
<tr>
<td>www.never-online.net</td>
<td>www.never-online.net</td>
</tr>
<tr>
<td>www.never-online.net</td>
<td>www.never-online.net</td>
</tr>
<tr>
<td>www.never-online.net</td>
<td>www.never-online.net</td>
</tr>
</table>
<script type="text/javascript">//<![CDATA[
var a = document.getElementsByTagName('tr');
var i=a.length;while (i--) {
a[i].onmouseover=function(){this.className='over';}
a[i].onmouseout=function(){this.className='out';}
}
//]]></script>
</body>
</html>