|
Posted by cassia on 12/12/06 21:32
Harlan Messinger wrote:
> 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?
I uploaded it again, it seems it didn't load correctly, but would that
code work? HTMLdog.com doesn't appear to have the code for adding
background music...This is for a class, and I just need to have an
"enhancement" so I thought I'd throw in music.
>
> >
> > 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?
I definitely agree...but like I said, it's just for a class. And I'm
not really sure what an "enhancement" entails....? Unless you've got
any ideas??
>
> 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.
Great idea, so is the code that they would click to link the same as if
I were linking to another image or page?
[Back to original message]
|