[TYPO3] template and Javascript problem
Tapio Markula
tapio.markula at xetpoint.fi
Sat Sep 1 12:53:06 CEST 2007
Cray Flatline kirjoitti:
>
> I have some problem with javascript in tempate. I have such button code
> in my template:
>
> =========================
> <!--LiveInternet counter--><script type="text/javascript"><!--
> document.write("<a href='http://www.liveinternet.ru/click' "+
> "target=_blank><img src='http://counter.yadro.ru/hit?t44.4;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' "+
> "border=0 width=31 height=31><\/a>")//--></script><!--/LiveInternet-->
> =========================
>
>
> But when I look in the browser's "View source code..." I see really
> strange thing:
>
> =========================
> <!--LiveInternet counter--><script type="text/javascript"><!--
> document.write("<a href="http://www.liveinternet.ru/click"
> target="_blank"><img src="http://counter.yadro.ru/hit?t44.4;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" border="0" width="31" height="31"
> /><\/a>")//--></script><!--/LiveInternet-->
>
> </a>
> =========================
>
> So it changes " to " and writes </a> in the end. I can't understand
> what I have to do. Can anybody help me with it? Any suggestions? Or I
> need to forget about it and insert it with TS?
>
> P.s.: I'm using Templavoila.
>
>
set that using some TS Template object - and take that off from from the
actual HTML-template
More information about the TYPO3-english
mailing list