Announcement

Collapse
No announcement yet.

integrate Slashdot Menu into V7 yahoo sectionlist

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    integrate Slashdot Menu into V7 yahoo sectionlist

    Im trying to integrate a slashdot style drop menu into my V7 website by using the yahoo section script and dropping the relevent tags around the sections.

    The part im stuck on is like this....i need to wrap a <div> tag around the top section and close it after the last child section under that section </div>

    so example

    <div>
    top section
    child section
    child section
    </div>

    and this format needs to be repeated across all parent and child sections regardless of how many subsections there are......im using the

    strIDs += '';

    ive already got the <div> sorted so i just need to close it......so i need something similar to this:

    if (j=ar[i].pChild.length)
    {strIDs += '</div>';
    }

    something which basically says if its the last child in the section.....stick a </div> after it....but what i have doesnt work


    any ideas would be greatly welcomed.

    #2
    If you're using the script fragment shown it should be this:

    if (j==ar[i].pChild.length)
    {strIDs += '</div>';
    }

    Note: double '='

    Comment


      #3
      hehe...thats funny....i already knew that but i tried it before and it never worked..but this time it did ....i was basing it on the for var just having 1 =.....but thanks for that....hopefully i can get it to work now and have a nice smooth js drop menu.

      Comment

      Working...
      X