关键代码: <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 > 所有代码 <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> 注:不支持fireFox 转载于:https://www.cnblogs.com/wujun/archive/2006/11/01/546863.html