problem using Superstats code

P

Phil Powell

One of the websites I manage uses Superstats for tracking, etc.,
however, each time the Javascript code is included to perform the
track, I got this appearing each time at the top of every page:

');

I am unable to remove it unless I comment out the last four
"document.write()" methods from the code:

[Javascript]
<!-- Start Superstats code
version 3.0b. Copyright 1997-2001 MyComputer.com, Inc. More info
available at www.mycomputer.com -->
<script type="text/javascript" language="JavaScript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
var pageName = "Application";

/**** DO NOT ALTER ANYTHING BELOW THIS LINE! ****/
var code = ' ';
</script>
<script type="text/javascript"
src="http://code.superstats.com/code/ss/vsign_1991661/0/30b"></script>
<script type="text/javascript" language="JavaScript">
br = navigator.appName + parseInt(navigator.appVersion);
if (code != ' ' || br == 'Netscape2') {
document.write(code);
} else {
document.write(''+ ' <im'+'g'+ '
src="http://stats.superstats.com/b/ss/vsign_1991661/1'+ '?pageName=' +
escape(pageName) + '" border="0">');
}
// document.write('<');
// document.write('!-- ');
</script>
<noscript><img src="http://stats.superstats.com/b/ss/vsign_1991661/1"
border="0"></noscript>
<script type="text/javascript" language="JavaScript">
/// document.write(' --');
//document.write('>');

</script>

<!--End Superstats tracking
code. -->
[/Javascript]

If I uncomment the last four "document.write()" methods, the

');

appears again, otherwise, it does not, but I am not sure how I have
affected back-end functionality. What technical advice do you offer,
other than switching to another stat counter?

Thanx
Phil
 
R

Randy Webb

Phil Powell said the following on 10/26/2006 11:21 AM:
One of the websites I manage uses Superstats for tracking, etc.,
however, each time the Javascript code is included to perform the
track, I got this appearing each time at the top of every page:

');

I am unable to remove it unless I comment out the last four
"document.write()" methods from the code:

Remove them entirely.
If I uncomment the last four "document.write()" methods, the

');

What I get with them uncommented is --> which is what I expected. The
script attempts to write out HTML comments and fails to make them JS
comments as well. The entire script looks like something a High School
student would write out in an attempt to write a decent script.
 
P

Phil Powell

Randy said:
Phil Powell said the following on 10/26/2006 11:21 AM:

Remove them entirely.

That's what I did and everything looks fine. If it works is a totally
different (and ultimately unrelated) issue, of course.

Thanx
Phil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top