gh05
01-06-2010, 09:43 PM
Hi, my site contains many affiliate links and usually I simply link to them by using a php redirect. I.e. I have
many folders (one for each affiliate program) containing an index.php file with the actual affiliate link and I
just link to this folder. This is usually simple but now I have some links as below containing javascript
and I don't want to break the tracking script. Can anyone tell me if I can do the exact same thing with this
type of link? Thanks.
<script language="javascript" type="text/javascript">
var myTarget='http://track.webgains.com/click.html?wglinkid=46986&wgcampaignid=67341&js=0';
var uri = 'http://track.webgains.com/link.html?wglinkid=46986&wgcampaignid=67341';
document.write('<a href="'+myTarget+'" target="_blank" onMouseOver="window.status=\'https://rec1.globalepanel.com/research/0903mskukedr/index.php?AID=lk2\';return true;" onMouseOut="window.status=\'\'"><img src="'+uri+'" width="120" height="60" border="0" alt=""/></a>');
</script>
many folders (one for each affiliate program) containing an index.php file with the actual affiliate link and I
just link to this folder. This is usually simple but now I have some links as below containing javascript
and I don't want to break the tracking script. Can anyone tell me if I can do the exact same thing with this
type of link? Thanks.
<script language="javascript" type="text/javascript">
var myTarget='http://track.webgains.com/click.html?wglinkid=46986&wgcampaignid=67341&js=0';
var uri = 'http://track.webgains.com/link.html?wglinkid=46986&wgcampaignid=67341';
document.write('<a href="'+myTarget+'" target="_blank" onMouseOver="window.status=\'https://rec1.globalepanel.com/research/0903mskukedr/index.php?AID=lk2\';return true;" onMouseOut="window.status=\'\'"><img src="'+uri+'" width="120" height="60" border="0" alt=""/></a>');
</script>