View Full Version : this script isn't working


jlknauff
02-18-2005, 06:09 AM
Can one of you java experts take a look at this and see why the script isn't running?

http://www.lendselect.com/1st-mortgage-refinance.htm

It's called in the head with
<script type="text/javascript" src="/hl.js"></script>

And the script is
var data,nhp,ntz,rf,sr;document.cookie='__support_check=1';nhp='http';
rf=document.referrer;sr=document.location.search;
if(top.document.location==document.referrer
|| (document.referrer == '' && top.document.location != ''))
{rf=top.document.referrer;sr=top.document.location.search}
ntz=new Date();if(location.href.substr(0,6).toLowerCase()=='https:')
nhp='https';data='&an='+escape(navigator.appName)+
'&sr='+escape(sr)+'&ck='+document.cookie.length+
'&rf='+escape(rf)+ '&sl='+escape(navigator.systemLanguage)+
'&av='+escape(navigator.appVersion)+ '&l='+escape(navigator.language)+
'&pf='+escape(navigator.platform)+ '&pg='+escape(location.pathname);
if(navigator.appVersion.substring(0,1)>'3') {data=data+'&cd='+
screen.colorDepth+'&rs='+escape(screen.width+ ' x '+screen.height)+
'&tz='+ntz.getTimezoneOffset()+'&je='+ navigator.javaEnabled()};
document.write('<img border=0 hspace=0 '+
'vspace=0 width=1 height=1 src="'+nhp+'://counter.hitslink.com/'+
'statistics.asp?v=1&s=12&acct=lendselect'+data+'">');
<img border=0 hspace=0 vspace=0 width=1 height=1 alt=""
src="http://counter.hitslink.com/stats-ns.asp?acct=lendselect&amp;v=1&amp;s=12">

abhishekmat
02-18-2005, 07:19 AM
I think there a problem with your this line

//var pm_tag = "<SCR" + "IPT LANGUAGE='JavaScript' " + "SRC=//" + pm_scripthost + "/collweb/ScriptServlet" + pm_querystr + "></SCR" + "IPT>";

abhishekmat
02-18-2005, 07:23 AM
In side your h1.js why this html tag?

<img border=0 hspace=0 vspace=0 width=1 height=1 alt=""
src="http://counter.hitslink.com/stats-ns.asp?acct=lendselect&amp;v=1&amp;s=12">

Remove it. thats all