CSS的blendtransp 淡入淡出应用代码

<HTML>
  <HEAD>
    <TITLE>淡入淡出</TITLE>
    <SCRIPT>
      <!--
      function fadeOut(obj) 
      {
          obj.style.filter="blendTrans(duration=2)";
          if ((obj.visibility != "hidden") && 
               (obj.filters.blendTrans.status != 2)) 
          {
              obj.filters.blendTrans.Apply();
              obj.style.visibility="hidden";
              obj.filters.blendTrans.Play();
          }
      }
      function fadeIn(obj) 
      {
          obj.style.filter="blendTrans(duration=2)";
          if ((obj.visibility != "visible") && 
               (obj.filters.blendTrans.status != 2)) 
          {
            obj.filters.blendTrans.Apply();
            obj.style.visibility="visible";
            obj.filters.blendTrans.Play();
          }
      }
      -->
    </SCRIPT>
  </HEAD>
  <BODY>
    <IMG id=oImg src="/images/logo.gif"></IMG>
    <P>
    <BUTTON onclick="fadeOut(oImg)">Fade Image Out</BUTTON>
    <BUTTON onclick="fadeIn(oImg)">Fade Image In</BUTTON>
    </P>
    <HR>
  </BODY>
</HTML>

CSS的blendtransp 淡入淡出应用代码,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。