2 Replies Latest reply on Nov 17, 2008 2:26 PM by Mobilebyrd

    includes sprymenubar not dropping down

    Mobilebyrd
      I created my first Spry Horisontal menubar about a month ago. It works/worked fine when hardcoded into the page. I then tried to setup the spry menubar as an include to make things easier. Now that it is set as an include, the menubar does not expand on mouseover to show the submenus. I do not know why it does it when hardcoded into the page but not when it is listed as an include. Does anyone have any ideas?

      The website using the include is here and the include page is here.

      Thanks in Advance,

      Lee
        • 1. Re: includes sprymenubar not dropping down
          Mobilebyrd Level 1
          I thought posting the code might help.

          Here is the code from the page featuring the include:
          quote:

          <th height="69" colspan="3" align="center" class="style7" scope="col"><!--#include virtual="../includes/header.asp"--></th>



          Here is the code from the included file iteslf (my spr menu ):
          • 2. Re: includes sprymenubar not dropping down
            Mobilebyrd Level 1
            Never mind...I found a little snippet of javascript which Dreamweaver placed inside the <body> tag which solved the problem. Here is what it looks like:

            <script type="text/javascript">
            <!--
            var MenuBar1 = new Spry.Widget.MenuBar("Gilstrap_Navigation_Bar", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
            //-->
            </script>