Problem solved.
The answer was right there in front of me the whole time, I just didn't see it.
My HTML editor program color codes specific parts of the code to indicate proper format. In this particular case, all the ";" at the end of code lines was colored green, except for the very last one, like this:
Code:
document.write("<a href='http://www.webstatsdepot.com/totalVisitors.php?site=4'>
<img src='http://www.webstatsdepot.com/logger.php?"+data+"' width=0 height=0 border=0></a>");
So, I made a slight modification, and now the code works.
Code:
document.write("<a href='http://www.webstatsdepot.com/totalVisitors.php?site=4'><img src='http://www.webstatsdepot.com/logger.php?"+data+"' width=0 height=0 border=0></a>");
Tested it in IE7, FireFox 2.0 and Opera 9.5, all with the desired results, and using Doctype XHTML 1.0 Strict, plus the page validates at W3C.
|