萬盛學電腦網

 萬盛學電腦網 >> 網頁制作 >> dreamweaver教程 >> 在Dreamweaver中實現flash的透明背景

在Dreamweaver中實現flash的透明背景

 用flash發布的html頁和用dreamweaver制作的帶有flash 動畫的兩個html頁的源代碼:


1.用flash發布的html頁源代碼:

<HTML>
<HEAD>
<TITLE>Movie2</TITLE>
</HEAD>
<BODY bgcolor="#000000">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--fdsaaaa aaaaaaa -->


<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash
/swflash.cab#version=5,0,0,0"
WIDTH=550 HEIGHT=400>
<PARAM NAME=movie value="Movie2.swf">
<PARAM NAME=quality value=high>
<PARAM NAME=wmode value=transparent>
<PARAM NAME=bgcolor value=#FFFFFF> <!--用flash導出後將背景改為黑色,其目的是便於觀察透明效果-->
<EMBED src="Movie2.swf" quality=high wmode=transparent bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version
=ShockwaveFlash"></EMBED>
</OBJECT>

</BODY>

最簡單得方法是插入如下代碼:
 
<table border="0" cellPadding="0" cellSpacing="0" width="100%">
        <tr> 
          <td height="210" background="背景圖片.jpg"><object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 height=210 width=750>
              <param name="movie" value="路徑/文件名稱.swf">
              <param name="quality" value="high">
              <param name="wmode" value="transparent">
              <embed src="路徑/文件名稱.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="750" height="210" wmode="transparent">
              </embed> 
            </object></td>
      </tr></table>

copyright © 萬盛學電腦網 all rights reserved