picalpha.htm

来自「JAVA游戏大综合及各种特效,初学者比较有用。」· HTM 代码 · 共 55 行

HTM
55
字号
<html>

<head>
<title>图片特效-隐现效果</title>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
<SCRIPT language=JavaScript1.2>

function makevisible(cur,which){
if (which==0)
cur.filters.alpha.opacity=100
else
cur.filters.alpha.opacity=20
}
</SCRIPT>

<style type="text/css">.pt9         { font-family: 宋体; font-size: 9pt }
body, div    { font-family: 宋体; font-size: 9pt; margin-top: 0px }
</style>
<meta content="Microsoft FrontPage 4.0" name="GENERATOR">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<body bgcolor="#ffffff">

<table align="center" border="0" cellpadding="0" cellspacing="0" width="16">
  <tbody>
    <tr>
      <td border="0" width="16"></td>
    </tr>
  </tbody>
</table>
<p align="center"><font color="#ff0000">犹抱琵琶半遮面-只有一个图片啊!(适用于IE)</font></p>
<table align="center" border="0" width="76%">
  <tbody>
    <tr>
      <td height="169" width="38%">
        <div align="center">
          <a href="picb.jpg"><img border="0" onmouseout="makevisible(this,1)" onmouseover="makevisible(this,0)" src="pic.jpg" style="FILTER: alpha(opacity=20)" width="100" height="135"></a>
        </div>
        <div align="center">
          <br>
          <font color="#ff0000">将鼠标放在图片上看看效果</font>
        </div>
      </td>
    </tr>
  </tbody>
</table>
<p align="center"><br>
</p>
<p align="center"> </p>

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?