ツリー化 スクリプト不具合 対処 (Serene Bach / sb)
Serene Bach / sb でツリー
Serene Bach / sb の
なお
--- maketree.js.bak Wed Jan 25 23:54:52 2006
+++ maketree.js Wed Jan 25 23:55:49 2006
@@ -27,9 +27,12 @@
}
// 最初 の要素 がULの場合 , class属性 (tree)を設定
- if(nodes[0].nodeName == 'UL'|| nodes[0].nodeName == 'ul'){
- nodes[0].setAttribute('class', 'tree');
- nodes[0].setAttribute('className', 'tree');
+ for (var i = 0; i < nodes.length; i++) {
+ if(nodes[i].nodeName == 'UL'|| nodes[i].nodeName == 'ul'){
+ nodes[i].setAttribute('class', 'tree');
+ nodes[i].setAttribute('className', 'tree');
+ break;
+ }
}
for (var i = 0; i < nodes.length; i++) {
![]() |
- Serene Bach で
異 なるツリー化 カスタマイズを同時 に利用 する - JavaScript
不要 なサイドメニューのツリー化 for Serene Bach 罫線 つきのカテゴリーリストにツリー化 スクリプトを適用 する- サイドメニューのツリー
化 スクリプト for Serene Bach
≫ サイドメニューのツリー
ごめんなさい、
ありがとうございました。
たびたびすみません、↑ さえらです。また
これって ほかのかたでは
もちろん、お
ひらがなや
どなたも このところに
>さえらさん
こんにちは。
ご
それではよろしくお