hello again.
thanks for your reply & your help. the easiest way to explain is im working on a tiebreaker page for a game like sorry!. the 71 was the total spaces it takes from start to home & the 5 was the points you got extra if still in your start when the game ended. i have since worked that out, ty. re: the little x... ill have to see i can fit the input box in the space alloted if at 7. i dont expect them to have to erase it, but good to know for future pages. 
the problem i seem to be having now is when player 1 picks a pawn color (blue, red, green or yellow) using a radio button, that same color pawn for player 2 needs to be disabled. now i have it working for blue but using the same concept for the other colors, i cant get it working. i have tried to seperate the functions, rename them, etc... it just doesnt make sence that it works for blue but not the others when the code is the same except the ids.
pasted below is my code. agian, any advice is appreciated.
thanks, nicole
--------------------
HTML Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>example</title>
<script type="text/javascript">
function showP1 (it, hide1, hide2, hide3, box) {
document.getElementById(it).style.display = "block";
document.getElementById(hide1).style.display = "none";
document.getElementById(hide2).style.display = "none";
document.getElementById(hide3).style.display = "none";
}
</script>
<script type="text/javascript">
function showP2 (it2, hide5, hide6, hide7, box) {
document.getElementById(it2).style.display = "block";
document.getElementById(hide5).style.display = "none";
document.getElementById(hide6).style.display = "none";
document.getElementById(hide7).style.display = "none";
}
</script>
<style type="text/css">
.divstyle
{
display: none;
}
</style>
<script type="text/javascript">
function hideB2(obj) {
document.getElementById(obj).style.visibility = "hidden";
}
function showB2(obj) {
document.getElementById(obj).style.visibility = "visible";
}
function hideG2(obj) {
document.getElementById(obj).style.visibility = "visible";
}
function showG2(obj) {
document.getElementById(obj).style.visibility = "visible";
}
function hideR2(obj) {
document.getElementById(obj).style.visibility = "visible";
}
function showR2(obj) {
document.getElementById(obj).style.visibility = "visible";
}
function hideY2(obj) {
document.getElementById(obj).style.visibility = "visible";
}
function showY2(obj) {
document.getElementById(obj).style.visibility = "visible";
}
</script>
</head>
<body>
<p>
<br />
<input type="radio" name="radio1" id=chooseB1 onclick="showP1('showBp1', 'showGp1', 'showRp1', 'showYp1', this); hideB2('chooseB2'); showG2('chooseG2'); showR2('chooseR2'); showY2('chooseY2');" /> Blue1
<input type="radio" name="radio1" id=chooseG1 onclick="showP1('showGp1', 'showRp1', 'showYp1', 'showBp1', this); hideG2('chooseG2'); showR2('chooseR2'); showY2('chooseY2'); showB2('chooseB2');" /> Green1
<input type="radio" name="radio1" id=chooseR1 onclick="showP1('showRp1', 'showYp1', 'showBp1', 'showGp1', this); hideR2('chooseR2'); showY2('chooseY2'); showG2('chooseG2'); showB2('chooseB2');" /> Red1
<input type="radio" name="radio1" id=chooseY1 onclick="showP1('showYp1', 'showBp1', 'showGp1', 'showRp1', this); hideY2('chooseY2'); showR2('chooseR2'); showG2('chooseG2'); showB2('chooseB2');" /> Yellow1</p>
<div class="divstyle" id="showBp1">Player 1 is Blue!</div>
<div class="divstyle" id="showGp1">Player 1 is Green!</div>
<div class="divstyle" id="showRp1">Player 1 is Red!</div>
<div class="divstyle" id="showYp1">Player 1 is Yellow!</div>
<hr>
<p>
<input type="radio" name="radio1" id=chooseB2 onclick="showP2('showBp2', 'showGp2', 'showRp2', 'showYp2', this)" /> Blue2
<input type="radio" name="radio1" id=chooseG2 onclick="showP2('showGp2', 'showRp2', 'showYp2', 'showBp2', this)" /> Green2
<input type="radio" name="radio1" id=chooseR2 onclick="showP2('showRp2', 'showYp2', 'showBp2', 'showGp2', this)" /> Red2
<input type="radio" name="radio1" id=chooseY2 onclick="showP2('showYp2', 'showBp2', 'showGp2', 'showRp2', this)" /> Yellow2</p>
<div class="divstyle" id="showBp2">Player 2 is Blue!</div>
<div class="divstyle" id="showGp2">Player 2 is Green!</div>
<div class="divstyle" id="showRp2">Player 2 is Red!</div>
<div class="divstyle" id="showYp2">Player 2 is Yellow!</div>
</body>
</html>
Bookmarks