View Full Version : How to play a Music/audio, when a button is clicked.

12-08-2008, 04:17 PM
I would like to play a Music or Audio, when a button or link is clicked.

Your tutorials, explains "Mouse over" actions.

Where to find "How to configure Mouse Click" events for colours / audio etc.,

Thanks & Regards


12-08-2008, 11:19 PM
Hi nfornana
Here http://www.vodahost.com/vodatalk/bluevoda-general-issues/17862-button-will-bring-media-player-page.html is an example of music presentation Naval showed me... take a look... Doug

12-10-2008, 03:23 AM
Thanks for the info


12-10-2008, 03:33 AM
if you dont want to use an iframe, then just ftp your file to the server using the ftp manager under tools. name your file short, no caps, no spaces, such as file1.wav
then use eithe a text link or an image to link your music file to the page. your link will look like this
www.yourwebsitename.com/file1.wav (http://www.yourwebsitename.com/file1.wav)

when someone clicks on this link the music will come up.

12-10-2008, 03:51 PM
Hey mrmagoo144
I have always utilized I-frames to present music selections..
My question is this...
If I ftp my MP3 file then link to it with a button or whatever will a player control come up on the page?~?~?.. (or do I have to enter the appropriate html to have the player?)..
And will your method make the page heavy..?~?~?
Thanks ... Doug

12-10-2008, 08:59 PM
if i was using a mp3 file i would go the iframe method of naval's, but with a wav file i would go my direction and the loadtime is not a factor as each page would have one file. i would use some graphics to hide the wav file such as a slide show of the song or the singer.
for the mp3 file the player coming up i believe would be your default media player. worth a try.

12-11-2008, 01:48 PM
Hey Thanks magoo144,
I know the I frames presentation works well.. and you can have control of the player set up... by placing this script "Before Tag'.. in the Media player HTML
<embed src="yoursong.mp3"
width="145" height="40" autostart="false" loop="FALSE">
Cheers ... Doug