How to Implement the semi-transparent and progressive Effect of Gangu images in js

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.