Source

cyrs60v5 / Russian Keyboard.htm

<html>
<!-- loosely based on web-keyboard from http://www.freerussiankeyboard.com/ -->
<head>
<meta name="Author" content="Shchelokovskyy Pavlo">
<meta content="text/html; charset=utf8" http-equiv="Content-Type">
<title>Rus-Ukr for S60v5</title>
</head>

<style>
.blt { color=black; width: 46px; background-color: #CCCCCC; font-family: Tahoma, Arial; font-size: 20px;}
.bsh { color=black; width: 100px; background-color: #CCCCCC; font-family: Tahoma, Arial; font-size: 20px;}
.bsp { color=black; width: 290px; background-color: #CCCCCC; font-family: Tahoma, Arial; font-size: 20px;}
</style>

<script>
var cyr_norm = new Array('й','ц','у','к','е','н','г','ш','щ','з','х','ъ','ф','ы','в','а','п','р','о','л','д','ж','э',"'",'я','ч','с','м','и','т','ь','б','ю','.','ё','i','SHIFT',' ','ї','є','ґ','ў');
var cyr_caps = new Array('Й','Ц','У','К','Е','Н','Г','Ш','Щ','З','Х','Ъ','Ф','Ы','В','А','П','Р','О','Л','Д','Ж','Э','№','Я','Ч','С','М','И','Т','Ь','Б','Ю',',','Ё','I','SHIFT',' ','Ї','Є','Ґ','Ў');
var letters = new Array(cyr_norm, cyr_caps)

var nlett = 42;
var capslock;

function toggleShift()
{
 var i;
 capslock=!capslock;
 
 for(i=0;i<nlett;i++) document.keys.elements[i+1].value = letters[(capslock)?1:0][i];
 return false;
}

function putChar(but)
{
 document.keys.text.value += but.value;
 return false;
}

function init()
{ 
 capslock=true;
 toggleShift();
 return false;
}

</script>

<body leftmargin=4 topmargin=4 marginwidth=4 marginheight=4>

<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>
<form name="keys"><tr><td align=left valign=top>

<table width=630 cellspacing=0 cellpadding=0 border=0><tr><td>
<table width=100% cellspacing=0 cellpadding=0 border=0>
<tr><td align=center> <textarea rows=5 cols=72 name="text" wrap="physical"></textarea>
<br>

<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<br>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<br>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<br>
<input type=button value="" onClick="return toggleShift();" width=60 class=bsh>
<input type=button value="" onClick="return putChar(this);" width=200 class=bsp>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>
<input type=button value="" onClick="return putChar(this);" width=30 class=blt>

</td></tr></table>
</td></tr></table>

</td></tr></form></table>

<script>
init();
</script>

</body>
</html>