JS pop-up window and menu by Flash cover solution

Source: Internet
Author: User
Tags html page

Now let's analyze the reasons:

Wmode Property/Parameter Value Window | Opaque | Transparent

Template variables: $WM

Window plays the application on a Web page using the movie's own rectangular window. "Window" indicates that this Flash application has no interaction with the HTML layer and is always at the top level.
Opaque causes the application to hide all the content that is behind it on the page.

"Transparent" makes the background of an HTML page visible through all the transparent parts of the application, and may degrade animation performance.

Both "Opaque windowless" and "transparent windowless" can interact with the HTML layer, 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 portion of the SWF file is transparent, the HTML layer underneath the SWF file can be displayed through that section, and "opaque" is not displayed.

Find out why, and we'll solve the problem:

Set Flash to transparent: But if you insert the animation in the DW, add <param name= "wmode" value= "Transparent" > is not effective. To replace the entire Flash plug-in code with the following:

The code is as follows Copy Code

<object type= "Application/x-shockwave-flash" Data= "http://www.konnech.cn/2/images/banner.swf" width= "560" height= "210" >
<param name= "movie" value= "/2/images/banner.swf"/>
<param name= "wmode" value= "Transparent"/>
</object>


Another way to directly add flash to the page

Set the Flash bottom, add a code: <param name= "wmode" value= "opaque"/> But only add this code, ie feasible, under the FF, failure. To work under FF, add a wmode= "opaque" to the object.

  code is as follows copy code

<object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase= "http://fpdownload.macromedia.com/pub/ shockwave/cabs/flash/swflash.cab#version=7,0,0,0 "width=" 725 "height=" ><param name= "allowScriptAccess" Value= "Samedomain" >
<param name= "wmode" value= "opaque" >
<param name= "movie" value= "/uploads/media/logo2.swf" ><param "name=" quality "high" value= ><param "bgcolor" value= "#ffffff" >
<embed src= "/uploads/media/logo2.swf" quality= "High" bgcolor= "#ffffff" wmode= "opaque" width= "725" height= "100" allowscriptaccess= "Samedomain" type= "Application/x-shockwave-flash" pluginspage= "http://www.macromedia.com/go/" Getflashplayer "/></object>


Note Add param name= "wmode" value= "opaque"
and wmode= "opaque"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.