Reply LinkBack Thread Tools Search this Thread
Old 25-08-2006, 05:09   #1 (permalink)
paulanthony
mingin dawg baitch
 
paulanthony's Avatar
 
Join Date: Apr 2004
Location: Belfast
Posts: 1,035
Send a message via MSN to paulanthony
Interesting way to track hits with javascript

Never seen this in use before - maybe im behind with the times, but this is a nice way to pass pagerank and still track link popularity.

Code:
<a id="2442" href="http://www.domain.com/" target="_BLANK">LINK</a> <script type="text/javascript">var root = ''; var a = document.getElementsByTagName("a"); for(i=0; i<a.length; i++)if(a[i].id != '') a[i].onclick = count_link; function count_link(){ i = new Image(); i.src= root+'/cl.php?id='+this.id; return true; } </script>
  Reply With Quote
Old 28-08-2006, 15:16   #2 (permalink)
paulanthony
mingin dawg baitch
 
paulanthony's Avatar
 
Join Date: Apr 2004
Location: Belfast
Posts: 1,035
Send a message via MSN to paulanthony
If you give another page a vote - via a link then you pass some relevance to that website - helping them - if you use a redirect script - the search engines don't favour the link as much - cause you are linking to a script on your own site i.e. domain.com/redirect.aspx?id=1

As for the link popularity its basically just tracking popular links.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8