网页中如何插入FLASH(swf文件)的html代码

记得jquery博客从学校出来,走上这条前端开发这不归路,就没和flash打过交道,一来flash技术不咋地,之前搞过Flash MTV;二来,flash对seo不好,不方便蜘蛛抓取。
今天得重新折腾下,下面来简单描述下如何插入flash,好久没弄了。
一、简单插入flash图像
<object width=”300″ height=”220″ classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″><param name=”src” value=”你的flash地址.swf” /><embed width=”300″ height=”220″ type=”application/x-shockwave-flash” src=”你的flash地址.swf” /></object>
二、调整插入flash图像
<object width=”468″ height=”60″ classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″><param name=”quality” value=”High” /><param name=”_cx” value=”12383″ /><param name=”_cy” value=”1588″ /><param name=”FlashVars” value=”" /><param name=”Src” value=”你的flash地址” /><param name=”WMode” value=”Window” /><param name=”Play” value=”-1″ /><param name=”Loop” value=”-1″ /><param name=”SAlign” value=”" /><param name=”Menu” value=”-1″ /><param name=”Base” value=”" /><param name=”AllowScriptAccess” value=”always” /><param name=”Scale” value=”ShowAll” /><param name=”DeviceFont” value=”0″ /><param name=”EmbedMovie” value=”0″ /><param name=”BGColor” value=”" /><param name=”SWRemote” value=”" /><param name=”MovieData” value=”" /><param name=”src” value=”你的flash地址” /><param name=”flashvars” value=”" /><param name=”wmode” value=”Window” /><param name=”play” value=”-1″ /><param name=”loop” value=”loop” /><param name=”salign” value=”" /><param name=”menu” value=”-1″ /><param name=”base” value=”" /><param name=”allowscriptaccess” value=”always” /><param name=”scale” value=”ShowAll” /><param name=”devicefont” value=”0″ /><param name=”embedmovie” value=”0″ /><param name=”swremote” value=”" /><param name=”moviedata” value=”" /><embed width=”468″ height=”60″ type=”application/x-shockwave-flash” src=”你的flash地址” quality=”High” _cx=”12383″ _cy=”1588″ FlashVars=”" Src=”你的flash地址” WMode=”Window” Play=”-1″ Loop=”-1″ SAlign=”" Menu=”-1″ Base=”" AllowScriptAccess=”always” Scale=”ShowAll” DeviceFont=”0″ EmbedMovie=”0″ BGColor=”" SWRemote=”" MovieData=”" flashvars=”" wmode=”Window” play=”-1″ loop=”loop” salign=”" menu=”-1″ base=”" allowscriptaccess=”always” scale=”ShowAll” devicefont=”0″ embedmovie=”0″ swremote=”" moviedata=”" /><img src=”http://www.jqueryba.com/wp-includes/js/tinymce/themes/advanced/img/trans.gif” class=”mceItemMedia mceItemFlash” width=”468″ height=”60″ data-mce-json=”{‘video’:{},’params’:{‘src’:'\u4f60\u7684flash\u5730\u5740′,’quality’:'high’,'pluginspage’:'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash’}}” alt=”" /></object>
三、调整插入flash图像
<object width=”750″ height=”210″ classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″><param name=”quality” value=”high” /><param name=”wmode” value=”transparent” /><param name=”src” value=”路径/文件名称.swf” /><embed width=”750″ height=”210″ type=”application/x-shockwave-flash” src=”路径/文件名称.swf” quality=”high” wmode=”transparent” /><img src=”http://www.jqueryba.com/wp-includes/js/tinymce/themes/advanced/img/trans.gif” class=”mceItemMedia mceItemFlash” width=”750″ height=”210″ data-mce-json=”{‘video’:{},’params’:{‘src’:'\u8def\u5f84/\u6587\u4ef6\u540d\u79f0.swf’,'quality’:'high’,'pluginspage’:'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash’,'wmode’:'transparent’}}” alt=”" /></object>
四、插入透明flash
1、dreamweaver插入透明flash代码:
<object width=”373″ height=”166″ classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″><param name=”quality” value=”high” /><param name=”wmode” value=”transparent” /><param name=”src” value=”images/move.swf” /><embed width=”373″ height=”166″ type=”application/x-shockwave-flash” src=”images/move.swf” quality=”high” wmode=”transparent” /><!–这里代码可使Flash背景透明 –><img src=”http://www.jqueryba.com/wp-includes/js/tinymce/themes/advanced/img/trans.gif” class=”mceItemMedia mceItemFlash” width=”373″ height=”166″ data-mce-json=”{‘video’:{},’params’:{‘src’:'images/move.swf’,'quality’:'high’,'pluginspage’:'http://www.macromedia.com/go/getflashplayer’}}” alt=”" /></object></code>
2、frontpage插入透明flash代码:
<object width=”50″ height=”50″ classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″><param name=”src” value=”fish1.swf” /><param name=”quality” value=”high” /><param name=”wmode” value=”transparent” /><embed width=”50″ height=”50″ type=”application/x-shockwave-flash” src=”fish1.swf” quality=”high” wmode=”transparent” /></object>
<!– wmode=transparent这一段是设置背景透明–>
3、插入透明FLASH:<object width=”100%” height=”100%” classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″><param name=”src” value=”***/***.swf” /><param name=”quality” value=”high” /><param name=”wmode” value=”transparent” /><embed width=”100%” height=”100%” type=”application/x-shockwave-flash” src=”***/***.swf” quality=”high” wmode=”transparent” /></object>
4、透明flash覆盖代码:
<object style=”left: 0px; position: absolute; top: 0px;” width=”1000″ height=”606″ classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″><param name=”src” value=”http://ysxiong.anyp.cn/PageLayout/UserDataA/Data53/USID200403062012220031/Articles/Images/040917060055890.swf” /><param name=”wmode” value=”transparent” /><param name=”quality” value=”high” /><embed style=”left: 0px; position: absolute; top: 0px;” width=”1000″ height=”606″ type=”application/x-shockwave-flash” src=”http://ysxiong.anyp.cn/PageLayout/UserDataA/Data53/USID200403062012220031/Articles/Images/040917060055890.swf” wmode=”transparent” quality=”high” /></object>

转自 jquery http://www.jqueryba.com/623.html

你可能感兴趣的:(插入FLASH)