Help with adding sound to a picture... (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


cooleyvol -> Help with adding sound to a picture... (4/11/2001 19:00:00)

I have some pictures that I use as buttons. They arent hover buttons, just pix that I have hyperlinked. I want to play a sound when someone clicks on one of these pix. I have the sound file already and just want to add it to these pictures for when someone clicks on them. Can you help me??


Cooley





Da New Guy -> RE: Help with adding sound to a picture... (4/12/2001 20:45:00)

I'm not sure if this is what you are looking for but you can try it. Here is the code I pulled from one of my pages:

<a href="yourpage.htm" onMouseOver="document.all.music.src='sound.wav'"><b>Link</b></a><p align="left">

In this example, you would replace "yourpage.htm" with whatever your page title is that you are linking to. If the picture doesn't link to a page, add the current pages url instead. I think leaving it blank would cause an error. Also replace "sound.wav" with whatever your sounds filename is. And finally you would replace the LINK with the src code to your image such as <img border="0" src="../images/myimage.gif" width="55" height="45"></b>
<p align="left"> or whatever it may be.


Also, the sound file must be in the same folder as the page in which it is used in. Or at least that is how I have to do it. I hopes this is what you were looking for. I also hopes it works for ya. If not, someone here will be able to fix you up. Good luck and have a good Easter.

DNG

[This message has been edited by Da New Guy (edited 04-12-2001).]





cooleyvol -> RE: Help with adding sound to a picture... (4/12/2001 13:43:00)

Thanks, but where does all of this go in the html of my page? What does it replace, if anything? Or does it go in the html with the picture html?


Cooley





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625