请教个位高手,如何用javascript语句实现http://www.leafbbs.com/texiao/flash1.html这个页面的flash图片特效,要一样的而不是放在上面变色,移开才变回来

解决方案 »

  1.   

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>新建网页 1</title>
    <script>
    function a(i){
    if(i>0)
    window.setTimeout("b("+i+")",1);
    else
    c(i);
    }
    function b(i){
    document.all.img1.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+i+")";
    a(i-2);
    }
    function c(i){
    if(i<=100)
    window.setTimeout("d("+i+")",1);
    }
    function d(i){
    document.all.img1.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+i+")";
    c(i+2);
    }
    </script>
    </head>
    <body>
    <p>
    <img id=img1 border="0" src="imgsrc" onmouseover="a(100)"></p>
    </body>
    </html>