spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column20


The EMBED Tag's Controls Attribute

Developer News
Mandrake Linux Founder Back, Virtually
Amazon: We're a Technology Company
Sun Expands MySQL With Closed Source

Navigator's Controls attribute determines the shape of the <EMBED> tag's control panel. The following table summarizes the different option values:

AttributeDescription
CONTROLS="console"Specifies the default control panel with a start button, a stop button, a pause button, and a volume lever. Use WIDTH="144" and HEIGHT="60".
CONTROLS="smallconsole"Specifies a much shorter control panel with a start button, a stop button, and a volume lever. Use WIDTH="144" and HEIGHT="15".
CONTROLS="playbutton"Specifies a much reduced control panel with only a play button. Use WIDTH="35" and HEIGHT="23". Usually used with the MASTERSOUND attribute (see below). Navigator 4.04 on Mac crashes if CONTROLS="playbutton".
CONTROLS="pausebutton"Specifies a much reduced control panel with only a pause button. Use WIDTH="35" and HEIGHT="23". Usually used with the MASTERSOUND attribute (see below).
CONTROLS="stopbutton"Specifies a much reduced control panel with only a stop button. Use WIDTH="35" and HEIGHT="23". Usually used with the MASTERSOUND attribute (see below).
CONTROLS="volumelever"Specifies a much reduced control panel with only a volume lever. Use WIDTH="74" and HEIGHT="20". Usually used with the MASTERSOUND attribute (see below).

The MASTERSOUND attribute lets you control a single sound track with multiple control panels, usually single-buttoned, as explained above. When combining several buttons to control a single sound file, you must follow certain rules:

  • Use the same NAME attribute on all buttons.
  • Only one button is tagged with MASTERSOUND.
  • The button tagged with MASTERSOUND must point to the sound file. Other may point to other files, but they must point to some files.

Here is a simple example that shows how to synchronize four different buttons to control a single sound track:

<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="3">
<TR><TD><EMBED SRC="aladdin.mid" WIDTH="35" HEIGHT="23" -->
     CONTROLS="playbutton" NAME="foobar" MASTERSOUND></TD>
<TD><EMBED SRC="xfiles.mid" WIDTH="35" HEIGHT="23" -->
     CONTROLS="pausebutton" NAME="foobar"></TD>
<TD><EMBED SRC="xfiles.mid" WIDTH="35" HEIGHT="23" -->
     CONTROLS="stopbutton" NAME="foobar"></TD>
<TD><EMBED SRC="xfiles.mid" VOLUME="50" WIDTH="74" HEIGHT="20" -->
     CONTROLS="volumelever" NAME="foobar"></TD></TR>
</TABLE>

Explorer's CONTROLLER attribute is similar to Navigator's CONTROL attribute. It specifies whether to display the control panel or not. Even if the control panel is not displayed, you can still control the media object by clicking the right mouse on it, and then selecting one of the menu options (bringing back the control, adding the digital display, or just running the sound track). Notice that the digital display can be added to any control panel by the same right clicking.

AttributeDescription
CONTROLLER="true"Specifies the default control panel with a start&pause button, a stop button, and a position lever. Use WIDTH="200" and HEIGHT="60".
CONTROLLER="false"Specifies no control panel. Use WIDTH="200" and HEIGHT="15". Try right-clicking the object where it is supposed to be placed. The popup menu allows you to bring back the controls and the digital control display.

http://www.internet.com

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Microsoft PDF: Top 10 Reasons to Move to Server Virtualization with Hyper-V
Microsoft PDF: Six Reasons Why Microsoft's Hyper-V Will Overtake Vmware
Microsoft Step-by-Step Guide: Hyper-V and Failover Clustering
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Microsoft PDF: Top 11 Reasons to Upgrade to Windows Server 2008
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
  PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
HP eBook: Guide to Storage Networking
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Crucial Triples Up With New Three-Channel DDR3 Kits · Meet the Finalists: Excellence in Technology Awards · Tealeaf Offers Insight to Mobile Customer Behavior


Created: May 31, 1998
Revised: May 31, 1998

URL: http://www.webreference.com/js/column20/control.html