Log In · Register

 
 
Closed TopicStart new topic
replacing text question..., whats the code for....
superRADidiot
post Jan 31 2004, 01:08 AM
Post #1


superRADidiot
**

Group: Member
Posts: 11
Joined: Jan 2004
Member No: 2,073



i understand the replacing text code and i used it for my name, year i was born and what not... but i dont understand how you can change the answers to those.. like its says... girl or guy.. and i want the answer to be girl but it will only let me put female.. i also want to add the city i live in and not just the state.. any help.. please. thank you!!!
 
aznhybriddragon
post Jan 31 2004, 01:22 AM
Post #2


Senior Member
*****

Group: Member
Posts: 946
Joined: Jan 2004
Member No: 603



QUOTE(superRADidiot @ 01-30-2004, 10:08 PM)
i understand the replacing text code and i used it for my name, year i was born and what not... but i dont understand how you can change the answers to those.. like its says... girl or guy.. and i want the answer to be girl but it will only let me put female.. i also want to add the city i live in and not just the state.. any help.. please. thank you!!!

i am lost...............

Also there is a topic Especially for replacing text
 
mznina
post Feb 17 2004, 12:23 PM
Post #3


Mz Nina Nikole
******

Group: Member
Posts: 1,343
Joined: Feb 2004
Member No: 4,273



<!-- end code provided by cbstaff.com -->

<script type="text/javascript">
//
// &copy; EasterEgg, http://www.xanga.com/easteregg
//
// For use at Xanga only.
//
// This script replaces any given word or text fragment with
// whatever you want: new words and fragments, or even HTML!
//
// Actually it's pretty simple: add the words or fragments you
// wish to replace to the array "oldWords" (each word placed
// between double quotation marks, and separated by colons as you
// can see below) and add their replacements to the array "newWords",
// at the same position as the original words in "oldWords".
// The example is pretty self-explaining.
//
// The script is case sensitive, meaning that if you add "something"
// to "oldWords" array it will not recognize "SOMETHING", or "SoMetHInG".
//
// You can adjust the existing arrays in this code as you see fit,
// as long as both arrays keep the same size (same amount of words
// in both arrays), otherwise a script error will occur.
//
// Copy this entire code and paste in the webstats box at your
// Look and Feel page.
//
// You're free to use this script as long as this comment remains intact,
// and as long you won't use it to cripple the comments of your visitors;
// after all, no one likes his/her words getting twisted...
//
function replaceWords()
{
// ***add the words or fragments you wish to replace below
var oldWords = new Array(
"Sites I Read",
"Publish Comments",
"add eProps",
"eprop",
"eProps",
"add comments",
"comment",
"comments",
"email it",
"view entire profile",
"sign my guestbook",
"My Blogrings",
"Posting Calendar",
"Get Involved!",
"sign out",
"Real Name",
"Birthday",
"Gender",
"Location",
"Website",
"Send Love",
"Stats",
"Member since");

// *** add the replacing words or fragments below
var newWords = new Array(
"Sites I Read",
"Publish Comments",
"add eProps",
"eprop",
"eProps",
"add comments",
"comment",
"comments",
"Send Lov",
"View My Profile?",
"Sign My Guestbook?",
"HOT STUFF",
"Lookin baq`on the old days`",
"Whats Really Good",
"Leaving?",
"Call Me",
"B-day",
"Sex",
"New York",
"Website",
"Send Love",
"",
"Est. Since");

allTableData = document.getElementsByTagName('td');
allTableHeaders = document.getElementsByTagName('th');

var collections = new Array(allTableData,allTableHeaders);

for (var k = 0; k < collections.length; ++k )
{
for (var i = 0; i < collections[k].length; ++i )
{
if (collections[k][i].innerHTML.indexOf('TABLE') == -1)
{
for ( var n = 0; n < oldWords.length; ++n )
{
var indx = collections[k][i].innerHTML.indexOf(oldWords[n])
while (indx != -1)
{
var replacement = '';
indx = collections[k][i].innerHTML.indexOf(oldWords[n]);
replacement = collections[k][i].innerHTML.replace(oldWords[n], newWords[n]);
collections[k][i].innerHTML = replacement;
break;
}
}
}
}
}
}
replaceWords();
</script>
 
mznina
post Feb 17 2004, 12:23 PM
Post #4


Mz Nina Nikole
******

Group: Member
Posts: 1,343
Joined: Feb 2004
Member No: 4,273



that looks a lil funny, welps i hope that works. and i hope i answered ur question if not sorry.
 
FranzKemmerich
post Feb 17 2004, 05:30 PM
Post #5


Senior Member
***

Group: Member
Posts: 44
Joined: Feb 2004
Member No: 4,355



that one isnt the one she's asking for mnzina...I don't think there's a code that allows you to do that because that stuff is part of the setup wizard. ermm.gif
 

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