You are here: Re: Background music not working?? « HTML « IT news, forums, messages
Re: Background music not working??

Posted by Harlan Messinger on 12/12/06 20:41

sally jo wrote:
> Here's the code I'm using:
>
> <script language="Javascript">
> if (navigator.userAgent.indexOf('MSIE') > -1)
> {
> document.write('<bgsound src="Norah Jones - Sunrise.mp3"
> loop="1">');
> } else {
> document.write('<embed src="Norah Jones - Sunrise.mp3"
> autostart=TRUE hidden=true loop="1">');
> }
> </script>

If it isn't IE, you use a non-existent BGSOUND tag and expect it to work?

>
> and here's the site:
>
> http://cc.usu.edu/~cassia/index.html
>
> Am I supposed to add that code to all the pages on the site?
>

Whatever does work, of course you have to have it on each page. When you
leave a page, you leave the whole page, audio included.

But if you include it on each page, it'll start from scratch each time
the user goes to a new page.

The real answer is: it annoys users greatly to have sound unexpectedly
coming out of their browsers. How do you know they're not in a cubicle
at the office, or at a meeting, or in a library? Or maybe they're
already listening to music, or watching TV or a movie. How do you think
they'll react to your decision that they should listen to your music
instead?

If you have a neat tune you think they *might* like to listen to, give
them link to click, so they can listen to it in their music player
instead of having it play in the browser.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация