Thursday, September 8, 2011

how to add counter to user website using http://www.1freecounter.com

first go to the website and create code for your website after creating the account of 1freecounter.com and its very its.... then it asks for some data from u...

then its produces code for ur website for your website

such example of such code is give below

 <!-- Start 1FreeCounter.com code -->
 
  <script language="JavaScript">
  var data = '&r=' + escape(document.referrer)
    + '&n=' + escape(navigator.userAgent)
    + '&p=' + escape(navigator.userAgent)
    + '&g=' + escape(document.location.href);

  if (navigator.userAgent.substring(0,1)>'3')
    data = data + '&sd=' + screen.colorDepth
    + '&sw=' + escape(screen.width+'x'+screen.height);

  document.write('<a href="http://www.1freecounter.com/stats.php?i=82908" target=\"_blank\" >');
  document.write('<img alt="Free Counter" border=0 hspace=0 '+'vspace=0 src="http://www.1freecounter.com/counter.php?i=82908' + data + '">');
  document.write('</a>');
  </script>

<!-- End 1FreeCounter.com code -->



then u have to copy this code to your website and  counter ticks on wid each user comes on the website


No comments:

Post a Comment