Stránka plná zábavy s ceruzou v ruke

zdrojový kód na skúšku

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Krížovka</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="private, no-cache">
<link href="http://img.zoznam.sk/b/n/n.css" rel="stylesheet" type="text/css">
</head>
<style>
.cell_C {
width: 60px;
height: 60px;
background-color: white;
color: black;
font-size: 32px;
}
.cell_T {
width: 60px;
height: 60px;
background-color: Khaki;
color: Crimson;
font-size: 32px;
}
.cell_N {
width: 60px;
height: 60px;
background-color: white;
color: black;
font-size: 32px;
}
.cell_Z {
width: 60px;
height: 60px;
text-align: center;
background-color: AliceBlue;
color: black;
font-size: 9px;
}
.ci {
border: 0px;
height: 32px;
text-align: center;
text-transform: uppercase;
}
.error {
color: red;
font-weight: bold;
}
</style>
<body>
<form method="POST" action="" name="kf" onsubmit="return collectCells()">
<input type="hidden" name="kid" value="118">
<input type="hidden" name="evaluate" value="1">
<input type="hidden" name="policka" value="">
<input type="hidden" name="no_reads" value="1">

</form>
<table cellpadding="0" cellspacing="1" border="0" bgcolor="gray" id="krizovka">
<tr>
<td class="cell_Z">autor:    Pav©l Surovec </td>
<td class="cell_Z">časť tela </td>
<td class="cell_Z">liehovina z ryže </td>
<td class="cell_Z">tajnička </td>
<td class="cell_Z">izbová rastlina </td>
</tr>
<tr>
<td class="cell_Z">tenká doska </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_1_1" value=""> </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_1_2" value=""> </td>
<td class="cell_T"> <input type="text" maxlength="1" class="cell_T ci" onkeydown="editCell(this, event)" id="cell_1_3" value=""> </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_1_4" value=""> </td>
</tr>
<tr>
<td class="cell_Z">orol (čes.) </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_2_1" value=""> </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_2_2" value=""> </td>
<td class="cell_T"> <input type="text" maxlength="1" class="cell_T ci" onkeydown="editCell(this, event)" id="cell_2_3" value=""> </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_2_4" value=""> </td>
</tr>
<tr>
<td class="cell_Z">starorím. básnik </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_3_1" value=""> </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_3_2" value=""> </td>
<td class="cell_T"> <input type="text" maxlength="1" class="cell_T ci" onkeydown="editCell(this, event)" id="cell_3_3" value=""> </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_3_4" value=""> </td>
</tr>
<tr>
<td class="cell_Z">cudzia predpona (osem) </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_4_1" value=""> </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_4_2" value=""> </td>
<td class="cell_T"> <input type="text" maxlength="1" class="cell_T ci" onkeydown="editCell(this, event)" id="cell_4_3" value=""> </td>
<td class="cell_N"> <input type="text" maxlength="1" class="cell_N ci" onkeydown="editCell(this, event)" id="cell_4_4" value=""> </td>
</tr>
</table>
<br>
<script language="javascript">
function collectCells() {
var policka = '';
var krizovka = document.getElementById('krizovka');
if (krizovka) {
var cells = krizovka.getElementsByTagName('INPUT');
for (i = 0; i < cells.length; i++) {
if (i)
policka += ',';
if (cells[i].value == ',')
cells[i].value = '';
policka += cells[i].value ? cells[i].value : '';
}
}
document.kf.policka.value = policka;
return true;
}
function editCell(cell, event) {
if (event.keyCode) {
if (event.keyCode >= 48) {
if (!((cell.value == 'c' || cell.value == 'C') && event.keyCode == 72 && cell.maxLength > 1))
if (cell.createTextRange)
cell.createTextRange().select();
else
cell.setSelectionRange(0, 1);
}
else
if (event.keyCode >= 37 && event.keyCode <= 40) {
var m;
if (m = cell.id.match(/^cell_(d+)_(d+)/i)) {
var cl = null;
switch (event.keyCode) {
case 37:
while (m[2]-- > 0) {
if (cl = document.getElementById('cell_' + m[1] + '_' + m[2])) {
break;
}
}
break;
case 38:
while (m[1]-- > 0) {
if (cl = document.getElementById('cell_' + m[1] + '_' + m[2])) {
break;
}
}
break;
case 39:
while (m[2]++ < 5) {
if (cl = document.getElementById('cell_' + m[1] + '_' + m[2])) {
break;
}
}
break;
case 40:
while (m[1]++ < 5) {
if (cl = document.getElementById('cell_' + m[1] + '_' + m[2])) {
break;
}
}
break;
default:
}
if (cl)
cl.focus();
}
}
}
}
</script>
</body>
</html>
Ďalšie krížovky na <a
href="http://www.lustenie.napady.net">www.lustenie.napady.net</a>

 

 

 

 

 

 

26.02.2010 18:59:41
lustenie
Meniny na web
PageRank
www.lustenie.napady.net; Pav©l Surovec 2007 - 2013, lustenie@centrum.sk
Name
Email
Comment
Or visit this link or this one