<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>无标题文档</title>
<script language="JavaScript1.2">
function Hidecontent(divid) {
divid.filters.revealTrans.apply();
divid.style.visibility = "hidden";
divid.filters.revealTrans.play();
}
</script>
</head><body>
<div id='READ' style='left:320px;top:160px;width:486;position:absolute;filter:revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5);z-index:10;' class=article><table border='1' cellpadding='3' cellspacing='0' width='486' bgcolor=#F4F1D9 bordercolor='#FFFF00'><tr><td bgcolor='#FFFF00'><span style='text-decoration: none' color='#FF0000'>提醒</span> <a href='javascript:void(Hidecontent(READ))'><span style='text-decoration:none;font-weight: bold; title='点击关闭提醒'>关闭提醒</span></a></td></tr><tr><td height='100' valign='middle' align='center'>内容</td></tr></table></div>
</body>
</html>
//上面这段代码ie下正常,firefox浏览器下无效,如何修正?谢谢!

解决方案 »

  1.   

    这种效果还是用Jquery处理吧 那个兼容性也很好
      

  2.   

    FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#dae6f4,endColorStr=#ceddf0);
    background:-moz-linear-gradient(top,#dae6f4,#ceddf0);
    background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#dae6f4), to(#ceddf0));
    火狐 ie都支持这样的
      

  3.   

    谁能帮忙就改动一下这里,就可以关闭层,不要滤镜的:<script language="JavaScript1.2">
    function Hidecontent(divid) {
    divid.filters.revealTrans.apply();
    divid.style.visibility = "hidden";
    divid.filters.revealTrans.play();
    }
    </script>
      

  4.   


    <script language="JavaScript1.2">
    function Hidecontent(divid) {
    //divid.filters.revealTrans.apply();
    divid.style.visibility = "hidden";
    //divid.filters.revealTrans.play();
    }
    </script>
    屏蔽掉