用flash,如果直接用图片需要切割不规则图形,难度较大。

解决方案 »

  1.   

    很简单,无非在鼠标移上去的时候,把img border=1,鼠标移出的时候,border=0;
    分别在在onmouseover onmouseout离调用
      

  2.   

    <style>
    #idDiv{width:80%;height:80px;background-color:#FFD700;padding:6px;position:absolute;z-index:3;left:9px;top:90px;filter:progid:DXImageTransform.Microsoft.Light();}
    </style><script>
    function rdl_change(m){
    var oDiv=document.all("idDiv");
    with (oDiv.filters[0]) switch(m) {
    case 1 : addCone(0,0,1,80,80,255,0,0,20,180);break;
    case 0 : addAmbient(90,140,210,60);break;
    case 2 : addPoint (200,60,20,240,80,0,40);break;
    case 3 : clear();break;
    default: break;
    }
    }
    </script>
    <input type=button value="增加环境光" onclick="rdl_change(0)" id=button1 name=button1>
    <input type=button value="添加锥形光" onclick="rdl_change(1)" id=button2 name=button2>
    <input type=button value="添加点光" onclick="rdl_change(2)" id=button3 name=button3>
    <input type=button value="全部清除" onclick="rdl_change(3)" id=button4 name=button4>
    <br>
    <div id=idDiv><img src="http://www.cjol.com/prize/images/resumecampaign_r2_c2.gif" style="float:left;border:1px solid #000000;">请点击下面的按钮。</div><br>Light兼容性:IE4.0+
    语法:
    filter : progid:DXImageTransform.Microsoft.Light ( enabled=bEnabled ) 
    属性:
    enabled  : 可选项。布尔值(Boolean)。设置或检索滤镜是否激活。true | false true  : 默认值。滤镜激活。 
    false  : 滤镜被禁止。 
     特性:
    Enabled  : 可读写。布尔值(Boolean)。参阅 enabled 属性。 方法:
    addAmbient (iRed,iGreen,iBlue,iStrength) : 为滤镜添加环境光。环境光是无方向的,并且均匀的洒在页面的表面。环境光有颜色和强度值,可以为对象田家更多的颜色。它通常和其他光一起使用。无返回值。参数见下表。
    iRed  : 必选项。整数值(Integer)。 指定红色值。取值范围为 0 - 255 。 
    iGreen  : 必选项。整数值(Integer)。 指定绿色值。取值范围为 0 - 255 。 
    iBlue  : 必选项。整数值(Integer)。 指定蓝色值。取值范围为 0 - 255 。 
    iStrength  : 必选项。整数值(Integer)。 指定光强度。取值范围为 0 - 100 。 
     
    addCone (iX1,iY1,iZ1,iX2,iY,iRed,iGreen,iBlue,iStrength,iSpread)  : 为滤镜添加锥形光以向对象的表面投射有方向的光束。光束会随延伸的距离而逐渐减弱。无返回值。参数见下表。
    iX1  : 必选项。整数值(Integer)。指定光源的左坐标值。 
    iY1  : 必选项。整数值(Integer)。指定光源的上坐标值。 
    iZ1  : 必选项。整数值(Integer)。指定光源的Z坐标值。 
    iX2  : 必选项。整数值(Integer)。指定光焦点的左坐标值。 
    iY2  : 必选项。整数值(Integer)。指定光焦点的上坐标值。 
    iRed  : 必选项。整数值(Integer)。指定红色值。取值范围为 0 - 255 。 
    iGreen  : 必选项。整数值(Integer)。指定绿色值。取值范围为 0 - 255 。 
    iBlue  : 必选项。整数值(Integer)。指定蓝色值。取值范围为 0 - 255 。 
    iStrength  : 必选项。整数值(Integer)。指定光强度。取值范围为 0 - 100 。 
    iSpread  : 必选项。整数值(Integer)。指定光源的虚拟位置与对象的表面之间的角度或张度。取值范围为 0 - 90 。 
     
    addPoint (iX,iY,iZ,iRed,iGreen,iBlue,iStrength)  : 为滤镜添加点光。无返回值。参数见下表。
    iX  : 必选项。整数值(Integer)。指定光源的左坐标值。 
    iY  : 必选项。整数值(Integer)。指定光源的上坐标值。 
    iZ  : 必选项。整数值(Integer)。指定光源的Z坐标值。 
    iRed  : 必选项。整数值(Integer)。指定红色值。取值范围为 0 - 255 。 
    iGreen  : 必选项。整数值(Integer)。指定绿色值。取值范围为 0 - 255 。 
    iBlue  : 必选项。整数值(Integer)。指定蓝色值。取值范围为 0 - 255 。 
    iStrength  : 必选项。整数值(Integer)。指定光强度。取值范围为 0 - 100 。 
     
    changeColor (iLightNumber,iRed,iGreen,iBlue,fAbsolute)  : 改变光的颜色。无返回值。参数见下表。
    iLightNumber  : 必选项。整数值(Integer)。 指定光的标识符。 
    iRed  : 必选项。整数值(Integer)。指定红色值。取值范围为 0 - 255 。 
    iGreen  : 必选项。整数值(Integer)。指定绿色值。取值范围为 0 - 255 。 
    iBlue  : 必选项。整数值(Integer)。指定蓝色值。取值范围为 0 - 255 。 
    fAbsolute  : 必选项。布尔值(Boolean)。指定改变是替换当前设置的绝对值,还是加到当前设置的相对值。此参数不等于零表示采用绝对值。否则表示采用相对值。 
     
    changeStrength (iLightNumber,iStrength,fAbsolute)  : 改变光的强度。无返回值。参数见下表。
    iLightNumber  : 必选项。整数值(Integer)。 指定光的标识符。 
    iStrength  : 必选项。整数值(Integer)。指定光强度。取值范围为 0 - 100 。 
    fAbsolute  : 必选项。布尔值(Boolean)。指定改变是替换当前设置的绝对值,还是加到当前设置的相对值。此参数不等于零表示采用绝对值。否则表示采用相对值。 
     
    clear ()  : 清除所有与当前滤镜关联的光。无返回值。  
    moveLight (iLightNumber,iX,iY,iZ,fAbsolute)  : 移动锥形光的焦点或点光的原点。对于锥形光来说,此方法改变 x,y 目标坐标值;对于点光来说,此方法改变 x,y,z 源坐标值。 此方法不作用于环境光。
    无返回值。参数见下表。
    iLightNumber  : 必选项。整数值(Integer)。 指定光的标识符。 
    iX  : 必选项。整数值(Integer)。指定光源的左坐标值。 
    iY  : 必选项。整数值(Integer)。指定光源的上坐标值。 
    iZ  : 必选项。整数值(Integer)。指定光源的Z坐标值。 
    fAbsolute  : 必选项。布尔值(Boolean)。指定改变是替换当前设置的绝对值,还是加到当前设置的相对值。此参数等于 true 表示采用绝对值。等于 false 表示采用相对值。 
     说明:
    为对象的内容建立光照效果。
    你可以控制光源的虚拟位置,还可以控制光焦点的横纵坐标值。以及光的类型和强度。每个滤镜最多可以添加 10 束光。要想在页面上添加更多的光,你必须使用多个滤镜。
    当每束光被建立后,都有默认的环境光与之关联。你添加到对象的第一束光会替换掉它的默认的环境光。 
    示例:
    .aFilter { background-color: #FFFFFF; filter:light();color: cyan;width: 150;} 
      

  3.   

    用滤镜应该可以解决
    上面的有添加点光
    应该可以实现你的功能
    你先看看前面我的代码,
    然后根据后面的那些参数,进行调整吧,它可以定位一个具体的X,Y,Z指定的点上,
    再去指定这个点的RGB值