Log In · Register

 
Umm i dont know how to explain this..., something to do with changing "comment"
computershateme
post Oct 2 2004, 11:29 AM
Post #1


Senior Member
***

Group: Member
Posts: 69
Joined: Aug 2004
Member No: 40,538



alrighty lets see, now im using this code to change the words "eprops" and "comments" into whatever i like, its a pretty common code and i dont know if i need to post it but i am just going to anyway :
CODE
<!-- begin code provided by createblog.com -->
<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 (/eprops/i)) links[l].innerHTML = str.replace (/eprops/i, "Bleeding Roses");
else if (str.match (/eprop/i)) links[l].innerHTML = str.replace (/eprop/i, "Bleeding Rose");
else if (str.match (/comments/i)) links[l].innerHTML = str.replace (/comments/i, "Sweet Nothings");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, "Sweet Nothing");
else if (str.match (/subscribe!/i)) links[l].innerHTML = str.replace (/subscribe!/i, "Lose yourself in the darkness..");
else if (str.match (/sign out/i)) links[l].innerHTML = str.replace (/sign out/i, "Don't leave me here, by myself. I can't breathe..");
}//-->
</script>
<!-- end code provided by createblog.com -->

now, at the bottom of each entry where it says "add eprops" and "add comments" this code is working for me just fine. it replaces both the words "eprops" and "comments" with what i have in the code. now, when you actually CLICK on the comments link and it takes you to the page where theres is just that entry and the comments only, right under the entry is a link that says "Give eprops or post a comment". this code i've notived only changes the word "eprops" in this link to what i have in my code, BUT it doesnt change the "comments" word. so, it reads "Give bleeding roses or post a comment" my question is, why doesnt is say "Give bleeding roses or post a sweet nothing" like i have in my code? is there any way to fix that so it does? i've noticed almost every xanga has this problem.... i'd appreciate it much! happy.gif
 

Posts in this topic


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