Solved

playing bgsound in IE and Netscape

Posted on 1999-01-14
1
265 Views
Last Modified: 2006-11-17
Is there a script to play the same bgsound in either IE and/or netscape?  
0
Comment
Question by:slyly
1 Comment
 
LVL 11

Accepted Solution

by:
kmartin7 earned 80 total points
ID: 1276931
<script language="JavaScript">
<!--
if ("Netscape" == navigator.appName)
document.write("<embed src=sound1.wav autostart=true loop=true hidden=true volume=75%>")
else
document.write("<bgsound src=sound1.wav loop=infinite>")
//-->
</script>


Kurt
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question