Cant insert counter

Shadowed

No avatar

2006-11-28 13:13

Hello,

It seems that I cant insert a site stats counter. Its java script (included). I trytu insert it in the same line where "Powered by..." is. But nothing shows up. Whats wrong ?
I inserted it after
<div id="foot">
then after
<div class="powered">
but nothing changes, but when I open my site in explorer there is script lines ir suorce.


Script:
<script language="javascript" type="text/javascript">
<!--
var _hey_lt_w = "", _hey_lt_h = "", _hey_lt_c = "";
//-->
</script>
<script language="javascript1.2" type="text/javascript">
<!--
_hey_lt_w = screen.width; _hey_lt_h = screen.height; _hey_lt_c =
navigator.appName.indexOf("Microsoft") >= 0 ? screen.colorDepth :
screen.pixelDepth;
//-->
</script>
<script language="javascript" type="text/javascript">
<!--
document.write("<a target='_blank'
href='http://www.hey.lt/details.php?id=cbradio'><img width=88 height=31
border=0 src='http://www.hey.lt/count.php?id=cbradio&width=" + _hey_lt_w +
"&height=" + _hey_lt_h + "&color=" + _hey_lt_c + "&referer=" +
escape(document.referrer) + "' alt='Hey.lt - Interneto reitingai, lankomumo
statistika, lankytoju skaitliukai'><\/a>");
//-->
</script>
<noscript>
<a target="_blank" href="http://www.hey.lt/details.php?id=cbradio"><img
width=88 height=31 border=0 src="http://www.hey.lt/count.php?id=cbradio"
alt="Hey.lt - Interneto reitingai, lankomumo statistika, lankytoju
skaitliukai"></a>
</noscript>

Shadowed

Shadowed

No avatar

2006-11-28 14:23

Ok, i did it :) thanks anyway.

2 admin - delete this post, because now its only trash...

Shadowed

grcauto

No avatar

2006-12-03 01:25

You could share with us if it can't work or if it did how you made it work.

Shadowed

No avatar

2006-12-03 09:33

There is error in this counter code. I dont know where, just copied correct code from counter provider. Inserted in page.tpl file. In line, where "Powered by..." is I inserted a table of 1 row and 2 colums, in first column inserted counter code, in second inserted "powered by...". That way I got possibility to set left and right positions for counter and "Powered".
Second (serv. stat.) and third (darb.mail.) are inserted same way, in left table side just after the counter code. If something is not clear feel free to ask.
Code from page.tpl (part from <div id="foot"> to the end, and there is a table of 1 x 3, the middle column is not necessary, but I will use it later so its here)

<div id="foot">
<div class="powered">
<a href="http://opensolution.org/"></a>
<table width="100%" border="0">
<tr>
<td width="50%" align="left">
<script language="javascript" type="text/javascript">
<!--
var _hey_lt_w = "", _hey_lt_h = "", _hey_lt_c = "";
//-->
</script>
<script language="javascript1.2" type="text/javascript">
<!--
_hey_lt_w = screen.width; _hey_lt_h = screen.height; _hey_lt_c = navigator.appName.indexOf("Microsoft") >= 0 ? screen.colorDepth : screen.pixelDepth;
//-->
</script>
<script language="javascript" type="text/javascript">
<!--
document.write("<a target='_blank' href='http://www.hey.lt/details.php?id=cbradio'><img width=88 height=31 border=0 src='http://www.hey.lt/count.php?id=cbradio&width=" + _hey_lt_w + "&height=" + _hey_lt_h + "&color=" + _hey_lt_c + "&referer=" + escape(document.referrer) + "' alt='Hey.lt - Interneto reitingai, lankomumo statistika, lankytoju skaitliukai'><\/a>");
//-->
</script>
<noscript>
<a target="_blank" href="http://www.hey.lt/details.php?id=cbradio"><img width=88 height=31 border=0 src="http://www.hey.lt/count.php?id=cbradio" alt="Hey.lt - Interneto reitingai, lankomumo statistika, lankytoju skaitliukai"></a>
</noscript>
<a target="_blank" href="http://www.cbradio.lt/stats"><img width=88 height=31 border=0 src="http://www.cbradio.lt//files/img/stat.JPG" alt="M&#363;s&#371; serverio statistika."></a>
<a target="_blank" href="http://narcizas.serveriai.lt/WebMail/src/login.php?permanent_language=lt_LT"><img width=88 height=31 border=0 src="http://www.cbradio.lt//files/img/mail.JPG" alt="Darbuotoj&#371; e-pašto sistema."></a>
</td>
<td width="25%">&nbsp;</td>
<td width="25%" align="right"><a href="http://opensolution.org/">Powered by Quick.Cms</a></td>
</tr>
</table>
</div>
</div>
</div>

</body>
</html>
<!-- END FOOT -->

Back to top
about us | contact