<script language="JavaScript">
function FindLinks(href) {
for (var i = 0; i < document.links.length; i++) {
if (document.links[i].href == href) {
return i;
}
}
return -1;
}
function OverrideLinks() {
if (document.links.length > 0) {
var index = FindLinks("http://www.google.com/");
if (index > -1)
document.links[index].href = "http://www.mydomain.com";
}
}
</script>
No comments:
Post a Comment