XML/HTML Code復(fù)制內(nèi)容到剪貼板
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>22cn</title>
- <style type="text/css">
- <!--
- body {
- position:relative;
- z-index:0;
- margin:0; padding:0
- }
- body,td,th {
- color: #333333;
- }
- *{margin:0; padding:0}
- img{ border:0}
- #jb51{ position:relative; width:300px; height:250px}
- #div1 {
- position:absolute;
- left:0;
- top:0;
- width:300px;
- height:250px; z-index:-1
-
- }
- #div2 {
- position:absolute;
- left:0;
- top:0;
- width:300px;
- height:250px;
- z-index:99999;
- }
- -->
- </style></head>
- <body>
- <div id="jb51">
- <div id="div1">
- <script type="text/javascript">
- document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="300" height="250">');
- document.write('<param name="movie" value="http://img.jb51.net/image/22cn_jb51net.swf" />');
- document.write('<param name="quality" value="high" /><param name="wmode" value="opaque" />');
- document.write('<embed src="http://img.jb51.net/image/22cn_jb51net.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="250" wmode="opaque"></embed>');
- document.write('</object>');
- </script>
- </div>
- <div id="div2">
- <a href="http://i.am.cn/?s=jb51pic2" target="_blank"><img src="http://img.jb51.net/image/touming.png" width="300" height="250"/></a>
- </div>
- </div>
- </body>
- </html>
標(biāo)準(zhǔn)的的Flash插入
XML/HTML Code復(fù)制內(nèi)容到剪貼板
- <!-- 標(biāo)準(zhǔn)的的Flash插入
- 設(shè)置高度與寬度:
- width="400" height="400"
- 設(shè)置路徑:
- data="style/flash/001.swf" 與 value="style/flash/001.swf"
- 替代文本或替代圖片:
- <a href="" title=""><img src="" alt="" /></a> 也可以不要這段
- -->
- <object type="application/x-shockwave-flash" data="style/flash/001.swf" width="400" height="400">
- <param name="movie" value="style/flash/001.swf" />
- <a href="style/flash/001.swf"><img src="style/img/001.jpg" alt="Flash動(dòng)畫(huà)" /></a>
- </object>
不會(huì)遮住層的Flash
XML/HTML Code復(fù)制內(nèi)容到剪貼板
- <!-- 不會(huì)遮住層的Flash
- 讓Flash不檔住浮動(dòng)對(duì)象或?qū)拥年P(guān)鍵屬性:
- <param name="wmode" value="opaque" />
- <embed wmode="opaque"></embed>
- -->
- <object type="application/x-shockwave-flash" data="style/flash/001.swf" width="400" height="400">
- <param name="movie" value="style/flash/001.swf" />
- <param name="wmode" value="opaque" />
- <embed wmode="opaque"></embed>
- <a href="style/flash/001.swf"><img src="style/img/001.jpg" alt="Flash動(dòng)畫(huà)" /></a>
- </object>
透明的Flash
XML/HTML Code復(fù)制內(nèi)容到剪貼板
- <!-- 透明的Flash
- 讓Flash透明的關(guān)鍵屬性:
- <param name="wmode" value="transparent">
- -->
- <object type="application/x-shockwave-flash" data="style/flash/001.swf" width="400" height="400">
- <param name="movie" value="style/flash/001.swf" />
- <param name="wmode" value="transparent">
- <a href="style/flash/001.swf"><img src="style/img/001.jpg" alt="Flash動(dòng)畫(huà)" /></a>
- </object>
wmode 屬性/參數(shù)值 Window | Opaque | Transparent