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.