Plug-in Parameters and the <OBJECT> Tag
The HTML examples in this chapter, and in most of this book, use the
<EMBED>
tag alone rather than showing an
<OBJECT>
tag wrapped around the
<EMBED>
tag. Like the
PLUGINSPAGE
parameter, the
<OBJECT>
tag is omitted to make the code examples shorter and easier to understand.
You will probably want to add the
<OBJECT>
tag to some--perhaps even all--of your Web pages, however. The process is described in detail in Basic Training: Putting QuickTime in a Web Page and for the most part it's very straightforward.
But now that you've had a chance to see the variety of plug-in parameters for QuickTime, it's probably a good idea to review the most important points and clear up some possible ambiguities.
These are the basic steps you need to take:
-
Add an
</EMBED>
tag as a marker after the
<EMBED>
tag.
-
Put the
<OBJECT>
</OBJECT>
tags around the
<EMBED>
</EMBED>
tags.
-
Insert the
HEIGHT
,
WIDTH
,
CLASSID
and
OBJECTCODEparameters inside
the
<OBJECT>tag.
-
Create a
<PARAM>
tag for every plug-in parameter in the
<EMBED>
tag.
These are two important points to remember:
-
Don't use
QTSRC
in the
<OBJECT>
tag. If your
<EMBED>
tag uses
SRC= "a.mov"
and
QTSRC="b.mov"
, combine them in a single
<PARAM>
tag:
<PARAM NAME="src" VALUE="b.mov" >
.
-
Don't create
<PARAM>
tags for
HEIGHT
or
WIDTH
. They go inside the
<OBJECT>
tag.
Here are some tips to help you resolve issues that some people have found confusing:
-
Pass the
HIDDEN
parameter inside a
<PARAM>
tag, even though it's technically a browser parameter, not a plug-in parameter.
-
If your HTML includes a
TARGET
parameter, it needs its own
<PARAM>
tag; but if the the target is part of a URL, it doesn't need one.
For example
HREF="url" TARGET="frame"
becomes
<PARAM name="href" value="url">
<PARAM name="target" value="frame">
whereas
HREF="<url> T<frame>"
becomes
<PARAM name="href" value="url T<frame>" >
-
If there's an equal sign (=), you need a separate
<PARAM>
tag. All the values to the right of an equal sign can be passed in a single
<PARAM>
tag.
If you follow these guidelines, you should be able to construct a valid
<OBJECT>
tagset around any
<EMBED>
tag.
|