Most of the multimedia on the web is done as Shockwave or Flash movies using the authoring software from Macromedia. If you want to embed a Shockwave multimedia presentation you need to use both the <object> tag and the <embed> tag since not all browsers support the W3C standard.
In the following example, the name of the Shockwave being inserted is "tahdah.dcr" and the field it is being set against is the #CCCC00:
width="320" height="240" align="absmiddle" border="0" name="tahdah.dcr">
The safest way to get the code right is to cut-and-paste the latest version of this long code into your page. Do not use the version on this page since it has color and other codes inserted. Go to Macromedia's page about embedding Shockwave for the code. I think it is best to paste the code from Macromedia rather than relying on code inserted by one of the html editors such as Dreamweaver or FrontPage, so that you have the latest, updated version. Your html editor may be six months or a year old.
What does it all mean? (It is worth knowing so that if your cut-and-paste effort does not work you can diagnose what is wrong.)
The first half of the code (shown here in blue) is the <object> tag authorized by W3C and used by Explorer browsers. The "classid" is the identification of the class, the sort of object being inserted. The "codebase" tells where the class is defined. Note that in the example above the code refers to a Shockwave made in Director 7 as the version. Next the code defines the width and height of the Shockwave, which generally should be limited to this 320 x 240 size to minimize file size. Like attributes for an image, there is an alignment (in this case "absolute middle") and then a source or "src" with the name of the file.
The parameter name tells the type of object (Shockwave, Flash, etc.) that is being inserted and the name of the file. Other parameters may define details about what you are doing. The example above defines a background color against which the Shockwave is displayed. Parameters for a Flash movie might define the quality of display or the alignment. See Macromedia's page about paramaters for Shockwave and paramater attributes for Flash to read more details.
Next you have to repeat much of the code with the <embed> tag for Netscape browsers. In the example above, the <embed> coding is shown in pink.
Finally, you close both the </embed> and </object> tags, taking care as you always do to "nest" the tags, that is, to close first whatever tag you opened first.
And how will you audience see your multimedia display? Be sure that somewhere on the page you include a link to Macromedia where your viewer can download the free Shockwave or Flash player. Or link them to Apple QT to download the free QuickTime player.
Adding QuickTime movies is very similar. However, the classid and parameters will differ. Go to the QuickTime page at http://www.apple.com/quicktime/authoring/embed.html to see what attributes Quicktimes uses with the >embed< tag.
Copyright by dwang, 1999. All rights reserved.