相思资源网 Design By www.200059.com

本文实例讲述了js实现九宫格图片半透明渐显特效的方法。分享给大家供大家参考。具体实现方法如下:

复制代码 代码如下:<html>
<title>九宫格图片半透明渐显效果</title>
<body>
<STYLE type=text/css>.invisible {
 FILTER: alpha(opacity=0)
}
</STYLE>

<SCRIPT language=JavaScript1.2>
<!--
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=0
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
//-->
</SCRIPT>
      <TABLE borderColor=#999999 cellSpacing=8 cellPadding=0 width=302
        border=0><TBODY>
        <TR>
          <TD width=90 background=text1.gif bgColor=#db4d0e
            height=90><A href=""><IMG
            class=invisible onmouseover=high(this) onmouseout=low(this)
            src="/UploadFiles/2021-04-02/m01.jpg">           <TD width=90 background=text2.gif bgColor=#ff9f07><A
            href="/"><IMG
            class=invisible onmouseover=high(this) onmouseout=low(this)
            src="/UploadFiles/2021-04-02/m02.jpg">           <TD width=90 background=text3.gif bgColor=#ff9f07><A
            href=""><IMG class=invisible
            onmouseover=high(this) onmouseout=low(this) src="/images/m03.jpg">             border=0 width=180px height=135px></A></TD></TR>
        <TR>
          <TD background=text4.gif bgColor=#ff9f07><A
            href="/"><IMG
            class=invisible onmouseover=high(this) onmouseout=low(this)
            src="/UploadFiles/2021-04-02/m04.jpg">           <TD background=text5.gif bgColor=#a5d523><A
            href="/"><IMG
            class=invisible onmouseover=high(this) onmouseout=low(this)
            src="/UploadFiles/2021-04-02/m05.jpg">           <TD background=text6.gif bgColor=#c56e19><A
            href="/"><IMG
            class=invisible onmouseover=high(this) onmouseout=low(this)
            src="/UploadFiles/2021-04-02/m06.jpg">         <TR>
          <TD background=text12.gif bgColor=#ff9f07><A
            href="/"><IMG
            class=invisible onmouseover=high(this) onmouseout=low(this)
            src="/UploadFiles/2021-04-02/m07.jpg">           <TD background=text8.gif bgColor=#c56e19><A
            href="/"><IMG
            class=invisible onmouseover=high(this) onmouseout=low(this) src="/UploadFiles/2021-04-02/m08.jpg">             border=0 width=180px height=135px></A></TD>
          <TD background=text7.gif bgColor=#c56e19><A
            href="/"><IMG
            class=invisible onmouseover=high(this) onmouseout=low(this)
            src="/UploadFiles/2021-04-02/m09.jpg"> </body>
</html>

希望本文所述对大家的javascript程序设计有所帮助。

标签:
js,九宫格,图片,半透明,渐显,特效,方法

相思资源网 Design By www.200059.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
相思资源网 Design By www.200059.com

评论“js实现九宫格图片半透明渐显特效的方法”

暂无js实现九宫格图片半透明渐显特效的方法的评论...