<html>
<head>
<title>Sweep Mine Text-Edition v1.5 gama</title>
<meta http-equiv="Content-Type" content="text/html;">
<meta http-equiv="pragma" content="no-cache">
<style type=text/css>
body{font-size:11px;font-family: verdana;background-color:white}
#work td{
cursor:hand;
width:14px;
height:14px;
text-align: center;
font-family: verdana;
font-size:12;
font-weight: 652;
}
#demo td{
cursor:hand;
width:14px;
height:14px;
text-align: center;
font-family: verdana;
font-size:12;
}
#radio td{font-size:11px;}
#work{border:6 solid #646AA6;}
#tbs{width:10;height:10;cursor:hand;font-size:5px;}
button{font-family:verdana;font-size:11px;border:0;};
input{font-family:verdana;font-size:11px;border:0;};
a{cursor:hand;background-color:#ffffff;}
</style>
<!-- game design -->
<script language="JavaScript" type="text/javascript">
<!--
var str=''
var succ=0
var gameup=0
var gtime=0
function ini(){
gameup=0
succ=0
gtime=0
gintervalid=setInterval("tickTime()",1000);
str='<table id=work cellspacing=0 cellpadding=0 border=0 bgcolor=#DDDDDD onmousedown=click1()>'
for(var i=0;i<row.value;i++){
str+='<tr>'
for(var j=0;j<cell.value;j++)
str+='<td></td>'
str+='</tr>'
}
str+='</table>'
main.innerHTML=str
rand();
}
function tickTime()
{
showStatus();
gtime++;
}
function showStatus(){
var x,y,z
x=Math.floor(gtime%1000/100)
y=Math.floor(gtime%100/10)
z=gtime%10
jsq.innerText=100*x+10*y+z+' seconds'
}
function rand(){
var t=new Array(200)
var k=0
var f=0
for(var i=0;i<row.value;i++)
for(var j=0;j<cell.value;j++){
obj(i,j).fl=0
obj(i,j).flag=0
obj(i,j).a1=i
obj(i,j).b1=j
obj(i,j).isclicked=0
obj(i,j).rc=0//right click times
obj(i,j).innerText=' '
obj(i,j).style.borderLeft='1 solid '+k1.value
obj(i,j).style.borderTop='1 solid '+k2.value
obj(i,j).style.borderRight='1 solid '+k3.value
obj(i,j).style.borderBottom='1 solid '+k4.value
obj(i,j).style.backgroundColor=k5.value
}
for(i=0;i<Math.floor(row.value*cell.value/8);i++){
while(1){
f=0
var a=Math.floor(Math.random()*row.value*cell.value)+1
for(var j=0;t[j];j++)
if(a==t[j]){f=1;}
if(f)continue;
t[k++]=a
t[k]=0
x1=Math.floor((a-1)/cell.value)
y1=Math.floor((a-1)%cell.value)
work.rows(x1).cells(y1).flag=1
break;
}
}
for(var i=0;i<row.value;i++)
for(var j=0;j<cell.value;j++){
if(obj(i,j).flag==0)
shownum(i,j);
}
}
function click1(){
if(gameup==1)return false
var cl=event.srcElement;
if(event.button==1&&!cl.rc){
if(cl.flag){//is a mine
gameup=1
clearInterval(gintervalid);
for(var i=0;i<row.value;i++)
for(var j=0;j<cell.value;j++)
if(obj(i,j).flag==1){
obj(i,j).style.color='black'
obj(i,j).innerText='M'
obj(i,j).style.borderLeft='1 solid '+k6.value
obj(i,j).style.borderTop='1 solid '+k7.value
obj(i,j).style.borderRight='1 solid '+k8.value
obj(i,j).style.borderBottom='1 solid '+k9.value
obj(i,j).style.backgroundColor=k0.value
}
cl.style.color='red'
}else{
if(cl._value&&!cl.isclicked){
cl.style.borderLeft='1 solid '+k6.value
cl.style.borderTop='1 solid '+k7.value
cl.style.borderRight='1 solid '+k8.value
<head>
<title>Sweep Mine Text-Edition v1.5 gama</title>
<meta http-equiv="Content-Type" content="text/html;">
<meta http-equiv="pragma" content="no-cache">
<style type=text/css>
body{font-size:11px;font-family: verdana;background-color:white}
#work td{
cursor:hand;
width:14px;
height:14px;
text-align: center;
font-family: verdana;
font-size:12;
font-weight: 652;
}
#demo td{
cursor:hand;
width:14px;
height:14px;
text-align: center;
font-family: verdana;
font-size:12;
}
#radio td{font-size:11px;}
#work{border:6 solid #646AA6;}
#tbs{width:10;height:10;cursor:hand;font-size:5px;}
button{font-family:verdana;font-size:11px;border:0;};
input{font-family:verdana;font-size:11px;border:0;};
a{cursor:hand;background-color:#ffffff;}
</style>
<!-- game design -->
<script language="JavaScript" type="text/javascript">
<!--
var str=''
var succ=0
var gameup=0
var gtime=0
function ini(){
gameup=0
succ=0
gtime=0
gintervalid=setInterval("tickTime()",1000);
str='<table id=work cellspacing=0 cellpadding=0 border=0 bgcolor=#DDDDDD onmousedown=click1()>'
for(var i=0;i<row.value;i++){
str+='<tr>'
for(var j=0;j<cell.value;j++)
str+='<td></td>'
str+='</tr>'
}
str+='</table>'
main.innerHTML=str
rand();
}
function tickTime()
{
showStatus();
gtime++;
}
function showStatus(){
var x,y,z
x=Math.floor(gtime%1000/100)
y=Math.floor(gtime%100/10)
z=gtime%10
jsq.innerText=100*x+10*y+z+' seconds'
}
function rand(){
var t=new Array(200)
var k=0
var f=0
for(var i=0;i<row.value;i++)
for(var j=0;j<cell.value;j++){
obj(i,j).fl=0
obj(i,j).flag=0
obj(i,j).a1=i
obj(i,j).b1=j
obj(i,j).isclicked=0
obj(i,j).rc=0//right click times
obj(i,j).innerText=' '
obj(i,j).style.borderLeft='1 solid '+k1.value
obj(i,j).style.borderTop='1 solid '+k2.value
obj(i,j).style.borderRight='1 solid '+k3.value
obj(i,j).style.borderBottom='1 solid '+k4.value
obj(i,j).style.backgroundColor=k5.value
}
for(i=0;i<Math.floor(row.value*cell.value/8);i++){
while(1){
f=0
var a=Math.floor(Math.random()*row.value*cell.value)+1
for(var j=0;t[j];j++)
if(a==t[j]){f=1;}
if(f)continue;
t[k++]=a
t[k]=0
x1=Math.floor((a-1)/cell.value)
y1=Math.floor((a-1)%cell.value)
work.rows(x1).cells(y1).flag=1
break;
}
}
for(var i=0;i<row.value;i++)
for(var j=0;j<cell.value;j++){
if(obj(i,j).flag==0)
shownum(i,j);
}
}
function click1(){
if(gameup==1)return false
var cl=event.srcElement;
if(event.button==1&&!cl.rc){
if(cl.flag){//is a mine
gameup=1
clearInterval(gintervalid);
for(var i=0;i<row.value;i++)
for(var j=0;j<cell.value;j++)
if(obj(i,j).flag==1){
obj(i,j).style.color='black'
obj(i,j).innerText='M'
obj(i,j).style.borderLeft='1 solid '+k6.value
obj(i,j).style.borderTop='1 solid '+k7.value
obj(i,j).style.borderRight='1 solid '+k8.value
obj(i,j).style.borderBottom='1 solid '+k9.value
obj(i,j).style.backgroundColor=k0.value
}
cl.style.color='red'
}else{
if(cl._value&&!cl.isclicked){
cl.style.borderLeft='1 solid '+k6.value
cl.style.borderTop='1 solid '+k7.value
cl.style.borderRight='1 solid '+k8.value