Home >Web Front-end >HTML Tutorial >2 ways to load Flash in HTML

2 ways to load Flash in HTML

高洛峰
高洛峰Original
2017-03-14 18:05:181779browse

The first method:
css code:

.b970-a{width:970px; height:103px; margin:4px auto; overflow:hidden;} 
html 代码: 
<p 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> 
</p>

The second method has good compatibility:
css code:

.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>


The above is the detailed content of 2 ways to load Flash in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn