embed methods

P

Philip WATTS

Hi,
I am trying to use the onMouseover event to trigger the playing of a small
sound file. I know that I need to embed the file and guess that I need to
use document.embed(), but what method can I use to actually trigger the
playing of the file?

Many thanks

Phil
 
M

Martin Honnen

Philip said:
Hi,
I am trying to use the onMouseover event to trigger the playing of a small
sound file. I know that I need to embed the file and guess that I need to
use document.embed(), but what method can I use to actually trigger the
playing of the file?

That depends on the plugin that is used to play the sound file
 
G

George Ziniewicz

Philip WATTS said:
Hi,
I am trying to use the onMouseover event to trigger the playing of a small
sound file. I know that I need to embed the file and guess that I need to
use document.embed(), but what method can I use to actually trigger the
playing of the file?

I don't know if its kosher or optimal, and I only needed it to work in
IE, but I got it to work, a sound play function:

//----------------------------------

function soundPlay(s) {
document.all.soundID.src=s;
}

//----------------------------------



A sound embedded in the body:

<body>
<bgsound ID='soundID' src='' LOOP='1'>
..
..

And an event calling it:

<img id='pic1' src='lion.jpg'
onMouseDown="soundPlay('lion.wav');"
zin
-- http://www.zintel.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,099
Messages
2,570,626
Members
47,237
Latest member
David123

Latest Threads

Top