Jump to content

trouble with counter code


htmlnewbie23

Recommended Posts

I have one of those free visitor counters which are created by inserting the code they give you into your page. Unfortunately the W3 validator is having a problem with this code and I am reluctant to change it because I might break it. The error I get is:"required attribute "TYPE" not specified.…ats.com/cgi-bin/afc.cgi?usr=00812623">"The problem code is

<!-- BEGIN ADDFREECOUNTER CODE - AddFreeCounter need of AddFreestats button code! htpp://www.addfreestats.com-->					<script language="javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623">					</SCRIPT>					<noscript>						<a href="http://www.addfreestats.com">AFC</a>					</noscript>					<!-- END AddFreeCounter CODE -->

Should I just ignore the error?

Link to comment
Share on other sites

Nah, you can fix that real easily. Rather than this:

<script language="javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623">

Use this:

<script language="javascript" type="text/javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623">

Link to comment
Share on other sites

Nah, you can fix that real easily. Rather than this:
<script language="javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623">

Use this:

<script language="javascript" type="text/javascript" src="http://www8.addfreestats.com/cgi-bin/afc.cgi?usr=00812623">

So, you've added type="text/javascript"Correct?Thanks.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...