手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >js实现九宫格图片半透明渐显特效的方法
js实现九宫格图片半透明渐显特效的方法
摘要:本文实例讲述了js实现九宫格图片半透明渐显特效的方法。分享给大家供大家参考。具体实现方法如下:复制代码代码如下:九宫格图片半透明渐显效果.i...

本文实例讲述了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="http://www.jb51.netimages/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="http://www.jb51.netimages/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="http://www.jb51.netimages/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="http://www.jb51.netimages/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="http://www.jb51.netimages/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="http://www.jb51.netimages/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="http://www.jb51.netimages/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="http://www.jb51.netimages/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="http://www.jb51.netimages/m09.jpg" border=0 width=180px height=135px></A></TD></TR></TBODY></TABLE>

</body>

</html>

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

【js实现九宫格图片半透明渐显特效的方法】相关文章:

JavaScript实现文本框中默认显示背景图片在获得焦点后消失的方法

Javascript实现每日自动换一张图片的方法

jQuery实现转动随机数抽奖效果的方法

Javascript实现div层渐隐效果的方法

JQuery+CSS实现图片上放置按钮的方法

js实现两点之间画线的方法

js实现字符串转日期格式的方法

jQuery实现仿腾讯微博滑出效果报告每日天气的方法

javascript实时显示当天日期的方法

js验证上传图片的方法

精品推荐
分类导航