PDA

View Full Version : Embedding mp3s in XHTML Strict



Jessweeee♪
04-13-2008, 07:11 PM
I would need to use object tags instead of embed, yes? Problem is I just can't get it to work D:

This is pretty much what I have:

<object src="file.mp3" type="audio/mpeg">
<param name="autostart" value="false" />
</object>


Can someone tell me what I'm doing wrong :kaodizzy:

Krelian
04-13-2008, 07:54 PM
Maybe it works if you use this:
<object type="audio/mpeg" width="200" height="50" data="file.mp3">
<param name="src" value="file.mp3" />
<param name="filename" value="file.mp3" />
<param name="type" value="audio/mpeg" />
Error text
</object>

Jessweeee♪
04-13-2008, 08:15 PM
Ooh, that worked, thanks!

Krelian
04-13-2008, 08:47 PM
You're welcome :bigsmile: