改xanga profile<20分呀!>

2008-07-08 1:45 am
我想將xanga入面既profile改晒去,
即系連呢d:
------------------------
Name: cin dy
Country: Hong Kong
Birthday: 4/3/1993
Gender: Female

Message: message me
MSN: msn*xd

Member Since: 4/13/2006
------------------------
全部都吾要,
改晒做自己既文字,
有咩語法可以做到以上效果???

回答 (2)

2008-07-09 3:14 am
✔ 最佳答案
<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr><td valign="bottom" align="right"><script type="text/javascript">
function replaceWords()
{
// ***add the words or fragments you wish to replace below
var oldWords = new Array(

"Name:",
"Country: ",
"Birthday:",
"Gender",
"Website:",
"Message:",
"MSN:",
"Member Since:");

// *** add the replacing words or fragments below
var newWords = new Array(

" *",
" *",
" *",
" *",
" *",
" *",
" *",
" *",
"*",
"* ");

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>


"*" < 星星 果d系你自己想要既字
你要對番再上面有Name.Country.等既次序
參考: 自己
2008-07-08 1:56 am
都係盡量修改..[有可能] 有d野改唔到

http://xangadesign.marlito.com/viewthread.php?tid=20


收錄日期: 2021-04-15 15:18:17
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080707000051KK02102

檢視 Wayback Machine 備份