Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jianchun You 9 posts 55 karma points
    Dec 10, 2013 @ 12:30
    Jianchun You
    0

    how to hover (not to click) 2nd Navigation

    Hi,

    we have many items of 2nd Navi from some Top navigations and we would like to display these long vertical 2nd Navis with Mouse-Over.

    I can get hovered and fix-coded sub-menu in CSS, just in Umbraco, I implement all top and 2nd Navis within XSLT, for 2nd Navis just like:

    ... xsl:template match="/">

    xsl:variable name="items" select="$currentPage/ancestor-or-self::* [@isDoc and @level = 2]/* [@isDoc and string(umbracoNaviHide) != '1']"/>

    <xsl:if test="count($items) &gt; 0">
      <ul class="arrowlistmenu">
        <xsl:for-each select="$items">
          <li>
            <a href="{umbraco.library:NiceUrl(@id)}">
              <xsl:value-of select="@nodeName"/>
            </a>
          </li>
        </xsl:for-each>
      </ul>
    </xsl:if>
    

    /xsl:template> ...

    But this works only if user click any Top navi then get er all 2nd menus from CURRENT Top navi.

    Since the vertical list of 2nd menus are to long and cover the view in content area, Is that possible to get all 2nd menus with Mouse-Over (not Mouse-Click)? so that the long list will be displayed only when mouse over its top manu?

    Many Thanks for your suggestion!

    best regards

    Jianchun You

  • Jianchun You 9 posts 55 karma points
    Dec 10, 2013 @ 16:45
    Jianchun You
    0

    the problem is, how could I get diff. $currentPage in XSLT with Mouse-Over but not with Mouse-click.

    Jianchun

Please Sign in or register to post replies

Write your reply to:

Draft