Microsoft updated the IE browser the day before yesterday. The update of ie caused the issue that ActiveX content could not be loaded by itself, which attracted the attention of many people. these changes can be seen in some Adobe software, including flashplayer. authorware player, Shockwave Player, SVG Viewer, help center, and Adobe Reader. Of course, there are also Sun Java, Apple QuickTime, RealNetworks, RealPlayer, and other ActiveX. the interactive content embedded in the HTML page in some ways may not respond to user input (such as the keyboard and mouse) until the user clicks or activates or continues loading. next, let's take a look at what it is and how to solve it to make it as convenient as possible.
Problem
When you view the web page, in Windows, the IE browser does not display ActiveX content as a rectangle box and prompts "click to activate and use this control", which means that you need to activate ActiveX content to view or interact with each other. control, activeX content may or cannot be loaded and played as expected. you can view the demo provided by Adobe: here
Adobe Solutions
There are two solutions:
Method 1
If you browse the page containing ActiveX, click this content to activate it.
Method 2
If you are developing a website and removing the user activation process required for ActiveX content, Adobe provides a solution document based on javascriptr. Here
You can solve the above problems by using Adobe's solution documentation.
There are no other simpler methods besides the above methods. The answer is yes. the flashobject that can use deconcept is simpler than the Adobe method. and the running status is good. download flashobject 1.3 (38 hits)
The basic method is as follows:
You only need to include flashobject. js in your HTML page, and then add a javascript code to embed it into Flash SWF.
It works as follows:
Code:
<SCRIPT type = "text/JavaScript" src = "flashobject. js"> </SCRIPT>
<Div id = "flashcontent">
This text is replaced by the Flash Movie.
</Div>
<SCRIPT type = "text/JavaScript">
VaR fo = new flashobject ("movie.swf", "mymovie", "200", "100", "7", "#336699 ");
Fo. Write ("flashcontent ");
</SCRIPT>
For a brief analysis, or you can take a closer look at the flashobject documentation.
Code:
<Div id = "flashcontent">
This text is replaced by the Flash Movie.
</Div>
This section is equivalent to a holder we have prepared for storing Flash files. some movieclip holder, which is commonly used. prepared for content. if Flash Player is not installed. the line is displayed as "this text is replaced by the Flash Movie."
If you have installed Flash Player, this line of text won't be displayed, and the user will basically not be able to see it. At the same time, it also has the advantage that you can change this line of content into your search keyword, google will easily find it. haha.
The following section shows what it is.
Code:
<SCRIPT type = "text/JavaScript">
VaR fo = new flashobject ("movie.swf", "mymovie", "200", "100", "7", "#336699 ");
Fo. Write ("flashcontent ");
</SCRIPT>
Embedded in SWF, for example, if the video file is movie movie.swf, the ID is "mymoive, the width is 200, the height is 100, the Flash Player version is 7, and the background color is #336699.
Next let's take a look at an example of embedding flash.
We want to embed it into the page without being affected by IE updates.
1. Add the flashobject. js file to the page.
<SCRIPT type = "text/JavaScript" src = "flashobject. js"> </SCRIPT>
Generally, this line of code can be written before the body tag.
2. Add the following code below it.
Code:
<Div id = "flashcontent" style = "width: 300px; Height: 200px"> </div>
<SCRIPT type = "text/JavaScript">
VaR fo = new flashobject ("ws.swf", "mymovie", "300", "200px", "7", "#336699 ");
Fo. addparam ("quality", "low ");
Fo. addparam ("wmode", "Transparent ");
Fo. addparam ("salign", "T ");
Fo. addparam ("scale", "noscale ");
Fo. addparam ("loop", "false ");
Fo. Write ("flashcontent ");
</SCRIPT>
From the code above, we can see that we will put flash in the Flash layer with the ID as Flash content, and its width is 300 to 200 pixels, so it should be the same as the size of our SWF file. it can also be different if you want to scale. vaR fo = new flashobject ("ws.swf", "mymovie", "300", "200px", "7", "#336699") below "); this is an embedded flash file. In the previous section, we have introduced the corresponding content. ws.swf can be a relative path or an absolute path. For example, you can directly enter the website and add your SWF file name.
The following section describes the parameters that can be added, including quality, wmode transparent transparency, salign alignment, scale scaling, and loop.
This completes the embedding process.
If you want to use flashvars for HTML and flash communication, it is easy to use flashobject. However, when using flashobjcet, parameters are passed only when SWF is loaded. it is passed as a value pair, as follows: variable1 = value1 & variable2 = value2 & variable3 = value3
The usage is as follows:
Code:
<SCRIPT type = "text/JavaScript">
VaR fo = new flashobject ("movie.swf", "mymovie", "200", "100", "7", "#336699 ");
Fo. addvariable ("variable1", "value1 ");
Fo. addvariable ("variable2", "value2 ");
Fo. addvariable ("variable3", "value3 ");
Fo. Write ("flashcontent ");
</SCRIPT>
Once this step is completed, all the variables have been passed into the flash, and you can flexibly use the _ root in your flash.
Deconcept flashobject also provides instructions for adding other parameters. For details, see
In addition to this simple method, there is a similar one. I didn't take it into consideration. If you are interested, you can take a closer look. Here, UFO
Haha, we can easily remove the process of updating and changing Microsoft IE. if you are free, do not forget to go to the Microsoft website to check what it uses. Finally, do not forget to update your website, cheers