| ART610
Introduction to Imaging and Digital Arts Seminar |
Timothy Nohe |
Background Sound/MusicMicrosoft Internet Explorer uses a BGSOUND tag to play a sound when the page loads. Other browsers use an EMBED tag. To have your page detect the reader's web browser and insert the appropriate tag into your page, add this script somewhere between the BODY... tags. Also, make sure that you replace SND/SQKLOOP.WAV; with an absolute or relative reference to a sound file (preferably .wav or .mid) on your own web server. |
Net Tutorials syllabus
if (navigator.appName.indexOf("Microsoft")>=0) {
// Bgsound tag for MS Internet Explorer...
document.write ('')
}else{
// ...Embed tag for everyone else.
document.write ('
')
}