SWFObject2.1 and later syntaxes _ javascript skills

Source: Internet
Author: User
Using SWFObject to insert flash has many advantages and concise code, so there will be no prompt from Microsoft "Click here to activate controls" (according to reliable news, this is a lawsuit caused by Microsoft, the result is harmful to users ). However, the previous call method is a little complicated. First, instantiate it and add parameters, variables, and write data, which is just as troublesome as installing an elephant in the refrigerator. Fortunately, the author finally noticed this in the new 2. in Version x, the simplest call requires only one sentence and does not need to wait for the page to load. This means that you can write this sentence anywhere on the page, it can be seen that human science and technology are improving rapidly. Next we will list several call instances that are most commonly used in daily development.

1. the simplest and most basic sentence you can use to insert flash

The Code is as follows:


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.