Log In · Register

 
 
Closed TopicStart new topic
script dont work
rosedoll
post Jun 17 2006, 12:49 AM
Post #1


Senior Member
***

Group: Member
Posts: 78
Joined: Apr 2006
Member No: 391,072



<script type="text/javascript">

function replaceWords()
{
var oldWords = new Array(
"Name:",
"Birthday:",
"Gender:",
"Interests:",
"Expertise:",
"Email:",
"MSN:",
"eprops",
"eprop",
"comments",
"comment",
"email it",
"Subscriptions",
"Get trail subscription"
"My Blogrings",
"Posting Calendar",
"Get Involved!",
"Subscribe to D_ollylolita",
"read my profile",
"sign my guestbook",
"Next 5",
"Previous 5",
"Member Since: ");

var newWords = new Array(
"<marquee behavior=alternate width=30><img src= http://i4.photobucket.com/albums/y105/ai_a...yminiribbon.gif border=0></marquee>",
" ",
"<marquee behavior=alternate width=30><img src= http://i4.photobucket.com/albums/y105/ai_a...nkyminiribb.gif border=0></marquee>",
" ",
"<img src= http://i4.photobucket.com/albums/y105/ai_a...onns/newtvb.gif border=0>",
"e*mel . <img src= http://i4.photobucket.com/albums/y105/ai_a...conns/email.bmp border=0>",
"Msn@@: <img src= http://i4.photobucket.com/albums/y105/ai_a...onns/redflr.gif border=0>",
"<marquee behavior=alternate width=37><img src= http://i4.photobucket.com/albums/y105/ai_a...conns/bara3.gif border=0></marquee> 傻人'] ",
"<marquee behavior=alternate width=37><img src= http://i4.photobucket.com/albums/y105/ai_a...conns/bara7.gif border=0></marquee> '騙人]",
" [`賤人 <marquee behavior=alternate width=37><img src= http://i4.photobucket.com/albums/y105/ai_a...conns/bara3.gif border=0></marquee>",
" [爱人` <marquee behavior=alternate width=37><img src= http://i4.photobucket.com/albums/y105/ai_a...conns/bara7.gif border=0></marquee>",
"<img src= http://i4.photobucket.com/albums/y105/ai_a...onns/heart6.gif border=0>",
"<img src= http://i4.photobucket.com/albums/y105/ai_a...yminiribbon.gif border=0> <img src= http://i4.photobucket.com/albums/y105/ai_a...yminiribbon.gif border=0> <img src= http://i4.photobucket.com/albums/y105/ai_a...yminiribbon.gif border=0>",
" ",
" ",
"<marquee behavior=alternate width=55><img src=http://i4.photobucket.com/albums/y105/ai_aangle/Minii_Iconns/04-09.gif border=0></marquee> <marquee behavior=alternate width=55><img src= http://i4.photobucket.com/albums/y105/ai_a...conns/04-09.gif border=0></marquee>",
"<img src= http://i4.photobucket.com/albums/y105/ai_a...nns/pinkflr.gif border=0> Get Involved <img src= http://i4.photobucket.com/albums/y105/ai_a...nns/pinkflr.gif border=0>",
"<img src= http://i4.photobucket.com/albums/y105/ai_a...onns/18copy.gif border=0>",
"<img src= http://i4.photobucket.com/albums/y105/ai_a...ottprofNAVI.bmp border=0>",
" ",
"<img src= http://i4.photobucket.com/albums/y105/ai_a..._Iconns/754.gif border=0>",
"<img src= http://i4.photobucket.com/albums/y105/ai_a..._Iconns/753.gif border=0>",
"<img src= http://i4.photobucket.com/albums/y105/ai_a...nns/eicon21.gif border=0> Date");


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]);
if(navigator.userAgent.toLowerCase().indexOf('compatible')>0){collections[k][i].innerHTML=replacement;//please use supported code at http://help.xanga.com/codes.htm
}
break;
}
}
}
}
}
}
replaceWords();
</script>
 
gelionie
post Jun 17 2006, 01:36 AM
Post #2


say maydayism.
*******

Group: Staff Alumni
Posts: 7,267
Joined: Jun 2004
Member No: 26,344



You left out the "s in the image tags.

It should be like this:
QUOTE
<img src="http://www.blah.com/asldkjsdf.gif" border=0>"
 
rosedoll
post Jun 17 2006, 01:56 AM
Post #3


Senior Member
***

Group: Member
Posts: 78
Joined: Apr 2006
Member No: 391,072



nooo...... u could leeave it with no "s in it too!
 
gelionie
post Jun 17 2006, 03:48 AM
Post #4


say maydayism.
*******

Group: Staff Alumni
Posts: 7,267
Joined: Jun 2004
Member No: 26,344



^ I don't think so. wink.gif

Does it work with the "s then?
 
rosedoll
post Jun 17 2006, 08:40 PM
Post #5


Senior Member
***

Group: Member
Posts: 78
Joined: Apr 2006
Member No: 391,072



it still didnt work with the " in it....
 
talcumpowder
post Jun 18 2006, 06:37 PM
Post #6


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,336
Joined: Mar 2005
Member No: 114,010



They need to be single quotes. ' <- like so.
And you have spaces that screw with the code too.
 
rosedoll
post Jun 18 2006, 07:39 PM
Post #7


Senior Member
***

Group: Member
Posts: 78
Joined: Apr 2006
Member No: 391,072



haha..... u dont have to put ' or either " this..... my code is working now..thankyou!! =]]]
 
gelionie
post Jun 19 2006, 08:51 PM
Post #8


say maydayism.
*******

Group: Staff Alumni
Posts: 7,267
Joined: Jun 2004
Member No: 26,344



[ TOPIC CLOSED ]
 

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