<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0047)http://www.cavalierwebdesign.com/mines/mine.htm -->
<HTML><HEAD><TITLE>mines</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK
href="mine_files/mine.css" type=text/css rel=StyleSheet>
<SCRIPT src="mine_files/mine.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript>
var objGame;
var MAX_ROWS = 10;
var MAX_COLS = 10;
var MAX_MINES = 10;
function updateMines() {
document.all['mines'].innerHTML = objGame.intMines - objGame.intFlags;
}
function updateTime() {
if(!objGame.boolGameOver) {
intGameTime++;
document.all['time'].innerHTML = intGameTime;
theTimer = window.setTimeout("updateTime();",1000);
}
}
function init(level) {
intGameTime = 0;
switch(level) {
case 1:
objGame = new mineGame(9, 9, 10);
break;
case 2:
objGame = new mineGame(16, 16, 40);
break;
case 3:
objGame = new mineGame(16, 30, 99);
break;
}
objGame.createBoard();
document.all['time'].innerHTML = intGameTime;
document.all['mines'].innerHTML = objGame.intMines - objGame.intFlags;
}
</SCRIPT>
<META content="MSHTML 6.00.2719.2200" name=GENERATOR></HEAD>
<BODY onload=init(1)>
<FORM id=mineGame name=mineGame>
<TABLE cellSpacing=0 cellPadding=0 align=center border=0>
<TBODY>
<TR>
<TD vAlign=top align=left width=200 height=240>
<DIV
style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FONT-SIZE: 12px; BACKGROUND: #cccccc; PADDING-BOTTOM: 3px; WIDTH: 200px; PADDING-TOP: 3px; FONT-FAMILY: monospace; HEIGHT: 240px">Time:
<DIV class=textBox id=time></DIV>Mines:
<DIV class=textBox id=mines></DIV>
<DIV class=menuOff id=newBeginnerGame
onmouseover="this.className='menuOn'" onclick=init(1)
onmouseout="this.className='menuOff'" align=left>New Beginner Game</DIV>
<DIV class=menuOff id=newIntermediateGame
onmouseover="this.className='menuOn'" onclick=init(2)
onmouseout="this.className='menuOff'" align=left>New Intermediate
Game</DIV>
<DIV class=menuOff id=newAdvancesGame
onmouseover="this.className='menuOn'" onclick=init(3)
onmouseout="this.className='menuOff'" align=left>New Advanced
Game</DIV></DIV></TD>
<TD vAlign=center align=left width=450 height=240>
<DIV
style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; FONT-SIZE: 12px; BACKGROUND: #cccccc; PADDING-BOTTOM: 3px; WIDTH: 475px; PADDING-TOP: 3px; FONT-FAMILY: monospace; HEIGHT: 240px">
<DIV id=mineBoard></DIV></DIV></TD></TR></TBODY></TABLE></FORM></BODY></HTML>
刘良运
- 粉丝: 77
- 资源: 1万+
最新资源
- ANSYS Fluent 算例,汽车管带式换热器模拟
- SpringBoot框架项目,集成SpringBoot、Mybatis、Druid、Mapper、PageHelper、Redis、Shiro、Swagger2、Log4j2等技术.zip
- 非常好的精通开关电源设计教程100%好用.zip
- calibration-occ.7z
- springboot287基于Springboot+Vue校园图书交易平台的设计与实现-毕业源码案例设计.zip
- 测试基础,APP,WEB自动化
- springboot084基于Springboot+Vue的论坛网站毕业源码案例设计.zip
- OTA升级源码,可直接编译
- 高校毕业生离校管理系统的 SpringBoot 代码探索之旅与技术前沿开拓
- Spring+SpringMVC+MyBatis+Mysql 销售管理系统毕业设计.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0