鼠标经过背景变色

方法一:

以下为引用的内容:

<div onmouseover="this.style.backgroundColor='#F4F9FD'"

onmouseout="this.style.backgroundColor='#FFFFFF'"></div>

方法二:

以下为引用的内容:

<style>
.d_over{background-color:#307172;}
.d_out{background-color:#EFEFEF;}
</style>

<div class="d_out" onmouseover="this.className='d_over'" onmouseout="this.className='d_out'">哈哈哈哈哈</div>

posted @ 2011-05-07 08:52  xgcdd  阅读(1015)  评论(0编辑  收藏  举报