User Profile
Collapse
-
Could you please give an example? -
-
This is the code so far but every time i click it still shows a red counter.
...Code:var whoseTurn = 1 playerChecker = new Image() playerChecker.src = "redCounter.jpg" if(whoseTurn == 1){ playerChecker.src = "redCounter.jpg" } else if(whoseTurn == 2) { playerChecker.src = "yellowCounter.jpg" } functionLeave a comment:
-
Cheers for that. I have made that change.
How would i now go about changing "blank5" src to "redCounter " but only if "blank6" src was "redCounter "; And "blank4" src to "redCounter " only if "blank5" src was "redCounter " etc.... within the same function?Leave a comment:
-
<html>
<head>
<script language ="Javascript">< !--
function changeimage(){
if(document.get ElementById('bl ank6').src = "whiteCounter.j pg") {
document.getEle mentById('blank 6').src = "redCounter.jpg ";
}}
//-->
</script>
</head>
<body>
<table border="0">
<tr>...Leave a comment:
-
Apologies my above post was ambigious. What i meant is that i need to create two players. One player is assigned one image say red and the other is assigned another called yellow.
There are 49 different white images. How can alternate between the two players so when player 1 clicks an image it turns to red and when player 2 clicks an image it turns to yellow?Leave a comment:
-
Swapping between images
How can i swap between two images each time the user clicks. The user can should only be allowed to click 49 times. -
place images on top of other images in a collumn.
I have made a collumn 7 rows deep where i click an arrow at the top of the column and then a red counter appears in the bottom cell of the collumn.
I wish to make this collumn like a connect 4 collumn in the sense that every time i click the arrow and a red counter image replaces a white counter image. And these red Counters build on top of each other.
No activity results to display
Show More
Leave a comment: