会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
锐's 天空
本博客作为平常技术资料收集之用。。。。。。。
博客园
首页
新随笔
联系
订阅
管理
CSS样式里使用JavaScript(onmouseover/onmouseout)
<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
>
<
HTML
>
<
HEAD
>
<
TITLE
>
CSS样式里使用JavaScript(onmouseover/onmouseout)2
</
TITLE
>
<
META
NAME
="Generator"
CONTENT
="EditPlus"
>
<
META
NAME
="Author"
CONTENT
=""
>
<
META
NAME
="Keywords"
CONTENT
=""
>
<
META
NAME
="Description"
CONTENT
=""
>
<
style
type
="text/css"
>
table
{
}
{
background-color
:
#000000
;
cursor
:
hand
;
}
td
{
}
{
/**/
/*
设置onmouseover事件
*/
onmouseover
:
expression(onmouseover=function (){this.style.borderColor ='blue'
;
this.style.color='red';this.style.backgroundColor ='yellow'
}
);
/**/
/*
设置onmouseout事件
*/
onmouseout: expression(onmouseout=function ()
{
}
{
this.style.borderColor='';this.style.color='';this.style.backgroundColor =''
}
);
background-color:#ffffff;
}
</
style
>
</
HEAD
>
<
BODY
>
<
TABLE
cellspacing
='1px'
border
='1'
>
<
TR
>
<
TD
>
1
</
TD
>
<
TD
>
2
</
TD
>
<
TD
>
3
</
TD
>
</
TR
>
<
TR
>
<
TD
>
4
</
TD
>
<
TD
>
5
</
TD
>
<
TD
>
6
</
TD
>
</
TR
>
</
TABLE
>
</
BODY
>
</
HTML
>
posted @
2006-10-07 16:08
锐
阅读(
3788
) 评论(
1
)
编辑
收藏
举报
刷新页面
返回顶部
公告