Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
November 3, 2007, 1:16 pm
rate this thread
I'm working on a simple link exchange. Right now, links are printed
to screen as:
(where xxx is the PK ID of the link in the database, out.php
increments the link count and redirects to the destination)
Thing is, that sort of link offers no SEO benefit to the linked page.
Google won't count that as a link to the destination.
What I want to do is something like this:
<a href="http://www.example.com " onClick="countlink('xxx')">foo</a>
where the countlink function increments the outbound link count in the
Something like (no Ajax):
<a href="..." onclick="incrementCounter(this)">my link</a>
<img src="" width="1" height="1" id="counter" alt="" />
document.getElementById('counter').src='path_to_server_script?' + obj.href ;
Usual caveats apply.