如保讓兩個(gè)或兩個(gè)以上的FLASH動(dòng)畫重疊?這個(gè)問題一直困擾很多站長(zhǎng)。下面給出多個(gè)FLASH重疊代碼,希望對(duì)大家有所幫助!
<embed align="right" src="www.bjdls.com1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="200" wmode="transparent"></embed>
<embed align="right" src="www.bjdls.com2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="200" wmode="transparent"></embed>
將上面的flash地址改成自己的FLASH地址
下文是從網(wǎng)上復(fù)制的,具體未測(cè)試!大家可以試一下!
特殊情況兩個(gè)flash同時(shí)顯示,但是有部分重疊,我的想法是分別放在兩個(gè)div中,然后絕對(duì)定位,通過z-index的值,來顯示它們的優(yōu)先順序,但是ie支持,firefox不支持,請(qǐng)問如何解決這種情況
代碼如下:
<div style="width:800px;height:600px;border:1px solid red;margin:0px auto;position:relative;">
<div style="width:600px;height:300px;border:1px solid red;position:absolute;left:0;top:0;z-index:10;">
<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="600" height="300">
<param name="movie" value="1.swf">
<param name="quality" value="high">
<embed src="1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="300"></embed>
</object>
</div>
<div style="width:300px;height:400px;border:1px solid blue;position:absolute;right:0;top:0px;z-index:5;">
<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="300" height="400">
<param name="movie" value="2.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="400"></embed>
</object>
</div>
</div>
<embed align="right" src="www.bjdls.com1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="200" wmode="transparent"></embed>
<embed align="right" src="www.bjdls.com2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="200" wmode="transparent"></embed>
將上面的flash地址改成自己的FLASH地址
下文是從網(wǎng)上復(fù)制的,具體未測(cè)試!大家可以試一下!
特殊情況兩個(gè)flash同時(shí)顯示,但是有部分重疊,我的想法是分別放在兩個(gè)div中,然后絕對(duì)定位,通過z-index的值,來顯示它們的優(yōu)先順序,但是ie支持,firefox不支持,請(qǐng)問如何解決這種情況
代碼如下:
<div style="width:800px;height:600px;border:1px solid red;margin:0px auto;position:relative;">
<div style="width:600px;height:300px;border:1px solid red;position:absolute;left:0;top:0;z-index:10;">
<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="600" height="300">
<param name="movie" value="1.swf">
<param name="quality" value="high">
<embed src="1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="300"></embed>
</object>
</div>
<div style="width:300px;height:400px;border:1px solid blue;position:absolute;right:0;top:0px;z-index:5;">
<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="300" height="400">
<param name="movie" value="2.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="400"></embed>
</object>
</div>
</div>