cuco Posted December 3, 2004 Posted December 3, 2004 Hi guys my site is Empresas Milanes I just started designing it. I was testing the Home button which is a rollOver button. I wanted it to play a small hammer sound (.wav format) when the user "MouseOver" it. I currently use Mozilla Firefox and nothing happens. But using IE when the user "MouseOver" the button QuickTime player launches. So, how do I just make the sound play without launching QuickTime. Thanks for your help.. Quote
borfast Posted December 3, 2004 Posted December 3, 2004 There's no safe way of doing that, because playing a sound file requires an external plugin or application, which you can't be sure your visitors will have installed in their browsers. Also, many people find having sounds on a web page to be something really annoying, so I'd recommend you'd keep the buttons simple, with no sounds. Moving for organisation. Quote
allaboutmadonna.com Posted December 3, 2004 Posted December 3, 2004 I think that the best solution is to use flash ? Quote
cuco Posted December 3, 2004 Author Posted December 3, 2004 I guess I will use flash to create the buttons, but for now I will keep it simple. Do you know any good tutorials for making Flash buttons? Thanks for you help, Cuco Quote
chuckmalani Posted December 3, 2004 Posted December 3, 2004 try something like this.... >javascript: <script> function PlaySound(url) { document.all.sound.src = url; } </script> >html: onMouseOver="PlaySound('my.wav')" good luck, chuck Quote
borfast Posted December 4, 2004 Posted December 4, 2004 Chuck, doesn't that make the sound play continuously and all the time (even if the mouse isn't over the button)? Anyway, I believe that's IE specific, meaning it will not work with any other browsers. I could be wrong, though. I never used sounds on my web pages, so I'm not 100% sure about this. Quote
allaboutmadonna.com Posted December 4, 2004 Posted December 4, 2004 I guess I will use flash to create the buttons, but for now I will keep it simple. Do you know any good tutorials for making Flash buttons? Thanks for you help, Cuco actionscript.org or flashkit.com Thumbs Up Quote
chuckmalani Posted December 5, 2004 Posted December 5, 2004 i forgot a line when i copied and pasted into the window. have a look at this: http://www.chuckandmelissa.com/sound.htm ><html> <bgsound id="sound"> <script> function PlaySound(url) { document.all.sound.src = url; } </script> <body> <a href="#"><img src="images/news.jpg" onMouseOver="PlaySound('sounds/news.wav')" /></a> <br /> <a href="#"><img src="images/butters.jpg" onMouseOver="PlaySound('sounds/butters.wav')" /></a> </body> </html> Chuck, doesn't that make the sound play continuously and all the time (even if the mouse isn't over the button)?no Anyway, I believe that's IE specific, meaning it will not work with any other browsers. I could be wrong, though. I never used sounds on my web pages, so I'm not 100% sure about this. yes, it is IE specific. Quote
Beck Posted December 20, 2004 Posted December 20, 2004 I'm using Flash Voice Buttons. It's the most powerful tool. Putting any sound or voice message to your website never been so easy. A lot of button styles and the main thing is that all of the internet surfers can play sounds without any extra downloads or plugins. I got it from: http://www.reutera.com/Flash-Voice-Buttons/ Quote
chuckmalani Posted December 31, 2004 Posted December 31, 2004 I'm using Flash Voice Buttons. It's the most powerful tool. Putting any sound or voice message to your website never been so easy.A lot of button styles and the main thing is that all of the internet surfers can play sounds without any extra downloads or plugins. I got it from: http://www.reutera.com/Flash-Voice-Buttons/ <{POST_SNAPBACK}> do you have an example of a site which you've implemented them on? your link looks like the product itself. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.