I have a button that's a picture of a speaker named "Sound". When someone clicks it, it will turn to the animation version of the speaker with a red circle and line through it over it and all game sounds should become muted.
If someone clicks it again, the speaker image should return to normal and the sounds of the game should become audible again but somehow my code is not working.
Button animations are:
Default: <img src="http://www.eliyahna.com/temp/soundon.png" border="0" />
Off: <img src="http://www.eliyahna.com/temp/soundoff.png" border="0" />
and the code is currently:
<img src="http://www.eliyahna.com/temp/capture3.jpg" border="0" />
Can anyone tell me why this isn't working or provide links to a helpful tutorial on the subject?
Thanks!!