Some Usage of embed and bgsound

Source: Internet
Author: User

the embed tag can insert multimedia files on the page, ending with/embed. Commonly used Flash files (SWF) and audio and video files (MP3, WMA, Avi, WAV, mid, RM, Ram, etc ).

Several common attributes of the embed tag are:
Src = file address, that is, the URL in the property.
Height = the height of the playback area, which can be a natural number or a percentage. However, Netease does not work well here.
Width = the width of the playback area, which is a natural number and can also be used as a percentage. However, Netease does not work well here.
Autostart = true or false: determines whether the music file is automatically played after it is downloaded. The default value is false. Invalid for some Flash files.
Loop = true or false, determines whether to play cyclically; you can also decide the number of loops with the natural number. Invalid for some Flash files.
Controls = set the control panel appearance when playing RM, MP3 and other files (invalid for flash), console (normal panel, default), controlpanel (streamlined panel) smallconsole (smaller panel), playbutton (show only the playback button), pausecutton (show only the pause button), stopbutton (show only the stop button), volumelever (show only the volume adjustment button) and imagewindow (only the player screen is displayed ).
Hidden = true or false determines whether the control screen is completely hidden.
Title = prompt message. It is displayed when you hover your mouse over the playing area.
Hspace = natural number, horizontal spacing from other documents.
Vspace = natural number, Vertical spacing from other documents.
Quality = set the playback quality. Low (the worst playback quality), medium (moderate playback quality), high (high playback quality, default), and best (excellent playback quality ).
Plugins = plug-in address. If no plug-in is required for playback on the machine, you can set the installation address here. The installed plug-in address is invalid.
Type = file type.
**************************************** ******************************
The bgsound mark can insert background music to the page, and does not need to end with/bgsound. Setting hidden to true when you use the embed tag also achieves the effect. Although this tag is the real background music, it is relatively less supported and is not easy to use.
Example:

<Bgsound src = http://www.happyfrog/images/pingan.mid loop =-1>

Src = is the file address (applicable to mid, MP3, and WMA, RM and SwF do not seem to work ).
Loop = number of loops.-1 indicates an infinite loop.
Note: Because the background music is completely invisible, referenceCodeInsert it to a visible text or image to copy it.

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/yizdream/archive/2004/06/24/25763.aspx

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.