This article illustrates the method of realizing the fade effect of the nine Bongtu slices by JS. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
<title> Nine Bongtu piece translucent fade effect </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= "" >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= "/" >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= "" >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= "/" >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= "/" >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= "/" >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= "/" >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= "/" >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= "/" >Class=invisible Onmouseover=high (This) onmouseout=low (this)
Src= "/images/m09.jpg" border=0 width=180px height=135px></a></td></tr></tbody></ Table>
</body>
I hope this article will help you with your JavaScript programming.