Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2012
    Posts
    140
    Thanks
    111
    Thanked 0 Times in 0 Posts

    Embedded MP3 player - Not displaying correctly in Chrome.

    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

    Code:
    <!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>

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,680
    Thanks
    0
    Thanked 230 Times in 225 Posts
    Hi there Eggweezer,

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

    It should be "type=audio/mpeg".


    coothead

  • Users who have thanked coothead for this post:

    Eggweezer (01-28-2013)

  • #3
    Regular Coder
    Join Date
    May 2012
    Posts
    140
    Thanks
    111
    Thanked 0 Times in 0 Posts
    That was it for sure. Thank you very much Coothead.

  • #4
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,680
    Thanks
    0
    Thanked 230 Times in 225 Posts

    No problem, you're very welcome.


    coothead


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •