Today I learned to use swfobject.js this JS insert Flash.
: http://code.google.com/p/swfobject/
The benefits of this JS
There is no annoying imaginary frame problem in 1.IE.
2. Provides a complete version of the detection function, if the version is not enough to show other things, than tablets or text.
3. Easy to use, as long as the page header loading a. js file, and then HTML to write a container, inside the normal text or pictures (for the display of the flash can not be displayed), and finally with a script to replace the contents of this element is Flash.
4. Make inserting flash media resources as simple and safe as possible. And it is very much in line with the principle of search engine optimization.
5. Can avoid non-standard tags such as object, embed, etc. in HTML, XHTML, to conform to the more standard.
I think the main advantage of IE will not appear under the "Click here to activate the control" prompt, and can be verified by the Internet.
The code is as follows
<script type= "Text/javascript" src= "swfobject.js" ></script> <script type= "Text/javascript" > swfobject.embedswf ("test.swf", "Swfid", "a", "a", "9.0.0", "expressinstall.swf"</script ><div id= "Swfid" ></div>
Simple recording of usage, other detailed usage and parameter settings can be Google,
Reference: http://www.cnblogs.com/wuxinxi007/archive/2009/10/27/1590709.html
Http://www.cnblogs.com/wqing/archive/2012/06/25/2562888.html
inserting flash using swfobject.js