html: Detailed explanation of classid in object tag

黄舟
Release: 2017-06-30 11:24:23
Original
7536 people have browsed it

1. First, what is object?

#Define an embedded object. Please use this element to add multimedia to your XHTML pages.

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

tag is used to contain objects such as images, audio, video, Java applets, ActiveX, PDF, and Flash.

object was originally intended to replace the img and applet elements. However, this did not happen due to bugs and lack of browser support.

The browser's object support depends on the object type. Unfortunately, major browsers all use different code to load the same object types.

Fortunately, the object object provides a solution. If the object element is not shown, the code between and is executed. This way we can nest multiple object elements (one for each browser).

2. The classid

## tag in object defines the run-time settings for the object.

Don't use the tag for images, use the tag instead.

Let’s look at an example first:

 <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>
Copy after login

Among them, the use of param: The param element allows you to specify run-time for objects inserted into XHTML documents Setting

In other words, this tag can provide parameters for the or tag that contains it.

And classid is the ID of the ActiveX control

The ID of this control We can find it like this:

This microsoft slider control is Microsoft slider control plug-in

Recall: Portal:Jquery Problems existing in the use of Uploadify3.21. and version 2.1 - Record Three

I encountered a similar problem on jQuery uploadify before, the one under IE The BUTTON using flash did not respond, so I added the last sentence:

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

Here is a statement: In the new version of jQuery, this method $.browser.msie has been abandoned . So avoid using this judgment!

Similarly we look for this classid:

## Found two plug-in IDs that are both flash.

The first one is for IE browser, One is for non-IE use.

3.object and embed

we want to For flash content to be displayed normally on a web page, the page must have a tag specifying the flash path. That is, the OBJECT and EMBED tags.

The OBJECT tag is used for the IE browser on the windows platform, while EMBED is used on the Netscape Navigator browser under the windows and Macintosh platforms and the IE browser under the Macintosh platform.

IE on the windows platform uses Activex control to play flash while other browsers use Netscape plug-in technology to play flash.

## The difference between and tags:

Both are Objects used to play multimedia files. The object element is used for IE browsers, and the embed element is used for non-IE browsers. In order to ensure compatibility, we usually use both elements at the same time, and the browser will automatically ignore tags it does not support. When using two elements at the same time, the tag should be placed inside the tag.

4.ActionScript

ActionScript (AS for short) was developed by Macromedia (now acquired by Adobe) The Flash product was originally developed as a simple scripting language.

The latest version, ActionScript 3.0, is a completely

object-orientedprogramming language, with powerful functions, rich class libraries, and syntax Similar to JavaScript, mostly used for Flash interactive, entertainment, practical development, web page production and RIA (Internet application) development

Involved here An extension for writing flash scripts

Use tools:

Flash CS6

The above is the detailed content of html: Detailed explanation of classid in object tag. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template