How Flash pages are verified by _css/html

Source: Internet
Author: User

1.embed is illegal.

The label is a private label for Netscape , and although the label is widely used, it is not included from html3.2,html4.0 to XHTML1.0,W3C. Pages that use labels will not be verified by the Web.

2. You should use object

It is recommended that theLabel. Even in the XHTML2, they have to beReplaced. UseThe code for inserting the Flash method is:

if (navegiator. mimetypes && Navigator mimetypes["Application/x-shockwave-flash"] {document. write (' < span="">

This is a better solution at the moment. You must plug in Flash, just use JS call. This method can deceive the Web-based calibration program, so that the page through validation. But it's just "cheating", not really meeting the criteria.

How did Macromedia do it? See this code:

It uses a compromise two option:

    • (1). First JavaScript to determine your browser version and Flash Player version;
    • (2). Generate HTML code dynamically in the background, depending on the version.

Simply put is the default method, if the browser cannot handle the MIME type "Application/x-shockwave-flash" of object, it inserts child elements. To put it bluntly, this and with js hiding method is similar, is also a kind of "cheat" way, but this is the most conforms to the standard, the more perfect practice now.

To really abandon , can only wait for the better support of IE browser, perhaps to wait until Longhorn out.

  • Related Article

    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.