I am trying to create a web based scorecard for a charity games night. Players images will be used to keep track of scores/turns. When a player "dies" I want to be able to click on their face, and replace it with a comedy death pic.
So, I started by using
$("#infoToggler").click(function() {
$("#infoToggler img").toggle();
In the header, and then, in each character box, used
<td>
<div id="infoToggler"> <img src="PLAYER1.jpg" /> <img src="Player1dead.jpg"
style="display:none"/>
</div>
<br>
<input size="9" type="text"> </td>
obviously changed for each character. This is run off a local machine, and the images are only 120px, so loading time's not an issue.
No training, this is literally pick-n-stich coding, so I could really do with a hand. Am I missing something bleeding obvious? Do I need to set up a code for each of 10 players? Help much appreciated!