只需一步,快速开始
[loop] <a href="{url}" title="{title}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" alt="{title}" style="filter:alpha(opacity=100)" onMouseOver="makevisible(this,0)" onMouseOut="makevisible(this,1)"/>{title}</a> <SCRIPT language="JavaScript"> <!-- function makevisible(cur,which){ if (which==0) cur.filters.alpha.opacity=70 else cur.filters.alpha.opacity=100 } //--> </SCRIPT> [/loop]复制代码效果如图: ___________________ 源代码: <html> <head> <title>感应鼠标图片透明度变化</title> <SCRIPT language="JavaScript"> <!-- function makevisible(cur,which){ if (which==0) cur.filters.alpha.opacity=100 else cur.filters.alpha.opacity=20 } //--> </SCRIPT> </head> <body> 将鼠标放在图片上看看效果!<br> <img src="/images/skinslogo.gif" style="filter:alpha(opacity=20)"> </body> </html>
您需要 登录 才可以下载或查看,没有账号?立即注册
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2024-11-16 21:21 , Processed in 0.036260 second(s), 4 queries , Gzip On, Redis On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.