Basic embed syntax and basic English syntax
(1) Basic Syntax: embed src = url Description: embed can be used to insert various multimedia files in the format of Midi, Wav, AIFF, AU, MP3, etc, netscape and the new version of IE support. The url is an audio or video file and its path, which can be a relative or absolute path. Example:
<embed src="your.mid">
(2) attribute settings: 1. automatic playback: Syntax: autostart = true, false description: This attribute specifies whether audio or video files are automatically played after download. True: The music file is automatically played after the download; false: The music file is not automatically played after the download. Example:
<embed src="your.mid" autostart=true><embed src="your.mid" autostart=false>
2. loop playback: Syntax: loop = positive integer, true, false description: This attribute specifies whether or not the audio or video files are cyclically and cyclically. When the property 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 property value is true, the audio or video file loops; when the property value is false, audio or video files are not circulating. Example:
<embed src="your.mid" autostart=true loop=2><embed src="your.mid" autostart=true loop=true><embed src="your.mid" autostart=true loop=false>
3. panel display: Syntax: hidden = ture, no description: This attribute specifies whether the control panel is displayed. The default value is no. True: Hide the Panel; no: Display Panel. Example:
<embed src="your.mid" hidden=ture><embed src="your.mid" hidden=no>
4. Start Time: Syntax: starttime = mm: ss (minute: Second) Description: This attribute specifies the start time of the audio or video file. If it is not defined, it is played from the beginning of the file. Example:
<embed src="your.mid" starttime="00:10">
5. volume size: an integer between volume = 0 and. This attribute specifies the volume of an audio or video file. If not defined, the system settings are used. Example:
<embed src="your.mid" volume="10">
6. Container properties: Syntax: height = # width = # Description: The value is a positive integer or percentage, in pixels. This attribute specifies the height and width of the control panel. Height: the height of the Control Panel; width: the width of the control panel. Example:
<embed src="your.mid" height=200 width=200>
7. container unit: Syntax: units = pixels, en Description: This attribute specifies the unit of height and width to pixels or en. Example:
<embed src="your.mid" units="pixels" height=200 width=200><embed src="your.mid" units="en" height=200 width=200>
8. Appearance setting: Syntax: controls = console, smallconsole, playbutton, pausebutton, stopbutton, and volumelever Description: This attribute specifies the appearance of the control panel. The default value is console. Console: normal Panel; smallconsole: smaller panel; playbutton: show only the playback button; pausebutton: show only the pause button; stopbutton: show only the stop button; volumelever: only the volume adjustment button is displayed. Example:
<embed src="your.mid" controls=smallconsole><embed src="your.mid" controls=volumelever>
9. Object name: Syntax: name = # Description: # indicates the object name. This attribute is used to name an object so that other objects can use it. Example:
<embed src="your.mid" name="sound1">
10. description text: Syntax: title = # Description: # It is the description text. This attribute specifies the description of an audio or video file. Example:
<Embed src = "your. mid" title = "First Song">
11. foreground color and background color: Syntax: palette = color | color Description: This attribute indicates the foreground color and background color of the embedded audio or video file. The first value is the foreground color, the second value is the background color, separated by | in the middle. Color can be an RGB color (RRGGBB), a color name, or a transparent (transparent ). Example:
<embed src="your.mid" palette="red|black">
12. align: Syntax: Description of align = top, bottom, center, baseline, left, right, texttop, middle, absmiddle, and absbottom: this attribute specifies the alignment between the control panel and the objects in the current row. Center: center of control panel; left: center of control panel; right: right of Control Panel; top: Align the top of control panel with the top of the highest object in the current row; bottom: align the bottom of the control panel 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: Align the middle of the control panel with the baseline of the current row; absmiddle: align the center of the control panel with the center of the current text or object; absbottom: Align the bottom of the control panel with the bottom of the text. Example:
<embed src="your.mid" align=top><embed src="your.mid" align=center>