var t1 = " "
var sdf=new Array (); //- ������ �� �������
var asd=new Array (); //������ � �������
var web=new Array ();// �����
var cellname1 = new Array(
"a8","b8","c8","d8","e8","f8","g8","h8",
"a7","b7","c7","d7","e7","f7","g7","h7",
"a6","b6","c6","d6","e6","f6","g6","h6",
"a5","b5","c5","d5","e5","f5","g5","h5",
"a4","b4","c4","d4","e4","f4","g4","h4",
"a3","b3","c3","d3","e3","f3","g3","h3",
"a2","b2","c2","d2","e2","f2","g2","h2",
"a1","b1","c1","d1","e1","f1","g1","h1")
function cellboard(name,book)
{
var books=" ";//*����� ������
var board=new Image();
var cellname = new Array(
"a8","b8","c8","d8","e8","f8","g8","h8",
"a7","b7","c7","d7","e7","f7","g7","h7",
"a6","b6","c6","d6","e6","f6","g6","h6",
"a5","b5","c5","d5","e5","f5","g5","h5",
"a4","b4","c4","d4","e4","f4","g4","h4",
"a3","b3","c3","d3","e3","f3","g3","h3",
"a2","b2","c2","d2","e2","f2","g2","h2",
"a1","b1","c1","d1","e1","f1","g1","h1")
var boardbool= new Array(
0,1,0,1,0,1,0,1,
1,0,1,0,1,0,1,0,
0,1,0,1,0,1,0,1,
1,0,1,0,1,0,1,0,
0,1,0,1,0,1,0,1,
1,0,1,0,1,0,1,0,
0,1,0,1,0,1,0,1,
1,0,1,0,1,0,1,0);
var fig= new Array("R","N","B","Q","R","P","r","n","b","q","r","p");
var n =""; //* ���
var b=0; //���� 0- �����
var i=0;
var na="";
for(i=0;i<64;i++)
{na=cellname[i];
if(na==name ){books=book //*����� ������
n=name;
b=boardbool[i];}
}
switch(books){
case "R":
if (b==0) {
board.src="/wrw.gif"} else { board.src="/wrb.gif"};
break;
case "N":
if (b==0) {
board.src="/wnw.gif"} else {
board.src="/wnb.gif"};
break;
case "B":
if (b==0) {
board.src="/wbw.gif"} else {board.src="/wbb.gif"};
break;
case "Q":
if (b==0) {
board.src= "/wqw.gif"} else{ board.src="/wqb.gif"}
break;
case "K":
if (b==0) {
board.src= "/wkw.gif"} else{ board.src="/wkb.gif"}
break;
case "P":
if (b==0) {
board.src= "/wpw.gif" }else {board.src= "/wpb.gif"}
break;
case "r":
if (b==0) {
board.src= "/brw.gif"} else{ board.src="/brb.gif"}
break ;
case "n":
if (b==0) {
board.src= "/bnw.gif"} else {board.src= "/bnb.gif"}
break;
case "b":
if (b==0) {
board.src="/bbw.gif"} else{ board.src= "/bbb.gif"}
break;
case "q":
if (b==0) {
board.src= "/bqw.gif"} else {board.src= "/bqb.gif"}
break;
case "k":
if (b==0) {
board.src= "/bkw.gif"} else { board.src= "/bkb.gif"}
break;
case "p":
if (b==0) {
board.src= "/bpw.gif"} else { board.src="/bpb.gif"}
break;
case "Z":
if (b==0) {
board.src= "/w.gif"} else { board.src= "/b.gif"}
break;}
return (board.src);
}
function massiv(wa) {
var h=0;
var asd1= new Array()
for (h; h"
for (i=0; i"
if (i==7) { t1+="8 | " }
if (i==15) { t1+="7 | " }
if (i==23) { t1+="6 | " }
if (i==31) { t1+="5 | " }
if (i==39) { t1+="4 | " }
if (i==47) { t1+="3 | " }
if (i==55) { t1+="2 | " }
}
t1+="1 | ";
t1+="_A | _B | _C | _D | _E | _F | _G | _H | ";
document.write(t1);
}
|