macrae
Joined: 08 May 2006 Posts: 1
|
Posted: 05/08/06 - 04:00 Post subject: freewebs.com background music help |
|
|
Hello. I'm trying to set my web page (hosted at freewebs.com) to play background music, and to stop/start when visitors click on a "play/stop" image. I'm not that experienced at coding html, but I copied and edited a piece of code from another page that does exactly this. However, it won't work at my side though I edited out the differences. Could someone give me a few tips on how this is usually handled? Thanks.
|
|
sapien
Joined: 08 May 2006 Posts: 1
|
Posted: 02/01/07 - 13:36 Post subject: |
|
|
First things first, copying code partially will usually get you nowhere. Too many variables is both/either documents for this to work, so just don't do it, OK? Second, it's making an "on/off" command is not that difficult, but can be hard on a newbie. I'll try explaining, but you might still want to get someone more experienced to handle this for you. In a nutshell, you'll use the onClick command to change the state, like this:
 |
|