如何在html中加载flash(2种实现方法)
2016-06-14来源:

第一种方法:

css 代码:

代码如下:

.b970-a{width:970px; height:103px; margin:4px auto; overflow:hidden;}

html 代码:

<div class=b970-a> <

<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=970 height=107>

<param name=movie value=images/flash_ad-3-26.swf>

<param name=quality value=high>

<param name=wmode value=transparent>

<embed src=images/flash_ad-3-26.swf width=970 height=107 quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash wmode=transparent></embed>

</object>

</div>

第二种方法 兼容性好:

css 代码:

代码如下:

.b970-a{width:970px; height:103px; margin:5px auto; z-index:2; overflow:hidden;}

html 代码:

<object width=970 height=103

codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0

classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000>

<param value=images/flash_ad-3-26.swf name=movie>

<param value=high name=quality>

<param value=transparent name=wmode>

<param value=exactfit name=scale>

<embed width=970 height=103 wmode=transparent type=application/x-shockwave-flash

pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash

quality=high src=images/flash_ad-3-26.swf>

</object>

2025公考·省考培训课程试听预约报名

  • 报班类型
  • 姓名
  • 手机号
  • 验证码
推荐信息
Baidu
map