1 reply [Last post]
Fruitcake
Offline
Enthusiast
Perth, Australia
Last seen: 11 years 36 weeks ago
Perth, Australia
Timezone: GMT+8
Joined: 2004-04-12
Posts: 257
Points: 0

I got an email from someone regarding a page i was working on and he was saying that the media wasn't playing.
Here's the code:

<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="mp3/unsexually.mp3" />
</object>

It doesn't seem to be working in non-IE browsers.

Any ideas?

I am Dan, Dan I am.

Amn
Offline
newbie
Last seen: 15 years 23 weeks ago
Joined: 2004-06-28
Posts: 9
Points: 0

&lt;object&gt; tag in non-IE browsers

Very simple :

even though object tag is legitimate HTML4+ tag, IE (as always) decided to be smart and "improve" it. MIcrosoft, being formerly an ActiveX supporter, use the "clsid:" string to identify object as ActiveX control, the string following is a GUID. In other words, Microsoft uses object tag as an ActiveX control, and no other browser vendor on this planet supports it. WHich is not <object>'s fault.

If you need to know how it really works go to w3.org, and read HTML 4.01 specs, there you have all the attributes of the object tag without perky Microsoft feats.

F.e. "classid" is not even an attribute, use "type" instead. Macromedia Flash movies will be used as type="application/x-shockwave-flash".