Autor Zpráva
Michalcik
Profil *
Dobrý den,
dostal jsem za úkol opravit kód aby byl validní. V kódu je toto počítadlo:

<div class="toplist">
<script type="text/javascript">
<!--
Tmp=Math.floor(1000000 * Math.random());
document.write('<script src="http://cnt2.pocitadlo.cz/counter.php?poc=85630&amp;ref='+escape(top.document.referrer)+'&amp;depth='+screen.colorDepth+'&amp;width='+screen.width+'&amp;height='+screen.height+'&amp;tmp='+Tmp+'" language="JavaScript" type="text/javascript"></scr'+'ipt>');
//-->
</script>
<noscript>
<p><img src="http://cnt2.pocitadlo.cz/counter.php?poc=85630&amp;ns=1" width="1" height="1" alt="TOPlist"></p>
</noscript>
</div>

Validátor hlásí:

Line 88, Column 274: delimiter "'" invalid: only S separators and TAGC allowed here
…'&amp;tmp='+Tmp+'" language="JavaScript" type="text/javascript"></scr'+'ipt>');

Line 88, Column 274: end tag for element "SCR" which is not open
…'&amp;tmp='+Tmp+'" language="JavaScript" type="text/javascript"></scr'+'ipt>');

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

Pořád nemůžu přijít na to jak tu chybu opravit.
Audio
Profil
</scr'+'ipt>' přepiš na <'+'/script>', viz. http://diskuse.jakpsatweb.cz/?action=vthread&forum=10&topic=30413#4

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

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

0