<!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='http://www.liveinternet.ru/click' "+
"target=_blank><img src='//counter.yadro.ru/hit?t52.13;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet: показано число просмотров и"+
" посетителей за 24 часа' "+
"border='0' width='88' height='31'><\/a>")
//--></script><!--/LiveInternet-->
Я его вставил к себе:
print " <td noWrap>
<!-- LiveInternet counter -->
<script type='text/javascript'>
<!-- document.write('<a href='http://www.liveinternet.ru/click' '+'target=_blank><img src='//counter.yadro.ru/hit?t52.13;r'+escape(document.referrer)+
((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';u'+escape(document.URL)
+';'+Math.random()+''alt='' title='LiveInternet: показано число просмотров и'+' посетителей за 24 часа' '+'border='0' width='88' height='31'></a>')//-->
</script>
<!--/LiveInternet-->
</td>";
Но не работает, картинка счётчика не отображается. Подскажите что не так?
Спустя 41 минута, 57 секунд (26.02.2010 - 20:13) sergeiss написал(а):
В оригинале есть двойные кавычки, у тебя же их нету. Пиши их со слэшем (перед кавычками).
Типа такого:
оригинал
Ты должен написать
Иначе ты получаешь не то же самое, что было в оригинале.
Типа такого:
оригинал
";"+Math.random()+
"' alt='' title='LiveInternet: показано число просмотров и"+
Ты должен написать
"\";\"+Math.random()+
\"' alt='' title='LiveInternet: показано число просмотров и\"+"
Иначе ты получаешь не то же самое, что было в оригинале.
Спустя 1 час, 28 минут, 54 секунды (26.02.2010 - 21:42) TOK написал(а):
Сделал с слЭшем
Всё равно не отображается
Ява дебаггер пишет после <!--/LiveInternet--> Column 0 Error Identifier expected
print " <td noWrap>
<!--LiveInternet counter-->
<script type=\"text/javascript\">
<!-- document.write(\"<a href='http://www.liveinternet.ru/click' \"+\"target=_blank><img src='//counter.yadro.ru/hit?t52.13;r\"+escape(document.referrer)+((typeof(screen)==\"undefined\")?
\"\":\";s\"+screen.width+\"*\"+screen.height+\"*\"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+\";u\"+escape(document.URL)
+\";\"+Math.random()+\"' alt='' title='LiveInternet: показано число просмотров и\"+\" посетителей за 24 часа' \"+\"border='0' width='88' height='31'><\/a>\")//-->
</script>
<!--/LiveInternet-->
</td>";
Всё равно не отображается
Ява дебаггер пишет после <!--/LiveInternet--> Column 0 Error Identifier expected