PDA

View Full Version : How to place audio on a page


benlyboy
10-08-2003, 11:38 PM
I am working on a page that will be used to display pictures that are on a cd kinda like a photo album. This is not a web page as such.
I would love to add a audio description of the pictures so that when a thumb nail is clicked, not only will a large picture appear but the audio will start....

it really only needs to work with ie as this is what i use

I have never used audio in any way so i have no idea where to start and all my books are on a boat somewhere between NZ and the US......

So if someone could post a code that would start an audio wav file as part of a function, I would be very very greatful

thanks all

Willy Duitt
10-09-2003, 04:42 AM
Try this:

<HEAD>
<script type="text/javascript">
function playWav() {
document.write('<EMBED SRC="MYWAV.wav" HIDDEN="TRUE" AUTOSTART="TRUE" LOOP="FALSE" VOLUME="100%">');
}
</script>
</HEAD>

<BODY>
<a href="#" onClick="javascript:playWav();"><img src="MYTHUMB.jpg"></a>

.....Willy

benlyboy
10-09-2003, 03:05 PM
mmm don't know what is going on, but when i tryed this on a test page. All that happend is that the link disappeared no sound at all. I made the wav file using window's sound recorder...a file made this way should be ok shouldn't it..???

benlyboy
10-09-2003, 03:32 PM
Oh just tryed it on my wife's computer and it does work on it. Guess there is a problem with my system.... have checked the internet setting and they seem ok so not sure what is going on.

But thanks Willy i will have a play with it.

zoobie
10-12-2003, 08:58 PM
Check you speaker volume...Sometimes, mine gets reset to zilch. :eek: