Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is IE trying to download instead of playing bgsound?

Status
Not open for further replies.

afral

Technical User
Aug 27, 2002
56
US
I need to find out what the devil is wrong with this script. This script is telling Internet Explorer (IE) to download the mp3 instead of playing it in the background!

afral@juno.com

--------------------------------------------------
<script language=&quot;JavaScript&quot;

soundclip = &quot;sounds/dancewolf-22-24m.mp3&quot;;

if (navigator.appName == &quot;Netscape&quot;) {
if( navigator.mimeTypes[&quot;audio/mp3&quot;].enabledPlugin != null ){
tag = '<embed src = &quot;' + soundclip + '&quot; autostart=True hidden=True loop=1 type=audio/mp3 >';
document.write(tag);
}
}
else{
tag = '<bgsound src = &quot;' + soundclip + '&quot;>';
document.write(tag);
}
// --></script> Let freedom ring!
 
this isnt a frontpage problem
you should ask the guys in the javascript forum..
 
You are absolutely right! Sorry! What was I thinking? Please forgive. . . Let freedom ring!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top