departedmind Posted November 1, 2008 Share Posted November 1, 2008 Hi, i added a bg sound in my webpage but the sound does not play in Firefox, it plays in IE I tried keeping it inside head and also in body tag but does not work <bgsound src="images/bgsound.wav" loop="-1" /> Any help... thanks Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 1, 2008 Share Posted November 1, 2008 This code works in netscape browsers (ff) and all ie versions above 3.0 <embed src="images/bgsound.wav" autostart="true" loop="true" width="2" height="0"> </embed> Incidentallly why do you have the background music in the images folder? Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted November 2, 2008 Share Posted November 2, 2008 please don't even think about using bgsound! Make user click "play" directly to get some song to play. Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 2, 2008 Share Posted November 2, 2008 What if its a band website? Then it would make sense and even get the user into the bands mood or whatever Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted November 2, 2008 Share Posted November 2, 2008 Yes, have a Flash object that is embedded in the web page that lets uses select to pause, play and skip the songs. Looks better and at least it'll be more valid and user friendly. It's good to think of things this way... If it works in IE but not in FF, then it's wrong. Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 2, 2008 Share Posted November 2, 2008 The code i gave works in netscape browsers aand ff. Since most other browsers support what ff does then it should theoretically work in all browsers Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted November 2, 2008 Share Posted November 2, 2008 It's still bad to have something play in the background and the user have no control. I would prefer the option to select the play button. Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 2, 2008 Share Posted November 2, 2008 I guess it's really up to him Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted November 2, 2008 Share Posted November 2, 2008 I suppose... But if I visited that website and I was listening to my own music, then all of a sudden some other music came on I'd probably leave straight away. Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 2, 2008 Share Posted November 2, 2008 These are all excellent suggestions and ideas that he should take into account Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted November 2, 2008 Share Posted November 2, 2008 The code i gave works in netscape browsers aand ff. Since most other browsers support what ff does then it should theoretically work in all browsers schoolboy error... Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 2, 2008 Share Posted November 2, 2008 I meant to say netscape browsers and IE. Mb I typo'd. Hows everyone like my avatar btw? Quote Link to comment Share on other sites More sharing options...
dropfaith Posted November 3, 2008 Share Posted November 3, 2008 i agree with the non bgsound use a flash player even if it auto starts i like a way to turn it off so i can listen to my own music no matter what type of site it is Quote Link to comment Share on other sites More sharing options...
stublackett Posted November 3, 2008 Share Posted November 3, 2008 i agree with the non bgsound use a flash player even if it auto starts i like a way to turn it off so i can listen to my own music no matter what type of site it is I also agree, If a site or advert just starts playing music over the top of music I'm listening to it gets the "cross" treatment If your good with flash, give the user the option to play / pause the Music, Or just add a "Mute" button Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.