PDA

View Full Version : Need help with special volume button


KLakko
06-12-2012, 09:10 AM
Hi :)

I have a site and when you enter it music starts playing, it also has an off button. But what I would like to have is a button that says MUSIC OFF and when it's clicked it turns the volume up.

I have 2 music files; one with normal volume and one with 25% volume. My idea was to have both of them start playing (both on loop) but the one with normal volume muted and the MUSIC OFF button would unmute the normale volume file.

Anyone who has ideas on how to do this?

davidj
06-12-2012, 11:32 AM
You could do this using flash or HTML5 (<audio> tag )

Also there is a JQuery library for such a task..

http://jplayer.org/