If you use javascript without a border, you can use the following lines:
var links, i, le; links = document.getElementsByTagName('a'); for (i = 0, le = links.length; i < le; i++) { links[i].href = "http://www.mysite.com/?redirect=" + encodeURIComponent(links[i].href); }
Varon source share