help with link |
help with link |
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> |
|
|
|
ooditzystarsoo help with link Sep 3 2004, 03:05 PM
Sherry_Vu if you right click it? that's strange... can w... Sep 3 2004, 03:21 PM
ooditzystarsoo there ya go!!! Sep 3 2004, 03:23 PM
TrannieL I see nothing with the code. Can i see ur xanga?
... Sep 3 2004, 03:24 PM
ooditzystarsoo hmmm it still isnt working. and haha yeah i know... Sep 3 2004, 03:43 PM
TrannieL Change it to "subcribe!"
- Tran - Sep 3 2004, 03:49 PM
ooditzystarsoo nope its not ur guys fault... im jus frustrated ... Sep 3 2004, 04:03 PM
C.Lime.Jello. You have one caputalized and one lowercase.
It... Sep 3 2004, 05:36 PM![]() ![]() |