François de Dardel wrote:
Please don't scream that EMBED is evil !
What I am doing is
<EMBED SRC="BWV659.mid" AUTOSTART="false" LOOP="TRUE"
CONTROLS="SMALLCONSOLE" WIDTH="50" HEIGHT="15" TITLE="BWV 659">
Note the AUTOSTART="false"...
In the good old days of Netscape 3 or so, just <A
HREF="BWV659.mid">Musique</A> would open a small console in the active
page itself, based on the plug-in selected by the user. Today, it opens
the console in a new page, which is annoying. I have tried to find other
ways, but EMBED, albeit not official HTML, seems to work in all browsers
I know (provided some compatible plug-in for Midi is installed). The
only annoyance is that the console size of the PC is considerably larger
than that on the Mac, so it looks "cropped" when I use the dimensions
above.
I have tried <OBJECT> but can't mimic the AUTOSTART="false".
IE uses Object with an ActiveX control, which which I exclude. Also,
nesting an element within an Object presents an IE bug where IE sees the
them in series and plays both, whereas it should see them nested and
play the first it can and ignore any subsequent nested element, be it an
object or embed element.
The anchor method as suggested by Spartanicus, requires a click to start
the system's default player and opens a new window.
Many visitors will prefer to use their installed plugin player. There
are not that many players left any more. The most common are WMP, QT,
Real Player, Crescendo and Beatnik. It is advisable to not 'loop' the
tune, but to let the visitor replay with his console if he desires. To
accomodate them most adequately, 60x144 is best for console size. The
different players support different attributes, some are supported by
all and some cause problems with some players. It is advisable to not
'loop' the tune, but to let the visitor replay with his console if he
desires.
This is an example of the 'embed' method:
<embed src="URL" autostart="true" loop="false" height="60" width="144"
type="audio/x-midi">
</embed>
This is an example of the 'object' method:
<object data="URL" type="audio/x-midi" height="60" width="144">
<param name="save" value="true">
<param name="autostart" value="true">
<param name="loop" value="false">
</object>
--
Gus