Create multimedia in Web pages such as audio, video, and Flash: Object element

Source: Internet
Author: User

<object> elements: It is primarily used to define multimedia in Web pages, such as audio, video, Java applets, PDF, ActiveX, and Flash. The object tag is paired, and you can use the PARAM tag inside the object tag. In addition to the PARAM tag in the object tag, other content is displayed when the browser does not support the object tag. Note that when HTML5 is not yet complete and popular, it is best to use Flash to play audio and video in Web pages to ensure maximum compatibility

Main optional properties of the OBJECT tag:

Type-a MIME type that specifies the data that appears in the file specified in the Data property

Width ---wide object

Height -Object Height

The URL of the object introduced by data, if there are data files that need to be processed by the object, specify the files with the database property

Border , defining borders around objects

Name- -the object pair has unique names (for use in scripting)

Vspace, defining the vertical blank of an object

Hspace , defining whitespace around objects horizontally

<!---Use the object element, the type, the Data property, and the Param element to play flash- -<Divstyle= "border:5px solid black; padding:5px; float:left;">  <Objectwidth= "$"Height= "$"type= "Application/x-shockwave-flash"Data= "clock.swf">    <paramname= "src"value= "clock.swf" />    <paramname= "Quality"value= "High" />  </Object></Div>

Some uses of the Param element within an object:

<!--control repetitions: "X" plays several times for a few repetitions; x=0, infinite loops.  -<paramname= "Playcount"value= "1"> <!--Control playback mode: x=1, open the webpage automatically play; x=0, press play key to play.  -<paramname= "Autostart"value= "0"> <!--Control playback switch: x=1, mouse click to control playback or pause state; x=0, disable this feature.  -<paramname= "Clicktoplay"value= "1"><!--Control Playback Screen: x=0, original size, x=1, half size, x=2,2 times size.  -<paramname= "Displaysize"value= "0"><!--control Toggle Fullscreen: x=1, allow switching to full screen, x=0, disable this feature.  -<paramname= "Enablefullscreen controls"value= "1"><!--control Volume: x=1, allow volume adjustment, x=0, disable volume adjustment.  -<paramname= "Showaudio controls"value= "1"><!--Control shortcut menu: X=1, allow to use right-click menu; x=0, disable right-click menu.  -<paramname= "Enablecontext Menu"value= "1"><!--Control Copyright information: x=1, display film and author information; x=0, do not display relevant information -<paramname= "Showdisplay"value= "1"> <!--whether to play automatically - <paramNAME= "AutoStart"VALUE= "-1"><!--adjust left and right channel balance, with old player code above - <paramNAME= "Balance"VALUE= "0"><!--whether the player can be artificially controlled -<paramname= "Enabled"value= "-1"> <!--Whether the context menu is enabled -<paramNAME= "Enablecontextmenu"VALUE= "-1"> <!--the file address to play -<paramNAME= "url"VALUE= "Http://1.wma"> <!--Play Count control, for integer - <paramNAME= "Playcount"VALUE= "1"><!--playback Rate control, 1 for normal, allow decimals, 1.0-2.0 - <paramname= "rate"value= "1"><!--Control Settings: Current position - <paramname= "CurrentPosition"value= "0"><!--Control Settings: Current Tag - <paramname= "Currentmarker"value= "0"><!--Show Default Frames - <paramname= "Defaultframe"value=""><!--script Command settings: whether to invoke URLs -<paramname= "Invokeurls"value= "0"> <!--script command settings: called URL -<paramname= "BaseURL"value=""> <!--whether to stretch proportionally -<paramname= "Stretchtofit"value= "0"> <!--The default sound size 0%-100%,50 is 50% - <paramname= "Volume"value= " the"><!--is muted -<paramname= "Mute"value= "0"> <!--player display mode: full display all; Mini is the most simplified; None does not show playback control, only the video window is displayed; Invisible all do not display -<paramname= "Uimode"value= "Mini"><!--if 0 allows full screen, it can only be viewed in the window -<paramname= "Windowlessvideo"value= "0"><!--start playback if auto fullscreen -<paramname= "fullscreen"value= "0"> <!--whether to enable the error notification report -<paramname= "Enableerrordialogs"value= "-1"> <!--Sami style -<paramname= "Samistyle"value> <!--Subtitle ID -<paramname= "Samifilename"value>

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.