View Full Version : Custom Music On/Off Button

02-15-2007, 07:53 PM

I want to add an mp3 to a website and have it play in the background. However, I want the player to be invisible and I want to have 2 buttons: one to turn the music on and one to turn it off. Most scripts I've found only have one button that do both, but I know I've seen sites that have text buttons that do what I want (of course I can't find an example now...).

If anyone has any information that can help I would greatly appreciate it.

Thank You!

02-17-2007, 12:29 AM

or just embed it.

02-22-2007, 08:31 PM
I'm not very good at Javascript at all. I get the idea, but I don't know how to write it or tweak it for what I want... that's why I'm asking here.

What I planned on doing was embedding an mp3 on the page. But instead of having the QuickTime player visible, I wanted to hide it and use Javascript to start the music and stop the music (with simple text - no buttons). Basically, the music is playing and when you click on "Stop" the music stops. Then when you click on "Start" the music starts playing.

02-23-2007, 05:41 AM