[FLASH]如何用CSS z-index蓋過Flash

[FLASH]如何用CSS z-index蓋過Flash

Postby mihu » Fri Feb 01, 2008 9:36 am

在Adobe討論的連結:
http://www.adobe.com/cfusion/webforums/ ... forumid=15.

相關文章:
http://www.quip.net/blog/2006/flash/how ... er-content

解決方法:
The <object> and/or <embed> HTML elements that reference your Flash content accept a number of optional parameters. For the <object> element, these parameters are supplied via nested <param> elements. Simply add the following new <param>:

<param name="wmode" value="opaque">

The <embed> parameters are supplied via attributes. For the <embed> element, add the following new attribute:

wmode="opaque"

That’s it. Your Flash content is now stackable via z-index; for example, you may wrap your <object>/<embed> pair in a <div> and set the <div>’s z-index as you please.

<div style="position: absolute; z-index=1;">
<object attributes >
<embed attributes />
</object>
</div>

If you’re using Dreamweaver, just press the Parameters button in the Insert > Media > Flash dialog or in the Property inspector when selecting existing Flash content. Type “wmode” (without quotes) in the name/parameter column and “opaque” (without quotes) in the value column. That will handle the above HTML for you, even with the new JavaScript embedding available since the 8.0.2 update.


1. 在加<OBJECT></OBJECT>裡加
Code: Select all
<param name="wmode" value="opaque">

2. 在<EMBED ...>裡加
Code: Select all
wmode="opaque"
User avatar
mihu
 
Posts: 183
Joined: Thu Jan 10, 2008 10:44 am

Return to Flash

Who is online

Users browsing this forum: No registered users and 1 guest

cron