關於xanga文章的問題

2008-09-25 1:05 am
我想整到個xanga每頁有3篇文章,比個語法我,
更新1:

我想問下如果唔用語法ge話每頁會顯示幾多篇文章?????

回答 (1)

2008-09-25 1:33 am
✔ 最佳答案
<!-- begin code provided by kkx3.com -->
<script>
numberOfEntries =3; //Change this value here...
if(location.pathname=='/kkxhk'){
var tds = document.getElementsByTagName ('a');
for (var i = 0; i < tds.length; i ) {
timeString = tds.innerText;
if(timeString.match(/\d :\d [ap]m\b/i)){break;}
}
stuff = tds.parentNode.parentNode.parentNode.parentNode.parentNode;
for(j=1;j<numberOfEntries;j ){
stuff=stuff.nextSibling.nextSibling.nextSibling
if(stuff.tagName=='BR'){
stuff=stuff.previousSibling;
}
}
for(i=0;i<20;i ){
if(stuff.tagName=='HR' && stuff.nextSibling.tagName=='TABLE')
{
stuff.nextSibling.removeNode(true);
break;
}
stuff = stuff.nextSibling;
stuff.style.display='none';
}}
</script>
<!-- end code provided by kkx3.com -->




第3 行個3 字代表顯示幾多篇

第4 行kkxhk .. 你需要改做你既XANGA USER ID..

然後放係website stat .. 咁就得架喇..

希望幫倒你啦!!


收錄日期: 2021-05-03 04:00:15
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080924000051KK02059

檢視 Wayback Machine 備份