Суббота, 21.Декабря.2024, 13:37
Сайт шахматистов
Меню сайта
Категории раздела
Новости сайта [40]
Шахматные новости [40]
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" if (i==7) { t1+="" } if (i==15) { t1+="" } if (i==23) { t1+="" } if (i==31) { t1+="" } if (i==39) { t1+="" } if (i==47) { t1+="" } if (i==55) { t1+="" } } t1+=""; t1+="
8
7
6
5
4
3
2
1
_A _B _C _D _E _F _G _H
"; document.write(t1); }
Календарь
«  Декабрь 2024  »
ПнВтСрЧтПтСбВс
      1
2345678
9101112131415
16171819202122
23242526272829
3031
Архив записей
Друзья сайта
Российский Шахматный Портал
Сергей Жигунов: всё о нём
Блог юного шахматиста
Сайт шахматной команды "Воронеж"



Статистика

Сидят здесь всего: 1
Не участников: 1
Участников 0
Copyright Дмитрий Карпов © 2024