Can pay by paypal or epassporte.
Some time back I made a javascript that ads a prefix to and domain link on my blog.
This prefix will cause a topframe on the outgoing website.
The prefix I add is 'linkout/o.php?out='
However I wish to blaclist s ome sites from not getting a topframe added. I was able to do this by manually adding the exact link in my javascript. However I cant just add a domain name. for instance rapidshare.com ; I need to add http://rapidshare.com/link1 and then link2 etc etc. Which makes it hard to use.
Someone told me you can solve this with regex, however I gave up on that 4 months ago. But now I'm getting an error on my blog with some links, so i need the setup to handle just the domain names.
Anyone able to fix this ?
The script:
Some time back I made a javascript that ads a prefix to and domain link on my blog.
This prefix will cause a topframe on the outgoing website.
The prefix I add is 'linkout/o.php?out='
However I wish to blaclist s ome sites from not getting a topframe added. I was able to do this by manually adding the exact link in my javascript. However I cant just add a domain name. for instance rapidshare.com ; I need to add http://rapidshare.com/link1 and then link2 etc etc. Which makes it hard to use.
Someone told me you can solve this with regex, however I gave up on that 4 months ago. But now I'm getting an error on my blog with some links, so i need the setup to handle just the domain names.
Anyone able to fix this ?
The script:
function wfbframe(title)
{
var anchorTags = document.getElementsByTagName("a");
var returnLink = window.location;
for(var i=0; i < anchorTags.length; i++)
{
var anchorTag = anchorTags[i];
if(anchorTags[i].id != 'adworldnoframe')
{
if (anchorTag.href!='http://www.trafficholder.com/in/in.php?xxxx' && anchorTag.href!='http://proscriptio.skinvideo.com/' && anchorTag.href!='http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=' ) { // add more URLs here in the same way
anchorTag.href = 'linkout/o.php?out=' +
anchorTag.href ;
}
}
}
}
{
var anchorTags = document.getElementsByTagName("a");
var returnLink = window.location;
for(var i=0; i < anchorTags.length; i++)
{
var anchorTag = anchorTags[i];
if(anchorTags[i].id != 'adworldnoframe')
{
if (anchorTag.href!='http://www.trafficholder.com/in/in.php?xxxx' && anchorTag.href!='http://proscriptio.skinvideo.com/' && anchorTag.href!='http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=' ) { // add more URLs here in the same way
anchorTag.href = 'linkout/o.php?out=' +
anchorTag.href ;
}
}
}
}

Comment