On 12/15/06, agent2026 <[EMAIL PROTECTED]> wrote:
Having a hard time with this Dave, and I'm afraid the thread has moved a
little ahead of my level. Here's where I'm at:
var intLink = ['site1.com/','site2.com/'];
function linkExc(){
if (document.getElementsByTagName) {
var a = document.getElementsByTagName("a");
for(var h=0; h<intLink.length; h++){
console.log(intLink[h]);
for(var i=0; i<a.length; i++){
if(a[i].href.match(intLink[h])){
console.log(a[i]);
}
else {
a[i].onClick = window.open(
this.href.value);
Try: $(a[i]).bind('click', function(){ window.open(this.href.value) });
also for "pure" JavaScript the events are "onclick" instead of "onClick"...
}
};
};
}
};
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/