Help with <object>

Status
Not open for further replies.
I am helping a friend get his website to be HTML compliant, but I've run into a snag I can't seem to handle. Instead of using <embed> to play some background music (his website, his choice), I want to use <object>, since that's the right thing to do. So I changed
<embed src="music/key/night88v.mid" autostart="true" volume="100" loop="true" width="145" height="60">
to
<object data="music/misc/mimi_ed.mid" type="audio/mid" height="60" width="145">
</object>
The problems with this are that the MIDI doesn't loop, and that height and width are depreciated. I already made a style sheet for the page at http://uts.cc.utexas.edu/~olen/animehub/style.css that I can add to, or can just make a new one, but I'm a little fuzzy on what the correct syntax would be.
 

HitScan

Ars Tribunus Militum
2,523
Subscriptor++
The width and height are no big deal, you just make a class for it and assign them to it.

annoyassbackgroundnoise { width: 145; height: 60; }

and set the object to that class

<object class="annoyassbackgroundnoise" data="music/misc/mimi_ed.mid" type="audio/mid">

as for looping, is that a feature of MIDI files in general? (like a flag in the header data or something?) if it is you may ahve to edit the music file, not the tag.

Failing that, flog him with a garden hose until he give up on the background noise thing. :D

HitScan
 
Yeah, I've tried various <param>s but none of them seem to do it. Considering that there's plenty of other embedded content that people want to loop on their websites, I'm surprised that this isn't easier to do with <object>. Yet every site that I looked at that has some kind of looping media, be it a movie or audio file, uses <embed>, even when the rest of the page is W3C compliant. It's almost like it just can't be done with <object>, except that I have to think that the W3C SURELY made some sort of provision for it.
 
Status
Not open for further replies.