Idocs Guide to HTML

Attributes for <EMBED ...>

Usage Recommendation
use it, but don't rely on it

STARTTIME and ENDTIME indicate how far into the sound to start playing and how far in to stop. These attributes are Netscape extensions. STARTTIME does not indicate a delay before playing. Playing starts immediately after the user hits the play button, or if you use AUTOSTART, as soon as the sound is downloaded.

Consider, for example, a MIDI file of the "1812over.mid". Suppose that instead of playing all 1 minute 7 seconds, we just want those dramatic few seconds with the cannon booms. We could use the following code to indicate to play only the eleventh through sixteenth seconds of the music. Go ahead and hit the play button:

this code produces this
    WIDTH=144 HEIGHT=60

Notice the format used to indicate the time. The two digits before the colon (":") indicate minutes, the two digits after indicate seconds. If you indicate a start or end time which is longer than the entire duration of the sound then Netscape gives an error message. STARTTIME and ENDTIME are only implemented in Netscape for Windows 95, Windows NT, and Macintosh.

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.