PDA

View Full Version : Background Sound



visionrmd
09-02-2005, 07:40 PM
I've been trying to get Background Sound on my MM5 store, loaded the following in Global Header:
<BGSOUND src="http:xyz"> loop=100
But I get nothing! :mad:

Any help will be greatly appreciated.

howard
09-03-2005, 12:10 AM
Visionrmd,

Might be helpful to give us a little more information. Usually that means posting a link to the page you are having problems with, so we can check the source code. Some post a link to a temporary location where they are testing the page in some subdirectory. Your choice, but I think you'll get more response. Also, you said "but I get nothing" but you may wish to also say what else you have tried. Here is my attempt to answer your question.

Assuming the code you posted ( <BGSOUND src="http:xyz"> loop=100 ) is abbreviated, not "http:xyz" of course, but the full path, you might try putting the > symbol after the loop instruction, and, it's good practice to place quote marks, " ", on either side of the numeric expression. Thus done, it would read:
<BGSOUND src="http:xyz" loop="100">

That works with some browsers, but you need this for others:
<embed src="http:xyz" autostart="true" loop="100"></embed>

As if that were not enough, because putting both tags in the head may cause conflicts in some browser versions, you really need all this in the head:
<embed src="http:xyz" autostart="true" loop="100"></embed>
<noembed>
<bgsound src="http:xyz" loop="100">
</noembed>

Wow, what a pain! Now I ask you, why do you want background music? Most here will probably tell you, and some will be able to quote the studies, although background music on a web page may appeal to some, most surfers of the web don't like it and will leave the site and go elsewhere.

Personally, I would like to be given the option to play the music or not, by way of a clickable text reference to the music, or, at least the option to turn the music off (somewhere near the top of the page, please).

That's my two cents worth.

Howard

wildjokerdesign
09-03-2005, 10:02 AM
Just like in a real mall... musak! :)

Howard's code should work for you but I agree with him that if this is an on-line store it may not be a good idea to do it. It could possibly drive away potential customers. I have only used background music on one site I have developed and it was at the request of the owner and the fact that the site is one that most the users would not mind the music. Even with that it was only used on the front page and no where else in the site. By putting your music in the header of your store it means that the user is going to have to listen to the same song over and over again. Heck I even get irritated if I here a song on the radio more then once in an 8 hour period. :)

howard
09-03-2005, 10:32 AM
Heck I even get irritated if I here a song on the radio more then once in an 8 hour period.Amen to that, especially those overplayed 60's and 70's hits! The other poster last week had Beethoven's 5th on his site for 'soothing' background music while shopping.

SJP
09-03-2005, 06:58 PM
it's good practice to place quote marks, " ", on either side of the numeric expression.

It's just a convention. I mostly observe that practice, but not always and the W3C validator doesn't complain if you don't. My understanding is that quotes are only needed when there are embedded spaces or to signify 'empty'.

SJP

howard
09-04-2005, 12:51 AM
SJP,

You are probably right. I just got in the habit of doing it because I guess I was too lazy to learn which ones needed it and which ones did not in order to validate. I think it's probably characters such as % that really need it. But, again, I have not taken the time to learn, I just do it automatically now.

Howard

SJP
09-04-2005, 03:40 PM
SJP,

You are probably right. I just got in the habit of doing it because I guess I was too lazy to learn which ones needed it and which ones did not in order to validate. I think it's probably characters such as % that really need it. But, again, I have not taken the time to learn, I just do it automatically now.

Howard

No, it's not that you were too lazy. More like you weren't neurotic enough to care.

SJP

howard
09-05-2005, 07:17 AM
No, it's not that you were too lazy. More like you weren't neurotic enough to care.
LOL

And I thought I was plenty neurotic!

Howard

Andromeda
10-04-2005, 12:53 AM
lol... you guys are funny..

oh btw.. welcome aboard