How to Implement the semi-transparent and progressive Effect of Gangu images in js
This article mainly introduces how to implement the semi-transparent and progressive special effect of Gangu images in js. It involves the css special effect operation technique in js and is of great practical value. For more information, see.
This article describes how to implement the progressive Effect of translucent images in the Code js. Share it with you for your reference. The specific implementation method is as follows:
The Code is as follows:
<Html>
<Title> semi-transparent and gradual display of images with a kuangu lattice </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 background1_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 background1_text2.gif bgColor = # ff9f07> <
Href = "/"> Class = invisible onmouseover = high (this) onmouseout = low (this)
Src = "/images/m02.jpg" border = 0 width = 180px height = 135px> </A> </TD>
<TD width = 90 background1_text3.gif bgColor = # ff9f07> <
Href = ""> Onmouseover = high (this) onmouseout = low (this) src = "/images/m03.jpg"
Border = 0 width = 180px height = 135px> </A> </TD> </TR>
<TR>
<TD background1_text4.gif bgColor = # ff9f07> <
Href = "/"> Class = invisible onmouseover = high (this) onmouseout = low (this)
Src = "/images/m04.jpg" border = 0 width = 180px height = 135px> </A> </TD>
<TD background1_text5.gif bgColor = # a5d523> <
Href = "/"> Class = invisible onmouseover = high (this) onmouseout = low (this)
Src = "/images/m05.jpg" border = 0 width = 180px height = 135px> </A> </TD>
<TD background1_text6.gif bgColor = # c56e19> <
Href = "/"> Class = invisible onmouseover = high (this) onmouseout = low (this)
Src = "/images/m06.jpg" border = 0 width = 180px height = 135px> </A> </TD> </TR>
<TR>
<TD background1_text12.gif bgColor = # ff9f07> <
Href = "/"> Class = invisible onmouseover = high (this) onmouseout = low (this)
Src = "/images/m07.jpg" border = 0 width = 180px height = 135px> </A> </TD>
<TD background1_text8.gif bgColor = # c56e19> <
Href = "/"> Class = invisible onmouseover = high (this) onmouseout = low (this) src = "/images/m08.jpg"
Border = 0 width = 180px height = 135px> </A> </TD>
<TD background1_text7.gif bgColor = # c56e19> <
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>
</Html>
I hope this article will help you design javascript programs.