![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Here's the code I'm using: Am I supposed to add that code to all the pages on the site? |
#3
| |||
| |||
|
|
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 |
|
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? |
#4
| |||
| |||
|
|
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. |
#5
| |||
| |||
|
|
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. |
#6
| |||
| |||
|
|
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? |
![]() |
| Thread Tools | |
| Display Modes | |
| |