Home Web Front-end JS Tutorial js method to realize the translucent gradient effect of nine-square grid pictures_javascript skills

js method to realize the translucent gradient effect of nine-square grid pictures_javascript skills

May 16, 2016 pm 04:13 PM
js Jiugongge picture method special effects

The example in this article describes the method of using js to achieve the translucent gradient effect of a nine-square grid image. Share it with everyone for your reference. The specific implementation method is as follows:

Copy code The code is as follows:
<html>
<title>Nine-square grid picture translucent gradient 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=""><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程序设计有所帮助。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to solve the problem of automatically saving pictures when publishing on Xiaohongshu? Where is the automatically saved image when posting? How to solve the problem of automatically saving pictures when publishing on Xiaohongshu? Where is the automatically saved image when posting? Mar 22, 2024 am 08:06 AM

How to solve the problem of automatically saving pictures when publishing on Xiaohongshu? Where is the automatically saved image when posting?

How to write a novel in the Tomato Free Novel app. Share the tutorial on how to write a novel in Tomato Novel. How to write a novel in the Tomato Free Novel app. Share the tutorial on how to write a novel in Tomato Novel. Mar 28, 2024 pm 12:50 PM

How to write a novel in the Tomato Free Novel app. Share the tutorial on how to write a novel in Tomato Novel.

How to recover deleted contacts on WeChat (simple tutorial tells you how to recover deleted contacts) How to recover deleted contacts on WeChat (simple tutorial tells you how to recover deleted contacts) May 01, 2024 pm 12:01 PM

How to recover deleted contacts on WeChat (simple tutorial tells you how to recover deleted contacts)

How to post pictures in TikTok comments? Where is the entrance to the pictures in the comment area? How to post pictures in TikTok comments? Where is the entrance to the pictures in the comment area? Mar 21, 2024 pm 09:12 PM

How to post pictures in TikTok comments? Where is the entrance to the pictures in the comment area?

How to make ppt pictures appear one by one How to make ppt pictures appear one by one Mar 25, 2024 pm 04:00 PM

How to make ppt pictures appear one by one

Quickly master: How to open two WeChat accounts on Huawei mobile phones revealed! Quickly master: How to open two WeChat accounts on Huawei mobile phones revealed! Mar 23, 2024 am 10:42 AM

Quickly master: How to open two WeChat accounts on Huawei mobile phones revealed!

The secret of hatching mobile dragon eggs is revealed (step by step to teach you how to successfully hatch mobile dragon eggs) The secret of hatching mobile dragon eggs is revealed (step by step to teach you how to successfully hatch mobile dragon eggs) May 04, 2024 pm 06:01 PM

The secret of hatching mobile dragon eggs is revealed (step by step to teach you how to successfully hatch mobile dragon eggs)

How to set font size on mobile phone (easily adjust font size on mobile phone) How to set font size on mobile phone (easily adjust font size on mobile phone) May 07, 2024 pm 03:34 PM

How to set font size on mobile phone (easily adjust font size on mobile phone)

See all articles