Solved

Preload sound

Posted on 2001-07-03
6
602 Views
Last Modified: 2008-02-01
  How do I preload a sound event that will be used for mouseover sound?
0
Comment
Question by:Bob Stone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 1

Accepted Solution

by:
sgopalan earned 100 total points
ID: 6250259
Netscape 3.0+ and MSIE 4.0+ allow using the embed tag.

<EMBED NAME="mySound" SRC="mySound.wav"
LOOP=FALSE AUTOSTART=FALSE HIDDEN=TRUE MASTERSOUND>

Once the sound is preloaded, Netscape has the option of using document.mySound.play() to play the sound.
With IE you might have to use something like
document.all['BGSOUND_ID'].src='mySound.wav'
with BGSOUND_ID additionally defined in
<BGSOUND id="BGSOUND_ID" LOOP=1 SRC="silence.wav">
where silence.wav is a silent sound file.
0
 
LVL 9

Author Comment

by:Bob Stone
ID: 6250431
   The page is framed and the sounds I want to play are on an inside page in main frame, can I preload on index or menu frame so that the play as soon as person does mouseover on that page?
0
 
LVL 1

Expert Comment

by:sgopalan
ID: 6250637
i believe u can.. just reference the page with the sound embedded in it using the regular frames heirarchy.
0
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
LVL 1

Expert Comment

by:sgopalan
ID: 6250686
i believe u can.. just reference the page with the sound embedded in it using the regular frames heirarchy.
0
 
LVL 1

Expert Comment

by:sgopalan
ID: 6250688
i believe u can.. just reference the page with the sound embedded in it using the regular frames heirarchy.
0
 
LVL 9

Author Comment

by:Bob Stone
ID: 6256605
Worked great!

Thank =o)
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

696 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