music on IE but not FF

Discussion in 'HTML & Website Design' started by drew68, Jul 8, 2007.

  1. #1
    hey guys-
    i'm having problems getting music to play in FF. It plays in IE but not in FF.

    http://gi2online.com/ is the site.

    <bgsound src="01_Godsmack - Greed.wav" loop="-1"> is the code.

    why am i unable to hear it in FF?
     
    drew68, Jul 8, 2007 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You're using a proprietary HTML attribute, which is why it isn't working. You need to use the OBJECT element instead. I strongly suggest you read Bye Bye Embed by Elizabeth Castro (A List Apart) for information on how to do this.

    Also, I suggest you use a link to open a new window that will contain the page with your audio file (think of it as a "poor man's media player") so that people aren't bombarded by the music (good taste by the way) when the load the page and also don't have to reload it every time they open a new page.

    You can learn how to do this by reading The Perfect Popup by Ian Lloyd (Accessify.com).
     
    Dan Schulz, Jul 8, 2007 IP
  3. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #3
    thanks dan...interesting read...

    i got it to work but i can't make it loop around now....

    http://gi2online.com/index_test.html

    code:
    <object type="video/x-ms-wmv"
    data="01_Godsmack - Greed.wav" loop="-1" >
    <param name="src"
    value="http://www.gi2online.com/01_Godsmack - Greed.wav" loop="-1" » />
    <param name="autostart" value="true" />
    <param name="controller" value="true" />
    </object>
     
    drew68, Jul 8, 2007 IP
  4. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #4
    ......double post
     
    drew68, Jul 8, 2007 IP
  5. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try removing the loop from the OBJECT element, but leave it in the PARAM element.
     
    Dan Schulz, Jul 8, 2007 IP
  6. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #6
    well i have it like this now... and it doesn't work still...

    <object type="video/x-ms-wmv"
    data="01_Godsmack - Greed.wav" >
    <param name="src" value="http://www.gi2online.com/01_Godsmack - Greed.wav" loop="-1" />
    <param name="autostart" value="true" />
    <param name="controller" value="true" />
     
    drew68, Jul 8, 2007 IP
  7. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I can't find anything that will let you do that using a .wmv file. You might want to consider using Flash and a small dash of ActionScript for that instead.

    A real bummer (in your site's case), too.
     
    Dan Schulz, Jul 8, 2007 IP
  8. drew68

    drew68 Well-Known Member

    Messages:
    582
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #8
    oh that is a bummer...dang, thanks for your help...
     
    drew68, Jul 8, 2007 IP