Solved

Preload sound

Posted on 2001-07-03
6
569 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
  • 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now