导航
用户登录
最新blog文章
搜索
在线用户
目前共有 0 位用户和 0 位游客在线。
ie prototype table hover
prototype table hover ie 解决方案
样式表
table.hover tr:hover, table.hover tr.hover
{
background-color:#ffffcc;
}
prototype
$$('table.hover tr').each( function(e) {
e.onmouseover += function() {
Element.addClassName(e, 'hover');
};
e.onmouseout += function() {
Element.removeClassName(e, 'hover');
}
});
加入 !window.XMLHttpRequest 只对ie6以前版本
# if (!window.XMLHttpRequest)
# {
...
}
如果已经有了 onmouseover 事件,则需要 observe 方法
1. if (!window.XMLHttpRequest)
2. {
- guoshuang 的blog
- 要发表评论,请先登录 或 注册
- 阅读全文
最新评论
10 周 2 天 前
10 周 2 天 前
10 周 2 天 前
11 周 5 天 前
16 周 21 小时 前
16 周 1 天 前
20 周 5 天 前
20 周 5 天 前
23 周 2 天 前
23 周 3 天 前