inserting flash using swfobject.js

Source: Internet
Author: User

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

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.