Autor Zpráva
Alex_alex
Profil
Zdravím, když kliknu na poslední areu v <map name="cisilka">, tak se nic nestane, nevíte někdo proč?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <title>CZ&SK iPhone SMS</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
  <style type="text/css" media="screen">@import "iphonenav.css";</style>
  <style type="text/css" media="screen">@import "http://groupaware.mobi/iphone/samples.css";</style>
  <script type="text/javascript" language="javascript" src="iphonenav.js"></script>
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">

<h1 id="pageTitle"></h1>

<a id="homeButton" class="button" href="#Programy">Programy</a>

<ul id="Programy" title="Poslat SMS" selected="true"><li>
  <input disabled id="komu" type="text" size="10" style="border: 0px solid white; background-color: white" value="Komu: +420">
  <input disabled id="numop" maxlength="3" type="text" size="3" style="border: 0px solid white; background-color: white">
  <input disabled id="cislo" maxlength="6" type="text" size="6" style="border: 0px solid white; background-color: white">
  <input disabled id="operator" type="text" size="19" style="border: 0px solid white; background-color: white" value=""></li>

<script>
function zjistioperatora(){

var numop = document.getElementById('numop').value;

if(numop == 608 || numop == 773 || numop == 774 || numop == 775 || numop == 776 || numop == 777){
strlimit = 760;
var operator="Vodafone";
}
else if(numop == 603 || numop == 604 || numop == 605 || numop == 731 || numop == 732 || numop == 733 || numop == 734 || numop == 735 || numop == 736 || numop == 737 || numop == 738 || numop == 739){
strlimit = 775;
var operator="T-Mobile";
}
else if (numop == 601 || numop == 602 || numop == 606 || numop == 607 || numop == 721 || numop == 722 || numop == 723 || numop == 724 || numop == 725 || numop == 726 || numop == 727 || numop == 728 || numop == 729 || numop == 720){
strlimit = 60;
var operator="Telefónica O2";
}
else{
strlimit = 0;
var operator="Špatné číslo!";
}

document.getElementById("operator").value = "Operátor: " + operator + "";

}

window.setInterval("zjistioperatora()", 1);
</script>

<div id="apredvolba" style="display: block">
<map name="cisilka">
<area onclick="document.getElementById('numop').value += '1';" href="#" shape="rect" coords="0, 0, 106, 54">
<area onclick="document.getElementById('numop').value += '2';" href="#" shape="rect" coords="107, 0, 212, 54">
<area onclick="document.getElementById('numop').value += '3';" href="#" shape="rect" coords="213, 0, 319, 54">

<area onclick="document.getElementById('numop').value += '4';" href="#" shape="rect" coords="0, 55, 106, 108">
<area onclick="document.getElementById('numop').value += '5';" href="#" shape="rect" coords="107, 55, 213, 108">
<area onclick="document.getElementById('numop').value += '6';" href="#" shape="rect" coords="214, 55, 320, 108">

<area onclick="document.getElementById('numop').value += '7';" href="#" shape="rect" coords="0, 109, 106, 162">
<area onclick="document.getElementById('numop').value += '8';" href="#" shape="rect" coords="107, 109, 213, 162">
<area onclick="document.getElementById('numop').value += '9';" href="#" shape="rect" coords="214, 109, 319, 162">

<area onclick="document.getElementById('numop').value = '';" href="#" shape="rect" coords="0, 163, 106, 215">
<area onclick="document.getElementById('numop').value += '0';" href="#" shape="rect" coords="107, 163, 213, 215">
<area onclick="document.getElementById('apredvolba').style.display = "none"; document.getElementById('acislo').style.display = "block";" href="#" shape="rect" coords="214, 163, 319, 215">
</map>

<img src="cisla.png" usemap="#cisilka" width="319" height="215">
</div>

<div id="acislo" style="display: none">
<map name="acisilka">
<area onclick="document.getElementById('cislo').value += '1';" href="#" shape="rect" coords="0, 0, 106, 54">
<area onclick="document.getElementById('cislo').value += '2';" href="#" shape="rect" coords="107, 0, 212, 54">
<area onclick="document.getElementById('cislo').value += '3';" href="#" shape="rect" coords="213, 0, 319, 54">

<area onclick="document.getElementById('cislo').value += '4';" href="#" shape="rect" coords="0, 55, 106, 108">
<area onclick="document.getElementById('cislo').value += '5';" href="#" shape="rect" coords="107, 55, 213, 108">
<area onclick="document.getElementById('cislo').value += '6';" href="#" shape="rect" coords="214, 55, 320, 108">

<area onclick="document.getElementById('cislo').value += '7';" href="#" shape="rect" coords="0, 109, 106, 162">
<area onclick="document.getElementById('cislo').value += '8';" href="#" shape="rect" coords="107, 109, 213, 162">
<area onclick="document.getElementById('cislo').value += '9';" href="#" shape="rect" coords="214, 109, 319, 162">

<area onclick="document.getElementById('cislo').value = '';" href="#" shape="rect" coords="0, 163, 106, 215">
<area onclick="document.getElementById('cislo').value += '0';" href="#" shape="rect" coords="107, 163, 213, 215">
<area onclick="" href="#" shape="rect" coords="214, 163, 319, 215">
</map>

<img src="cisla.png" usemap="#acisilka" width="319" height="215">
</div>

</ul>

</body>
</html>
DJ Miky
Profil
Tipuji to na problém s uvozovkami:
\"none\" a \"block\"
Alex_alex
Profil
Sakra taková blbá chyba a já nad tim sedim už asi hodinu :D, díky

Vaše odpověď

Mohlo by se hodit

Neumíte-li správně určit příčinu chyby, vkládejte odkazy na živé ukázky.
Užíváte-li nějakou cizí knihovnu, ukažte odpovídajícím, kde jste ji vzali.

Užitečné odkazy:

Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm: