On Sun, 2008-09-21 at 08:29 -0400, tedd wrote: > At 5:35 AM +0200 9/20/08, Michelle Konzack wrote: > >Am 2008-09-14 13:54:01, schrieb hce: > >> I've tried the object tag as Ash suggested, the object tag crashed > >> firefox): > >> > >> (1) If I open following audio.html directly from "Open File" > >> file:///home/webserver/audio.html, the embed tag works just fine, the > >> audio can play. The /home/webserver is the directory where all > >> applications audio.php and audio.mp3 are stored. > >> > >> (2) If I open from http://www.myweb.com/audio.php, the audio.mp3 does > >> not download to firefox. Nothing is played. > >> > > > <html> > >> <embed src="audio.mp3" autostart="1"></embed> > > > </html> > > > >It should be: > > > ><html> > ><embed src="audio.mp3" /> > ></html> > > > > No, the autostart attribute is fine, but should be set to true. > > <html> > <embed src="audio.mp3" autostart=true ></embed> > </html> > > The above will work for Netscape -- but for other browser (i.e., > IE's, Opera, el all) use: > > <html> > <bgsound src="audio.mp3" ></bgsound> > </html> > > Also you can add the attribute of "hidden=true" to both. > > Cheers, > > tedd > -- > ------- > http://sperling.com http://ancientstones.com http://earthstones.com > The bgsound tag is not in HTML 4 or XHTML 1 specifications, and I wouldn't recommend its use, ever. Like I've said before on this thread, the way to do this is with an embed tag inside an object tag, pretty much the same way you'd do it for a Flash movie. <object id="mediaplayer1" width="120" height="40" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"> <param value="sound.mp3" name="Filename"/> <param value="False" name="AutoStart"/> <param value="True" name="ShowControls"/> <param value="False" name="ShowStatusBar"/> <param value="False" name="ShowDisplay"/> <param value="True" name="AutoRewind"/> <embed width="120" height="40" autorewind="1" showdisplay="0" showstatusbar="0" showcontrols="1" autostart="0" src="sound.mp3" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" type="application/x-mplayer2"/> </object> I've kept the width and height in here, as the player displays the controls for the clip, but you can just omit the parts you don't want. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php