Psyclones
02-10-2006, 10:58 AM
I have trolled through my template on the hull directory in an effort to validate it.
Got 4 errors remaining. these are caused by this puppy.
{* Javascript for tracking link clicks *}
<script type="text/javascript">
var root = '{$smarty.const.DOC_ROOT}';
{literal}
var a = document.getElementsByTagName("a");
for(i=0; i<a.length; i++)if(a[i].id != '')
a[i].onclick = count_link;
function count_link(){
i = new Image();
i.src= root+'/cl.php?id='+this.id;
return true;
}
{/literal}
</script>
Is there an alternative for it. Without this code my page validates.
Any help on this wil be ace.
thanks.
Psyclones
Got 4 errors remaining. these are caused by this puppy.
{* Javascript for tracking link clicks *}
<script type="text/javascript">
var root = '{$smarty.const.DOC_ROOT}';
{literal}
var a = document.getElementsByTagName("a");
for(i=0; i<a.length; i++)if(a[i].id != '')
a[i].onclick = count_link;
function count_link(){
i = new Image();
i.src= root+'/cl.php?id='+this.id;
return true;
}
{/literal}
</script>
Is there an alternative for it. Without this code my page validates.
Any help on this wil be ace.
thanks.
Psyclones