...

View Full Version : Embedded MP3 player - Not displaying correctly in Chrome.



Eggweezer
01-27-2013, 11:17 PM
I am trying to embed a mp3 sound file on my site, and it does work great in IE, but in not in Chrome. In Chrome, the "dashboard" does not display correctly. (Also, autostarts when it shouldn't).

I have attached the code if someone wouldn't mind taking a look. There is not much to it. I would apreciate it. Also you can see what I mean at my webpage (if you go between the 2 browsers). Thank you in advance.
http://drifthoppers.net/junk.html



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
<!--
#music{
height:14px;
font-size:14px;
padding-top:2px;
padding-bottom:0px;
float:right;
}
#l{
color:#003aa8;
font-size:12px;
font-style:italic;
font-weight:bold;
float:left;
padding-top:2px;
}
#r{
float:right;}
-->
</style></head>

<body>
<div id="music"><div id="l">Radio Advert&nbsp;&nbsp;</div>
<div id="r">
<embed src="sound/Tri-County2013Drags30.mp3" autostart="false" text="audio/mpeg" width="150" height="28"></embed>
</div></div>

</body>
</html>

coothead
01-28-2013, 08:37 AM
Hi there Eggweezer,

you have used "text=audio/mpeg" in your code. :eek:

It should be "type=audio/mpeg". ;)


coothead

Eggweezer
01-28-2013, 11:08 AM
That was it for sure. Thank you very much Coothead.:thumbsup:

coothead
01-28-2013, 02:15 PM
No problem, you're very welcome. ;)



coothead



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum