Object, classid in HTML -- Record 10, objectclassid --

Source: Internet
Author: User

Object, classid in HTML -- Record 10, objectclassid --

1. First, what is the object?

Defines an embedded object. Use this element to add multimedia to your XHTML page.

This element allows you to specify the data and parameters of objects inserted into the HTML document, as well as code that can be used to display and manipulate data.

<Object> tags are used to include objects, such as images, audios, videos, Java applets, ActiveX, PDF, and Flash.

The original intention of the object is to replace the img and applet elements. However, this is not implemented due to vulnerabilities and lack of browser support.

The support for browser objects depends on the object type. Unfortunately, mainstream browsers use different codes to load the same object type.

Fortunately, the object provides a solution. If the object element is not displayed, the code between <object> and </object> is executed. In this way, we can nest Multiple object elements (each corresponding to a browser ).

 

2. classid in object

<Param> the label definition is used to set the run-time of an object.

Do not use the <object> label for the image. Use the label instead.

 

Let's take a look at an example:

 <object classid="clsid:F08DF954-8592-11D1-B16A-00C0F0283628" id="Slider1" width="100" height="50">  <param name="BorderStyle" value="1" />  <param name="MousePointer" value="0" />  <param name="Enabled" value="1" />  <param name="Min" value="0" />  <param name="Max" value="10" /></object>

 

Use of param: The param element allows you to set the run-time setting for the object to insert the XHTML document.

That is to say, this tag can provide parameters for the <object> or <applet> tag that contains it.

Classid is the ActiveX Control ID.

The ID of this control can be found as follows:

 

This microsoft slider control is a microsoft slider control plug-in.

 

Recall: Portal:Problems with Jquery Uploadify3.21. and Version 2.1 -- Record 3

Previously, I encountered a similar problem on jQuery uploadify, that is, the flash BUTTON under IE did not respond, so I added the following sentence:

If ($. browser. msie) {$ (". swfupload"). attr ("classid", "clsid: D27CDB6E-AE6D-11cf-96B8-444553540000 ");}

Here we declare: in the new version of jQuery, $. browser. msie has been deprecated. So avoid using this judgment!

We also look for this classid:

 

 

We found two plug-in IDS that are both flash.

The first one is in IE browser,One is not used by IE.

 

3. object and embed

If we want to display the flash content normally on the webpage, the webpage must have a tag with the specified flash path. That is, the OBJECT and EMBED labels.

The OBJECT tag is used for IE browsers on windows, and EMBED is used for Netscape Navigator browsers on windows and Macintosh platforms and IE browsers on Macintosh platforms.

On windows, IE uses Activex controls to play flash, while other browsers use the Netscape plug-in technology to play flash.

 

<Object> and <embed> labels:

Both are objects used to play multimedia files. The object element is used in IE and the embed element is used in non-ie browsers. To ensure compatibility, we usually use two elements at the same time, the browser automatically ignores tags that it does not support. When two elements are used at the same time, the <embed> label should be placed inside the <object> label.

 

4. ActionScript

AS was developed for its Flash product by Macromedia (which has been acquired by Adobe). It was initially a simple scripting language.

The latest version of ActionScript3.0 is a fully object-oriented programming language with powerful functions and rich class libraries. Its syntax is similar to JavaScript and is mostly used for Flash interactive, entertaining, and practical development, webpage creation and RIA (Internet application) development

This involves an extension for writing flash scripts.

Tools used:Flash CS6

Portal: ActionScript 3.0 Getting Started: Hello World, file read/write, data storage (mongodobject), interaction with JS

 

5. Interaction between flash and js

Portal:

Flash Research (I) -- local communication flash Research (II) -- interaction with asp.net Service (Access Database) flash Research (iii) -- interaction between Falsh and JavaScript

 

 

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.