Announcement

Collapse
No announcement yet.

Yahoo Section

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

    Yahoo Section

    I want to chasnge the catalogue index that is down the left hand side of my site. At the moment it lists the main sections with the names of the subsections underneath. I'd like it to just list the section names. Is that easy to do???
    Dave

    #2
    Look in Act_Primary.html for:
    Code:
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    <!--
    function YahooSections(ar)
    {
    var strIDs = '';
    for (var i=1;i<=ar.length;i++)
      {
      if (ar[i].sURL != null)
        {
        strIDs += '<a href="' + ar[i].sURL + '"><span class="actxxsmall"><b><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].sName + '</font></b></span></a><br>';
          {
          if (ar[i].pChild)
            {
            for (var j=1;j<=ar[i].pChild.length;j++)
              {
              if (ar[i].pChild[j].sURL != null)
                {
                strIDs += '<a href="' + ar[i].pChild[j].sURL + '"><span class="actxxsmall"><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].pChild[j].sName + '</font></span></a><br>';
                }
              }
            }
          }
        strIDs += '<br>'
        }
      }
    return strIDs
    }
    //-->
    </SCRIPT>
    Delete the red bit.

    Note that there are better ways to do this by replacing YahooSections completely (it generates a huge amount of code and may be slowing down your site). A waste of code using it only for the top-level list.

    Old topic so searching will return many results.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks for that Norman.

      However, deleteing that bit took away all the section names as well as the subsections. I need to keep the section names only.

      I'm wary of fiddling about with the script as I don't know what I'm doing!

      Do you still sell the expandable menu for V7?
      Dave

      Comment


        #4
        Then you probably made a mistake and didn't delete the exact lines I marked. Try again. Code should finally look like:
        Code:
        <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
        <!--
        function YahooSections(ar)
        {
        var strIDs = '';
        for (var i=1;i<=ar.length;i++)
          {
          if (ar[i].sURL != null)
            {
            strIDs += '<a href="' + ar[i].sURL + '"><span class="actxxsmall"><b><font color="NETQUOTEVAR:FGCOLORCSS">' + ar[i].sName + '</font></b></span></a><br>';
            strIDs += '<br>'
            }
          }
        return strIDs
        }
        //-->
        </SCRIPT>
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks Norman that's great.

          I've seen your expanding menu on another site - can I still get it for V7 as I think it looks better than my current menu.
          Dave

          Comment


            #6
            I don't supply V7 versions of anything nowadays as I cannot justify the time needed to maintain and support such an old version of Actinic.

            If you email me I'll send you a copy of Collapso Menu for V7 at no charge but I cannot provide anything other than minimal support.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment

            Working...
            X