HTML5 label embed details, html5embed details

Source: Internet
Author: User

HTML5 label embed details, html5embed details
Abstract:

<Embed> A tag is a new tag in HTML 5 used to define embedded content, such as plug-ins. Similar to object and applet labels in HTML 4.01.If we want to display the flash content normally on the webpage, the page must have the tag of the specified flash path, that is, the OBJECT, APPLET, and EMBED tag. The applet is suitable for Internet access and is used to load java files. Objects are suitable for Intranet access and are used to load images, audios, videos, Java applets, ActiveX, PDF, and Flash. The applet is suitable in an environment that supports multiple browsers. W3C recommends that you do not apply the applet label.The OBJECT tag is applicable to IE browsers on windows,EMBED is applicable to Netscape Navigator and IE browsers on windows and Macintosh platforms.On windows, IE uses Activex controls to play flash, while other browsers use the Netscape plug-in technology to play flash.

Oject

<Object classid = "clsid: d27cdb6e-ae6d-11cf-96b8-444553540000 "codebase =" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 "width =" 550 "height =" 400 "align =" middle "> <param value =" sameDomain "/> <param value =" FlashVars.swf "/> <param value = "foo = happy2005 & program = flash & language = Simplified Chinese-China"/> <param value = "high"/> <param value = "# ffffff" /> </object>

 

The classid attribute specifies the version of the Java Plug-in used.

Applet

<applet style="_display:none;" id="app" archive="/static/java/AppletLoader.jar, /static/java/GuiViewer.jar, /static/java/GuiPlayer.jar" code="com.shterm.loader.Loader.class" width="0" height="0" MAYSCRIPT><param name="onInit" value="_init"/><param name="onClose" value="_close"/></applet>

 

My project uses object and applet labels. Today we will learn how to use embed to load plug-ins.

Usage:

Embed can be used to insert various multimedia files in the format of Swf, Midi, Wav, AIFF, AU, MP3, etc. Netscape and the new version of IE support. Src is the audio or video file and its path. It can be a relative or absolute path. As follows:

<embed style="width:1280px; height:700px;" src="/videos/CuPlayerMiniV3_Black_S.swf" flashvars="&CuPlayerFile=/videos/abc.flv&CuPlayerImage=/videos/001010101.jpg&CuPlayerWidth=1280&CuPlayerHeight=700&CuPlayerAutoPlay=false&CuPlayerAutoRepeat=false&CuPlayerShowControl=ture&CuPlayerAutoHideControl=false&CuPlayerAutoHideTime=5&CuPlayerVolume=80&CuPlayerGetNext=false&IsAutoPlay=0" quality="high" bgcolor="#000000" name="simplevideostreaming" align="middle" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

 

Attribute:

Src:

File Path

Flashvars:

Passing parameters to swf on an HTML webpage

Autostart:

Whether the audio or video files are automatically played after being downloaded. True: automatic playback

Loop:

Whether or not audio or video files are cyclically and cyclically. When the attribute value is a positive integer, the number of cycles of the audio or video file is the same as that of the positive integer; when the attribute value is true, the audio or video file loops;

Hidden:

Specifies whether the control panel is displayed. The default value is false. If the value is true, the control panel is displayed.

Starttime:

Starttime = mm: ss (minute: Second), specifies that the audio or video file is played from the specified time.

Volume:

Volume = an integer between 0 and, indicating the volume of the audio or video file. If not defined, the system settings are used.

Height, width:

A positive integer or percentage in pixels. This attribute specifies the height and width of the control panel.

Name:

Object Name

Title:

Prompt name

Controls:

Controls the appearance. Optional values: console, smallconsole, playbutton, pausebutton, stopbutton, and volumelever.

Console: normal panel;
Smallconsole: small panel;
Playbutton: only the playback button is displayed;
Pausebutton: only the pause button is displayed;
Stopbutton: only the stop button is displayed;
Volumelever: only the volume adjustment button is displayed.

Align:

Specifies the alignment of the control panel and objects in the current row. Optional values: top, bottom, center, baseline, left, right, texttop, middle, absmiddle, and absbottom 

Center: center the control panel;
Left: the control panel is left;
Right: right of the control panel;
Top: Align the top of the control panel with the top of the highest object in the current row;
Bottom: the bottom of the control panel is aligned with the baseline of the object in the current row;
Baseline: Align the bottom of the control panel with the baseline of the text;
Texttop: Align the top of the control panel with the top of the highest text in the current row;
Middle: The middle Of The control panel is aligned with the baseline of the current row;
Absmiddle: the center of the control panel is aligned with the center of the current text or object;
Absbottom: the bottom of the control panel is aligned with the bottom of the text.

Palette:

Specify the foreground color and background color, palette = color (foreground color) | color (background color ).

Allowscriptaccess:

Allow script access

Allownetworkaccess:

Allow Network Access

Allowfullscreen:

Allow full screen

Type:

Plug-in type

Quality:

Audio or video quality

Pluginspage:

Set the location of the flash plug-in. If the browser is not installed, You can automatically download and install the plug-in.

 

Note: Some of the above attributes are for audio/video screens. If you want to load audio or video, you 'd better use the audio/video tag.

Summary:

The object element is used in IE browser, and the embed element is used in non-ie browsers. To support all browsers, you can combine the object and the embed tag for use, because if the object element is not displayed, the code between <object> and </object> is executed. As follows:

<Object classid = "clsid: d27cdb6e-ae6d-11cf-96b8-444553540000 "codebase =" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0 "width =" 550 "height =" 400 "align =" middle "> <param value =" sameDomain "/> <param value =" FlashVars.swf "/> <param value = "foo = happy2005 & program = flash & language = Simplified Chinese-China"/> <param value = "high"/> <param value = "# ffffff" /> <embed src = "FlashVars.swf" type = ""> </object>

 

 

Appendix:

Http://docs.oracle.com/javase/1.5.0/docs/guide/plugin/developer_guide/using_tags.html

 

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.