Log In · Register

 
help with link
ooditzystarsoo
post Sep 3 2004, 03:05 PM
Post #1


Senior Member
***

Group: Member
Posts: 63
Joined: Aug 2004
Member No: 39,326



can someone tell me what i did wrong? the "be my friend?" link for people to suscribe to me isnt working. itll only work if u right click it.

<script language="javascript">
<!--
var links = document.getElementsByTagName ("a");
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/d+:d+ (am|pm)/i)) links[l]
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "shooting star");

else if (str.match (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "shooting stars");


else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "falling star");

else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "falling stars");

else if (str.match (/email it/i)) links [l].innerHTML = str.replace (/email it/i, ".");


else if (str.match (/subscribe/i)) links[l].innerHTML = str.replace (/subscribe/i, "be a friend?");



else if (str.match (/Subscriptions/i)) links[l].innerHTML = str.replace (/subscriptions/i, "my friends kick ass");


else if (str.match (/sign out/i)) links[l].innerHTML = str.replace (/sign out/i, "buh bye!");

else if (str.match (/Next 5/i)) links[l].innerHTML = str.replace (/Next 5/i, "fallen stars");

else if (str.match (/Previous 5/i)) links[l].innerHTML = str.replace (/Previous 5/i, "falling stars")

}//-->
</script>
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: