[js小技巧]鼠标移到图片高亮度显示

关键代码:
    <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>


所有代码

注:不支持fireFox

posted on 2006-11-01 15:41  hello csharp  阅读(1608)  评论(4编辑  收藏  举报

导航