Firstly, those who use shrimpsvoices.co.uk are viewing the forum in a frame. If you view source on the shrimpsvoices domain, the src for the frame is ttpics.co.uk/shrimpsvoices which explains why the title of the page never changes, even when you click on links to say the BBC, the title still says shrimpsvoices.
Secondly, you could add a javascript function to the head of your document which scans the page for links which do not match current domain. Any links that don't start with ttpics.co.uk would be deemed external and target="_blank" will be added to the anchor tag.
- Code: Select all
this.blankwin = function(){
var hostname = window.location.hostname;
hostname = hostname.replace("www.","").toLowerCase();
var a = document.getElementsByTagName("a");
this.check = function(obj){
var href = obj.href.toLowerCase();
return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? true : false;
};
this.set = function(obj){
obj.target = "_blank";
};
for (var i=0;i<a.length;i++){
if(check(a[i])) set(a[i]);
};
};
I think for this to work for shrimpsvoices.co.uk users however, the (bizarre) issue of the forum being delivered in a frame would have to be resolved first as every link may be seen as external.