js实现九宫格图片半透明渐显特效的方法
本文实例讲述了js实现九宫格图片半透明渐显特效的方法。分享给大家供大家参考。具体实现方法如下:
<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程序设计有所帮助。
编程语言
- 机械手焊接机器人编程 机械手焊接设备编程
- vb数据库编程实例,vb做数据库
- tiobe世界编程语言排行榜,全球编程语言排行
- 成都java编程培训 成都it编程培训中心
- 编程基础培训,编程基础知识培训
- flash游戏编程基础教程,flash游戏开发教程
- 不会英语能学编程吗 不会英语可以学程序员吗
- 爱心代码编程C语言 爱心代码编程c语言公式
- c语言编程学习入门 c语言编程快速入门
- 西门子plc编程培训 西门子plc编程培训班
- 哪里可以学编程 台州哪里可以学编程
- 少儿编程哪个好 少儿编程哪个品牌好
- 编程是什么意思,图形编程是什么意思
- c语言编程软件下载,c语言编程软件在哪下载
- java编程软件下载,java编程下载手机版
- ug编程培训学校,ug编程培训教程