Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 641
  • Last Modified:

Preload sound

  How do I preload a sound event that will be used for mouseover sound?
0
Bob Stone
Asked:
Bob Stone
  • 4
  • 2
1 Solution
 
sgopalanCommented:
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
 
Bob StoneIT GuruAuthor Commented:
   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
 
sgopalanCommented:
i believe u can.. just reference the page with the sound embedded in it using the regular frames heirarchy.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
sgopalanCommented:
i believe u can.. just reference the page with the sound embedded in it using the regular frames heirarchy.
0
 
sgopalanCommented:
i believe u can.. just reference the page with the sound embedded in it using the regular frames heirarchy.
0
 
Bob StoneIT GuruAuthor Commented:
Worked great!

Thank =o)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now