Solved

Preload sound

Posted on 2001-07-03
6
575 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…
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…

929 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

10 Experts available now in Live!

Get 1:1 Help Now