CTBaker
06-13-2008, 02:19 AM
Hi all,
I'm currently running a site where I use affiliate links, and one of the problems is that no matter how helpful you make a page, people generally won't click a link if they're aware that its an affiliate link that you can make some money out of. This is demonstrated by the fact I saw a serious increase in clickthroughs when I employed a script to disguise my affiliate links, and make them look like normal links. Sadly, I'm not overly proficient with Javascript, and the script has a couple of issues that I can't seem to sort out.
Here is the script (I'm assuming it's Javascript) -
<a onclick="parent.location.href='http://www.Affiliate-link';
return event.returnValue=false"
href=http://www.Display-Link>Anchor Text</a>
It's nothing too complex, but there are two main issues here. The first and largest is that if you right click on the link and open it in a new window, the site that is loaded in the new window is whatever text you're using to disguise the affiliate link - which obviously means I get no commission, which rather defeats the point of the entire exercise. The second point is less important, but I'd like the links to automatically open in a new window anyway. I can do this with HTML but I've had no luck trying to adapt this script to do it.
Any help would be appreciated. Thanks in advance.
I'm currently running a site where I use affiliate links, and one of the problems is that no matter how helpful you make a page, people generally won't click a link if they're aware that its an affiliate link that you can make some money out of. This is demonstrated by the fact I saw a serious increase in clickthroughs when I employed a script to disguise my affiliate links, and make them look like normal links. Sadly, I'm not overly proficient with Javascript, and the script has a couple of issues that I can't seem to sort out.
Here is the script (I'm assuming it's Javascript) -
<a onclick="parent.location.href='http://www.Affiliate-link';
return event.returnValue=false"
href=http://www.Display-Link>Anchor Text</a>
It's nothing too complex, but there are two main issues here. The first and largest is that if you right click on the link and open it in a new window, the site that is loaded in the new window is whatever text you're using to disguise the affiliate link - which obviously means I get no commission, which rather defeats the point of the entire exercise. The second point is less important, but I'd like the links to automatically open in a new window anyway. I can do this with HTML but I've had no luck trying to adapt this script to do it.
Any help would be appreciated. Thanks in advance.