How to prevent Flash from blocking div elements in HTML

php中世界最好的语言
Release: 2018-01-26 09:37:07
Original
1554 people have browsed it

This time I will show you how to prevent Flash from blocking div elements in HTML. What are theprecautions for preventing Flash from blocking div elements in HTML? The following is a practical case. Let’s take a look. .

When I was writing a flash

advertising codetoday, because the links that come with flash can easily be regarded as pop-up ads, I made a div layer and placed it on top of the flash, so that the links are all The one triggered by a will not be intercepted, but it is found that the flash is always above the div layer. It turns out that the flash needs to add a parameter.How to place flash under the DIV layer, so that flash does not block the floating layer or
drop-down menu, so that Flash does not block the floating object or key parameter of the layer: wmode=opaque.The method is as follows:
For IE, add the parameterin
For FF, add the parameter inAdd parameter wmode="opaque"
Script House usage code:

    22cn 
Copy after login

Standard Flash insertion


Set height and width:

width="400" height="400"

Set path:

data="style/flash/001.swf" 与 value="style/flash/001.swf"
Copy after login

Alternate text or alternative image:

 也可以不要这段 -->   Flash动画 
Copy after login

Flash that will not cover the layer

     Flash动画 
Copy after login


Transparent Flash


    Flash动画 
Copy after login

wmode attribute/parameter value Window | Opaque | Transparent

Template variable: $WM, (optional ) allows the use of transparent Flash content,
absolute positioning, and layered display features in Internet Explorer 4.0. This tag/property is only valid on Windows with the Flash Player ActiveX control.
"Window" uses the movie'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 all content behind it on the page.
"Transparent" causes the background of the HTML page to show through any transparent parts of the application and may reduce animation performance.
"Opaque windowless" and "Transparent windowless" both 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 to object only.

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

htmlHow to use the title attribute to display text on mouse hover

htmlHow to use hyperlinks Open a new window and control the window properties

##How should a tag href attribute and onclick event be used

The above is the detailed content of How to prevent Flash from blocking div elements in HTML. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!