Jason Johnston wrote:
> Well, that was *almost* right ;-) ... replace that while loop with this:
>
>
> while (tgt && tgt.nodeName.toLowerCase()!="ul" &&
> tgt.className!="foldheader") {
> tgt = tgt.parentNode;
> // this loop bubbles up through the content model to find either
> // a <ul> or a <li class="foldheader">.
> }
> if (!tgt) return; // quit if neither of the above items.
Worked like a charm :)
While there are a few questions i have about the script, i've already got
more than i asked for, thank you.
Now if only using 'style="margin-left: 10px;"' in a <ul> tag would be
inherited by it's nested tags.. ah well :)