会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
.net BI
共同學習,共同進步
博客园
首页
新随笔
联系
订阅
管理
[js小技巧]鼠标移到图片高亮度显示--zhuan
所有代码
<
html
>
<
head
>
<
title
>
test page.
</
title
>
<
style
type
="text/css"
>
.ComponentImage
{
}
{
cursor
:
hand
;
filter
:
progid:DXImageTransform.Microsoft.Alpha( Opacity=0, FinishOpacity=75, Style=2, Enabled='false')
;
}
</
style
>
<
script
>
//
鼠标移上来。高亮度显示
function
Highlight(obj)
{
if
(obj.filters.length
>
0
)
{
obj.filters(
0
).enabled
=
'
true
';
}
}
function
UnHighlight(obj)
{
if
(obj.filters.length
>
0
)
{
obj.filters(
0
).enabled
=
'
false
';
}
}
</
script
>
</
head
>
<
body
>
<
img
src
="http://www.blogjava.net/images/logo.gif"
class
="ComponentImage"
onmouseover
="Highlight(this);"
onmouseout
="UnHighlight(this);"
>
<
br
>
<
font
color
=red
>
鼠标移上来看看效果
</
font
>
</
html
>
http://www.cnblogs.com/wujun/archive/2006/11/01/546863.html
posted @
2006-11-02 16:28
Nina
阅读(
883
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
公告