Attribute for <EMBED ...>
CONTROLS = VOLUMELEVER | STOPBUTTON | PAUSEBUTTON | PLAYBUTTON | SMALLCONSOLE | CONSOLE

CONTROLS is another Netscape-only extension (MSIE has a similar attribute called CONTROLLER) . CONTROLS indicates what type of controls should be displayed for the sound object. Each type of control is best used with different values for the HEIGHT and WIDTH attributes, so we'll list the best value here.There are six possible values for CONTROLS.

Value Description Height Width
CONSOLE The default control. The browser should display a full-sized full set of controls: a start button, a pause button, a stop button, and a volume control (aka the "volume lever").

<EMBED 
SRC="../graphics/sounds/1812over.mid"
HEIGHT=60 WIDTH=144
CONTROLS=CONSOLE
>

gives us

60 144
SMALLCONSOLE The browser should display a set of controls which takes up less space. The controls displayed are the start button, the stop button, and the volume lever. The pause button is not displayed. SMALLCONSOLE takes up less vertical space than CONSOLE but is just as wide.

<EMBED 
SRC="../graphics/sounds/1812over.mid"
HEIGHT=15 WIDTH=144
CONTROLS=SMALLCONSOLE
>

gives us

15 144
PLAYBUTTON Only show the play button.

<EMBED 
SRC="../graphics/sounds/1812over.mid"
HEIGHT=23 WIDTH=35
CONTROLS=PLAYBUTTON
>

gives us

This value is usually used in conjunction with the MASTERSOUND attribute.

23 35
PAUSEBUTTON Only show the pause button.

<EMBED 
SRC="../graphics/sounds/1812over.mid"
HEIGHT=23 WIDTH=35
CONTROLS=PAUSEBUTTON
>

gives us

This value is usually used in conjunction with the MASTERSOUND attribute.

23 35
STOPBUTTON Only show the stop button.

<EMBED 
SRC="../graphics/sounds/1812over.mid"
HEIGHT=23 WIDTH=35
CONTROLS=STOPBUTTON
>

gives us

This value is usually used in conjunction with the MASTERSOUND attribute.

23 35
VOLUMELEVER Only show the volume lever.

<EMBED 
SRC="../graphics/sounds/1812over.mid"
HEIGHT=20 WIDTH=74
CONTROLS=VOLUMELEVER
>

gives us

This value is usually used in conjunction with the MASTERSOUND attribute.

20 74





About the Author
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.