js实现九宫格图片半透明渐显特效的方法
作者:bea
本文实例讲述了js实现九宫格图片半透明渐显特效的方法。分享给大家供大家参考。具体实现方法如下: 代码如下: <html> <title>九宫格图片半透明渐显效果</title> <body> <STYLE type=text/css>.invisible { FILTER: alpha(opacity=0) } </STYLE> <SCRIPT language=JavaScri
本文实例讲述了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="/images/m01.jpg" border=0 width=180px height=135px></A></TD> <TD width=90 background=text2.gif bgColor=#ff9f07><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/m02.jpg" border=0 width=180px height=135px></A></TD> <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="/images/m04.jpg" border=0 width=180px height=135px></A></TD> <TD background=text5.gif bgColor=#a5d523><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/m05.jpg" border=0 width=180px height=135px></A></TD> <TD background=text6.gif bgColor=#c56e19><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/m06.jpg" border=0 width=180px height=135px></A></TD></TR> <TR> <TD background=text12.gif bgColor=#ff9f07><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/m07.jpg" border=0 width=180px height=135px></A></TD> <TD background=text8.gif bgColor=#c56e19><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/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="/images/m09.jpg" border=0 width=180px height=135px></A></TD></TR></TBODY></TABLE> </body> </html>
希望本文所述对大家的javascript程序设计有所帮助。
有用 | 无用
代码如下:
<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="/images/m01.jpg" border=0 width=180px height=135px></A></TD> <TD width=90 background=text2.gif bgColor=#ff9f07><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/m02.jpg" border=0 width=180px height=135px></A></TD> <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="/images/m04.jpg" border=0 width=180px height=135px></A></TD> <TD background=text5.gif bgColor=#a5d523><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/m05.jpg" border=0 width=180px height=135px></A></TD> <TD background=text6.gif bgColor=#c56e19><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/m06.jpg" border=0 width=180px height=135px></A></TD></TR> <TR> <TD background=text12.gif bgColor=#ff9f07><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/m07.jpg" border=0 width=180px height=135px></A></TD> <TD background=text8.gif bgColor=#c56e19><A href="/"><IMG class=invisible onmouseover=high(this) onmouseout=low(this) src="/images/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="/images/m09.jpg" border=0 width=180px height=135px></A></TD></TR></TBODY></TABLE> </body> </html>
希望本文所述对大家的javascript程序设计有所帮助。
有用 | 无用
猜你喜欢
您可能感兴趣的文章:
- jQuery源码解读之removeAttr()方法分析
- JS实现5秒钟自动封锁div层的方法
- js实现感应鼠标图片透明度变化的方法
- js实现鼠标感应向下滑动隐藏菜单的方法
- js实现鼠标滚轮控制图片缩放效果的方法
- NodeJS Web应用监听sock文件实例
- 使用JavaScript开发IE浏览器本地插件实例
- JQuery实现展开关闭层的方法
- jQuery实现鼠标滑过Div层背景变颜色的方法
- JS点击链接后慢慢展开隐藏着图片的方法
- js实现按钮控制图片360度翻转特效的方法
- js实现鼠标悬停图片上时滚动文字说明的方法
- js鼠标滑过图片震动特效的方法
- js实现双击图片放大单击缩小的方法
- js图片模糊切换显示特效的方法
- js实现单击图片放大图片的方法
- js实现iframe自动自适应高度的方法
- js全选实现和判断是否有复选框选中的方法
- Jquery树插件zTree用法入门教程