View Full Version : xanga-changing words


betweenworlds
07-19-2003, 09:02 PM
I need help with the code on xanga where u change the eprops,signout,xanga,comments,links stuff I tried this code but it didnt work. even tho i put it in webstats box


<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, "REPLACEMENT WORD");else if (str.match (/COMMENTS/i)) links[l].innerHTML = str.replace (/COMMENTS/i"REPLACEMENT WORD");else if (str.match (/SIGN OUT/i)) links[l].innerHTML = str.replace (/SIGN OUT/i, "REPLACEMENT WORD");else if (str.match (/VIEW ENTIRE PROFILE/i)) links[l].innerHTML = str.replace (/VIEW ENTIRE PROFILE/i, "REPLACEMENT WORDS");else if (str.match (/SIGN MY GUESTBOOK/i)) links[l].innerHTML = str.replace (/SIGN MY GUESTBOOK/i, "REPLACEMENT WORDS");else if (str.match (/XANGA/i)) links[l].innerHTML = str.replace (/XANGA/i, "REPLACEMENT WORDS");else if (str.match (/EMAIL IT/i)) links[l].innerHTML = str.replace (/EMAIL IT/i, "REPLACEMENT WORD")



}

//-->
</script>



is there somethign wrong?

Sum1YouDontKno
07-19-2003, 10:44 PM
Nothings wrong except you're forgeting script at the end...

me_like_agua
07-20-2003, 12:10 AM
I was also wondering how to do that and you know how on some people's xanga posts, their writing is aligned straight without the edges of words sticking out. How do you do that?

betweenworlds
07-20-2003, 01:57 AM
what script at the end?

me_like_agua
07-20-2003, 02:27 AM
Well, I've just figured out the whole code that my friend sent me so here it is. Make sure you put it in "Website Stats."

<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr><td valign="bottom" align="right"><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, " KUDO");
else if (str.match (/comment/i)) links[l].innerHTML = str.replace (/comment/i, " WISECRACK");
else if (str.match (/email it/i)) links[l].innerHTML = str.replace (/email it/i, " ELECTONIC MAIL");
else if (str.match (/xanga/i)) links[l].innerHTML = str.replace (/xanga/i, " XANGANGRENE");
else if (str.match (/events/i)) links[l].innerHTML = str.replace (/reviews/i, " RECREATIONS");
else if (str.match (/subscribe/i)) links[l].innerHTML = str.replace (/subscribe/i, " SUBSCRIBE");
else if (str.match (/sign in/i)) links[l].innerHTML = str.replace (/sign in/i, " BUST IN");
else if (str.match (/sign out/i)) links[l].innerHTML = str.replace (/sign out/i, " BUST OUT");
else if (str.match (/join/i)) links (/join/i, " CONSORT");
else if (str.match (/sign my guestbook/i)) links[l].innerHTML = str.replace (/sign my guestbook/i, " YOUR SIGNATURES");
else if (str.match (/view entire profile/i)) links[l].innerHTML = str.replace (/view entire profile/i, "EXPOSE EVERYTHING");
else if (str.match (/me_like_agua/i)) links[l].innerHTML = str.replace (/basiq_pnay /i, "ME_LIKE_AGUA!");}


//-->
</script>

And that's it. Just to make sure you know which part you want to change for it to work here....

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

Let's say you wanted to change the EPROPS, all you have to change is that KUDO word into whatever you want and so on with the rest of the other titles. You'll figure it out

betweenworlds
07-20-2003, 03:13 AM
awesome thx!

roxy
07-20-2003, 03:47 AM
i want to put this frame around my whole entire xanga page but i have no clue where to put the code..
here the code
<style type=text/css>
<!--
body {
border-style: solid;
border-top-width: 25px;
border-bottom-width: 25px;
border-left-width: 10px;
border-right-width: 10px;
border-color: #ccccff }
-->
</style>
thanks

bRiTtLiShUs
07-20-2003, 03:49 AM
in website stats..if that`s what you are asking..?