js實現(xiàn)九宮格圖片半透明漸顯特效的方法
來源:易賢網(wǎng) 閱讀:1075 次 日期:2015-03-13 10:53:05
溫馨提示:易賢網(wǎng)小編為您整理了“js實現(xiàn)九宮格圖片半透明漸顯特效的方法”,方便廣大網(wǎng)友查閱!

這篇文章主要介紹了js實現(xiàn)九宮格圖片半透明漸顯特效的方法,涉及js操作css特效的技巧,非常具有實用價值,需要的朋友可以參考下

本文實例講述了js實現(xiàn)九宮格圖片半透明漸顯特效的方法。分享給大家供大家參考。具體實現(xiàn)方法如下:

代碼如下:

<html>

<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程序設計有所幫助。

更多信息請查看IT技術(shù)專欄

更多信息請查看腳本欄目
易賢網(wǎng)手機網(wǎng)站地址:js實現(xiàn)九宮格圖片半透明漸顯特效的方法

2025國考·省考課程試聽報名

  • 報班類型
  • 姓名
  • 手機號
  • 驗證碼
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關(guān)注公眾號:hfpxwx
咨詢QQ:1093837350(9:00—18:00)版權(quán)所有:易賢網(wǎng)