I've nearly finished a huge site (for me, over 100 pages) but have hit a slight snag. The client loves a stat tracker that was on the old site and wants to keep it, even though the isp provides some good stats, these are what he likes. The site still isn't perfect, but all unnecessary tables have been removed and each page validates with good html and css with a strict doctype.
Problem is that when I add the code supplied by the stat service, I can't get the pages to still validate. So, do I leave the strict doctype despite the errors, or do I try to do something transitional to get rid of the errors. Everything worth seeing to the viewer does validate, and the stat tracker still tracks the stats. Am I trying to be too much of a perfectionist?What exactly in the code doesn't it like?It doesn't look as bad as I originally thought. I fixed most of the errors, but haven't checked to see if the tracker still actually works yet. Only error remaining is that there is a name attribut in the img tag. I don't really know much about the tracker, but would guess that the name is passed to something. Is there maybe another attribute that does the same thing? If this isn't enought info, I'll post the original code in a few minutes, just didn't have it handy at this location.Tell the Muppet JavaScript Counters/Stats only work once the page has fully Download ed thus are a waste of time if they already have a server side log system.
Though if it's just a case of the Transitional is valid then go transitional.Here is the original unaltered code from the company.
Warning: Looking at the following code could be hazardous to your health. People have actually fallen out of their chairs laughing at better code than this.
<font size=1 color=white>
<a target="_top" href=http://www.webdeveloper.com/forum/archive/index.php/"http://w.extreme-dm.com/?login=mmumo">
<img name=im src=http://www.webdeveloper.com/forum/archive/index.php/"http://w1.extreme-dm.com/i.gif" height=38
border=0 width=41 alt=""></a><script language="javascript"><!--
an=navigator.appName;d=document;function
pr(){d.write("<img src=http://www.webdeveloper.com/forum/archive/index.php/\"http://w0.extreme-dm.com",
"/0.gif?tag=mmumo&j=y&srw="+srw+"&srb="+srb+"&",
"rs="+r+"&l="+escape(d.referrer)+"\" height=1 ",
"width=1>");}srb="na";srw="na";//-->
</script><script language="javascript1.2"><!--
s=screen;srw=s.width;an!="Netscape"?
srb=s.colorDepth:srb=s.pixelDepth;//-->
</script><script language="javascript"><!--
r=41;d.images?r=d.im.width:z=0;pr();//-->
</script><noscript><img height=1 width=1 alt=""
src=http://www.webdeveloper.com/forum/archive/index.php/"http://w0.extreme-dm.com/0.gif?tag=mmumo&j=n"></noscript>
Problem is that when I add the code supplied by the stat service, I can't get the pages to still validate. So, do I leave the strict doctype despite the errors, or do I try to do something transitional to get rid of the errors. Everything worth seeing to the viewer does validate, and the stat tracker still tracks the stats. Am I trying to be too much of a perfectionist?What exactly in the code doesn't it like?It doesn't look as bad as I originally thought. I fixed most of the errors, but haven't checked to see if the tracker still actually works yet. Only error remaining is that there is a name attribut in the img tag. I don't really know much about the tracker, but would guess that the name is passed to something. Is there maybe another attribute that does the same thing? If this isn't enought info, I'll post the original code in a few minutes, just didn't have it handy at this location.Tell the Muppet JavaScript Counters/Stats only work once the page has fully Download ed thus are a waste of time if they already have a server side log system.
Though if it's just a case of the Transitional is valid then go transitional.Here is the original unaltered code from the company.
Warning: Looking at the following code could be hazardous to your health. People have actually fallen out of their chairs laughing at better code than this.
<font size=1 color=white>
<a target="_top" href=http://www.webdeveloper.com/forum/archive/index.php/"http://w.extreme-dm.com/?login=mmumo">
<img name=im src=http://www.webdeveloper.com/forum/archive/index.php/"http://w1.extreme-dm.com/i.gif" height=38
border=0 width=41 alt=""></a><script language="javascript"><!--
an=navigator.appName;d=document;function
pr(){d.write("<img src=http://www.webdeveloper.com/forum/archive/index.php/\"http://w0.extreme-dm.com",
"/0.gif?tag=mmumo&j=y&srw="+srw+"&srb="+srb+"&",
"rs="+r+"&l="+escape(d.referrer)+"\" height=1 ",
"width=1>");}srb="na";srw="na";//-->
</script><script language="javascript1.2"><!--
s=screen;srw=s.width;an!="Netscape"?
srb=s.colorDepth:srb=s.pixelDepth;//-->
</script><script language="javascript"><!--
r=41;d.images?r=d.im.width:z=0;pr();//-->
</script><noscript><img height=1 width=1 alt=""
src=http://www.webdeveloper.com/forum/archive/index.php/"http://w0.extreme-dm.com/0.gif?tag=mmumo&j=n"></noscript>