Here's the JS:
var i, winloss, table, hw, mines, tdCounter, trCounter, tdClass;
// radios = document.getElementById("form").childNodes;
//table = document.getElementById("game");
var difficulty = "";
i=0;
winloss="";
setTimeout(table = document.getElementById("game"), 1000);
And the HTML:
<!DOCTYPE HTML> <html> <head> <title>Minesweeper</title> <script src="minesweeper.js" type="text/javascript"></script> <link rel="stylesheet" href="minesweeper.css" type="text/css" /> </head> <body> <div> <form id="form"> <input type="radio" name="radio" value="1" onclick="clearTable();newGame(1);" /><label> - BEGINNER</label> <input type="radio" name="radio" value="2" onclick="clearTable();newGame(2);" /><label> - EASY</label> <input type="radio" name="radio" value="3" onclick="clearTable();newGame(3);" /><label> - MEDIUM</label> <input type="radio" name="radio" value="4" onclick="clearTable();newGame(4);" /><label> - HARD</label> <input type="radio" name="radio" value="5" onclick="clearTable();newGame(5);" /><label> - EXPERT</label> </form> </div> <div id="div2"> <table id="game"> </table> </div> </body> </html>
Thanks for any help you can offer!

New Topic/Question
Reply


MultiQuote



|