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

作者:飞飞 发布于:2013-3-6 18:32

一、简单插入flash图像

< embed src = "你的flash地址.swf" height = "220" width = "300" >

二、调整插入flash图像

< object classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab #version=5,0,0,0" height = "60" width = "468" >
< param name = "movie" value = "你的flash地址" ref = "" >
< param name = "quality" value = "High" >
< param name = "_cx" value = "12383" >
< param name = "_cy" value = "1588" >
< param name = "FlashVars" value = "" >
< param name = "Src" ref = "" 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 = "" >
< embed src = "你的flash地址" quality = "high" pluginspage = "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash " type = "application/x-shockwave-flash" height = "60" width = "468" >
</ object >

三、调整插入flash图像

< table border = "0" cellpadding = "0" cellspacing = "0" width = "100%" >
< tbody >< tr >
< td background = "背景图片.jpg" height = "210" >< 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" wmode = "transparent" height = "210" width = "750" >
 
</ object ></ td >
</ tr ></ tbody ></ table >

四、插入透明flash
1、dreamweaver插入透明flash代码:

<!--设置单元格背景为图片背景(当然要放一个好看的了) -->
< object classid = "clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab #version=6,0,29,0" align = "middle" height = "166" width = "373" >
< param name = "movie" value = "images/move.swf" >
< param name = "quality" value = "high" >
< param name = "wmode" value = "transparent" > <!--这里代码可使Flash背景透明 -->
< embed src = "images/move.swf" quality = "high" pluginspage = "http://www.macromedia.com/go/getflashplayer " align = "middle" height = "166" width = "373" ></ object >

2、frontpage插入透明flash代码:

< embed src = "fish1.swf" quality = "high" type = "application/x-shockwave-flash" height = "50wmode=transparent" width = "50" >
<!-- wmode=transparent这一段是设置背景透明-->
3、插入透明FLASH:< embed src = "***/***.swf" quality = "high" wmode = "transparent" type = "application/x-shockwave-flash" height = "100%" width = "100%" >

4、透明flash覆盖代码:

< embed style = "LEFT: 0px; POSITION: absolute; TOP: 0px; absolute: " src = "http://ysxiong.anyp.cn/PageLayout/UserDataA/Data53/USID200403062012220031/Articles/Images/040917060055890.swf " type = "application/x-shockwave-flash" wmode = "transparent" quality = "high" ;;="" align = "right" height = "606" width = "1000" >

标签: flash

发表评论:

Powered by emlog