/    Sign up×
Community /Pin to ProfileBookmark

Is there something wrong with this code?

I recently decided to get rid of my embed tag because it’s depreciated (haha, I know I used the wrong word) and use an object, but I’m having a little trouble with it. It works well in Firefox, doesn’t work at all in Opera, and IE gives me an “activeX control” error because it’s being used in an “unsafe way,” so I can’t play it in IE, either. Is my code missing anything?

Also, how do I add a loop or get it to play automatically? I know how to do it using the embed tag, but I get validation errors if I put it in the object tag. Can I do it using CSS?

<object data = “12 Track 12.wma”></object>

Thanks to anyone who can help.

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@drhowarddrfineSep 24.2005 — iirc, IE doesn't handle <object> well. Of course, IE doesn't handle anything well. I'll check with this and get back.
Copy linkTweet thisAlerts:
@drhowarddrfineSep 24.2005 — [URL=http://www.howtocreate.co.uk/wrongWithIE/?chapter=Object+Tags]Just as I thought.[/URL]
Copy linkTweet thisAlerts:
@stacywacyauthorSep 24.2005 — Okay, thanks.

I might have to go back to the embed tag. Or is there a way to code it so if it doesn't render the object tag, then it'll render what's in the embed tag? In other words, I want to know if I can use both tags together, so that if IE doesn't acknowledge what's in the object tag, then it'll use the embed tag, but FF will still use the object tag?

Thanks.
Copy linkTweet thisAlerts:
@felgallSep 24.2005 — Try putting the tags in this order:

<object><embed></embed></object>
Copy linkTweet thisAlerts:
@stacywacyauthorSep 25.2005 — Thanks, I'll give it a try.
×

Success!

Help @stacywacy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...