2006 |
09,01 |
«樹狀分類詳細說明»
除了要把原先"分類欄位"的語法改成
<div class="plugin_data" id="categorylist">
<ul>
<!--plugin_category-->
<li><a href="<!--$plugin_category_link-->"><!--$plugin_category_title--> (<!--$plugin_category_num-->)</a></li>
<!--/plugin_category-->
</ul>
</div>
圖解:
之後。
還要把一個語法插入"主題樣板"<body> </body>之中的任意位置,在miu_uim大大的所提供的語法的最下面。
語法如下
=========>
<script type="text/javascript">
<!--
// JavaScript based on : JUGEMカスタマイズ講座(http://nz.jugemers.net/log/eid31.html)
// customize by : まめの一言(JUGEM出張所)(http://mamejiro.jugem.cc/?eid=179)
// customize by : ニンブロラボ.(http://shinobibloglab.blog.shinobi.jp/Entry/2/)
// customize by : playground(http://mannequin.blog.shinobi.jp/Entry/45/)
function makeTreeElements (idName,objList) {
if (!objList.innerHTML) return;
var objLink = objList.getElementsByTagName('a')[0];
var linkUrl = objLink.getAttribute('href');
if (idName.indexOf('comment') > -1 || idName.indexOf('tb') > -1) {
var tmplinkUrl = linkUrl.split("#");
var tmpText = objList.innerHTML.split("⇒");
tmpText[0] = tmpText[0].slice(0,tmpText[0].search(/<BR/i));
this.base = Array('<a href="',tmplinkUrl[0],'">',tmpText[0],'</a>').join('');
this.elem = tmpText[1];
} else if (idName.indexOf('entry') > -1) {
var tmpText = objList.innerHTML;
tmpText.match(/\((\d{2}.+)\)/);
this.base = RegExp.$1;
this.elem = Array('<a href="',linkUrl,'">',objLink.innerHTML,'</a>').join('');
} else if (idName.indexOf('link') > -1) {
var tmpTarget = objLink.getAttribute('target');
var tmpText = objList.innerHTML;
if ( tmpText.match(/\[(.+)\](.+)/) ) {
this.base = RegExp.$1;
this.elem = Array('<a href="',linkUrl,'" target="',tmpTarget,'">',RegExp.$2,'</a>').join('');
}
} else if (idName.indexOf('category') > -1) {
var tmpText = objList.innerHTML;
if ( tmpText.match(/\[(.+)\](.+)/) ) {
this.base = RegExp.$1;
this.elem = Array('<a href="',linkUrl,'">',RegExp.$2).join('');
}
} else if (idName.indexOf('archive') > -1) {
var tmpText = objList.innerHTML;
tmpText.match(/\((\d+)\)/);
var tmpCnt = Array(' (', RegExp.$1, ')').join('');
tmpText = objLink.innerHTML;
tmpText.match(/\[(.+)\](.+)/);
this.base = RegExp.$1;
this.elem = Array('<a href="',linkUrl,'">',RegExp.$2,'</a>', tmpCnt).join('');
}
return this;
}
function createTreeList(idName,option) { // version 2.2
var objFocus = this.document.getElementById(idName);
if (!objFocus) return;
if (!objFocus.innerHTML) return;
var objLists = objFocus.getElementsByTagName('li');
var linkList = new Array();
var outText = new Array();
if (objLists.length > 0) {
for (i=0;i<objLists.length;i++) {
var chckFlag = true;
var elemText = new makeTreeElements(idName,objLists[i]);
if (!elemText.base || !elemText.elem) return;
for (j=0;j<linkList.length;j++) {
if ( linkList[j].base.indexOf(elemText.base) > -1 ) {
chckFlag = false;
linkList[j][linkList[j].length] = elemText.elem;
}
}
if (chckFlag) {
var tmpNum = linkList.length;
linkList[tmpNum] = new Array();
linkList[tmpNum][0] = elemText.elem;
linkList[tmpNum].base = elemText.base;
}
}
if (linkList.length > 0) {
outText[outText.length] = '<ul>\n';
for (i=0;i<linkList.length;i++) {
outText[outText.length] = Array('<li>',linkList[i].base,option.top).join('');
if (linkList[i].length > 0 && option.sort) linkList[i].reverse();
for (j=0;j<linkList[i].length;j++) {
outText[outText.length] = (j == linkList[i].length - 1) ? option.end : option.list;
outText[outText.length] = Array(linkList[i][j],option.leef).join('');
}
outText[outText.length] = Array(option.btm,'</li>').join('');
}
outText[outText.length] = '</ul>\n';
objFocus.innerHTML = outText.join('');
}
}
}
var gTreeOption = new Array;
gTreeOption['sort'] = false; /* ツリー内の表示順 true:並び替える false:そのまま */
gTreeOption['list'] = '⇒ '; /* ツリー用マーク(通常) */
gTreeOption['end'] = '⇒ '; /* ツリー用マーク(末端) */
gTreeOption['leef'] = '<br>\n'; /* 各枝の末尾 */
gTreeOption['top'] = '<br>\n'; /* ツリー本体の最初 */
gTreeOption['btm'] = ''; /* ツリー本体の最後 */
createTreeList('entrylist',gTreeOption); // 最新記事リストのツリー化
createTreeList('linklist',gTreeOption); // リンクリストのツリー化
createTreeList('categorylist',gTreeOption); // カテゴリーリストのツリー化
createTreeList('archivelist',gTreeOption); // アーカイブリストのツリー化
gTreeOption['sort'] = false; /* ツリー内の表示順 true:並び替える false:そのまま */
gTreeOption['list'] = '┣'; /* ツリー用マーク(通常) */
gTreeOption['end'] = '┗'; /* ツリー用マーク(末端) */
gTreeOption['leef'] = '<br>\n'; /* 各枝の末尾 */
gTreeOption['top'] = '<br>\n'; /* ツリー本体の最初 */
gTreeOption['btm'] = ''; /* ツリー本体の最後 */
createTreeList('commentlist',gTreeOption); // 最新CMリストのツリー化
createTreeList('tblist',gTreeOption); // 最新TBリストのツリー化
// -->
</script>
見圖:
然後再把你要的分類打成[大分類]小分類就可以了。
記得要把"<>"取代成"<>"
語法都是由miu_uim大大所提供的。
我只是解釋一下而已。
PR
Post your Comment
Re:無題
cherry,你好
不知道我增加圖解說明以後你是否成功了呢?
不知道我增加圖解說明以後你是否成功了呢?
Re:無題
那個留言板是Cbox,很簡單就可以申請的
Re:謝謝!
不會:)
有問題如果我能幫你一定會回答的。
有問題如果我能幫你一定會回答的。
Re:謝謝您!
不會,小弟只是寫個簡單的教學而已,你的教學才是讓小弟受惠許多。
Re:成功了
不會不會
樹狀分類不成功?
我只有在分類跟link欄位貼上語法,然後就把上面的語法貼進<body></body>之間,再去改成[大分類]小分類,結果沒有成功..不知道是什麼原因..還有我看不懂最後一句把 < >改成<>是改哪裡耶...
hello
nice site... look on my site
http://www.desklamp.fora.pl - desk lamp
http://www.lampshades.fora.pl - lamp shades
http://www.desklamp.fora.pl - desk lamp
http://www.lampshades.fora.pl - lamp shades
hello
Hi, nice page.!
look on my pages:
<a href="http://profitc.free-site-host.com/advisor-associate-international-international-profit-tax/conservation-dedicated-organization-profit.html">conservation dedicated organization profit</a>
ok.. bitte
look on my pages:
<a href="http://profitc.free-site-host.com/advisor-associate-international-international-profit-tax/conservation-dedicated-organization-profit.html">conservation dedicated organization profit</a>
ok.. bitte
hello
Hi, nice page.!
look on my pages:
<a href="http://profitb.free-site-host.com/associate-international-profit/associate-international-news-profit.html">associate international news profit</a>
ok.. bitte
look on my pages:
<a href="http://profitb.free-site-host.com/associate-international-profit/associate-international-news-profit.html">associate international news profit</a>
ok.. bitte
vajoubclds
The Victoria actor who got his start playing a bully in a Hummer commercial directed by Scott Hicks (Shine) is now being featured in Heartland as Ben Stillman, a privileged ranch hand with attitude. His brooding character is recruited to help a teenaged horse whisperer, Amy, played by Amber Marshall (The Elizabeth Smart Story), her older sister Lou (Michelle Morgan) and their Grandpa Jack (Shaun Johnston) work the ranch that specializes in the care of abused and neglected horses. Based on the best selling novels by Lauren Brooke, Heartland also stars Chris Potter as Amy's estranged father whose re emergence after her mother's sudden death sparks tensions, and Graham Wardle as Amy's love...<br><a href='http://blogger4u.info/news/41187'>http://blogger4u.info/</a>
AS
Hello, nice site look this:
http://gayporn.free-porns.info/gayporn-twins.html gayporn twins
End ^) See you
Nice site!
Good.
Cool.
http://gayporn.free-porns.info/gayporn-twins.html gayporn twins
End ^) See you
Nice site!
Good.
Cool.
AS
Hello, nice site look this:
http://teenporn.free-porns.info/teenporn-videos.html teenporn videos
End ^) See you
Nice site!
Good.
Cool.
http://teenporn.free-porns.info/teenporn-videos.html teenporn videos
End ^) See you
Nice site!
Good.
Cool.
AS
Hello, nice site look this:
http://cheapticket.google-ca.info/cheapticket-coupon-code.html cheapticket coupon code
End ^) See you
Nice site!
Good.
Cool.
http://cheapticket.google-ca.info/cheapticket-coupon-code.html cheapticket coupon code
End ^) See you
Nice site!
Good.
Cool.
AS
Hello, nice site look this:
http://airlines.google-ca.info/alitalia-airlines.html alitalia airlines
End ^) See you
Nice site!
Good.
Cool.
http://airlines.google-ca.info/alitalia-airlines.html alitalia airlines
End ^) See you
Nice site!
Good.
Cool.
AS
Hello, nice site look this:
http://you-porns.info/youporn-vidos.html youporn vidos
End ^) See you
Nice site!
Good.
Cool.
http://you-porns.info/youporn-vidos.html youporn vidos
End ^) See you
Nice site!
Good.
Cool.
NeergeAcize
NeergeAcize, http://www.thevinebar.com/ - order adipex online Also, make sure to take this medication earlier in the day so you do not have problems sleeping, generally itпїЅs taken before breakfast. http://www.thevinebar.com/ - adipex 37.5
カレンダー
フリーエリア
最新回應
最新記事
最新TB
プロフィール
HN:
Rainlay
性別:
男性
ブログ内検索
留言板
カウンター
アクセス解析