Tips on how to prevent Flash from blocking HTML div elements_HTML/Xhtml_Webpage Production_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:42:24
Original
1428 people have browsed it

今天在写一个flash广告代码的时候,因为flash自带的链接,容易被当成弹出广告,所以做了一个div层放到flash上面,这样链接都是a触发的不会被拦截,但发现flash一直处于div层上面,原来flash需要加个参数才可以。

让flash置于DIV层之下的方法,让flash不挡住飘浮层或下拉菜单,让Flash不档住浮动对象或层的关键参数:wmode=opaque。

方法如下:

针对IE 在内加上参数
针对FF 在内加上参数wmode="opaque"

脚本之家使用代码:


XML/HTML Code复制内容到剪贴板




22cn












Standard Flash insertion

XML/HTML Code copy content to clipboard



Flash animation

Flash that does not cover the layer

XML/ HTML Code copies content to the clipboard





Flash animation

Transparent Flash

XML/HTML Code copy content to the clipboard


< ;param name="movie" value="style/flash/001.swf" />

Flash animation

wmode attribute/ Parameter value Window | Opaque | Transparent
Template variable: $WM, (optional) allows the use of transparent Flash content, absolute positioning and hierarchical display features in Internet Explorer 4.0. This tag/property is only valid on Windows with the Flash Player ActiveX control.

"Window" uses the video's own rectangular window to play the application on the Web page. "Window" indicates that this Flash application has no interaction with the HTML layer and is always on top.
"Opaque" causes the application to hide everything behind it on the page.
"Transparent" allows the background of the HTML page to show through any transparent parts of the application and may reduce animation performance.
Both "Opaque windowless" and "Transparent windowless" can interact with HTML layers, allowing the layer above the SWF file to obscure the application. The difference between the two options is that "Transparent" allows transparency, so if a part of the SWF file is transparent, the HTML layer underneath the SWF file can show through that part, while "opaque" does not. .

If this property is omitted, the default value is Window. Applies only to object

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template