2 Replies Latest reply on Aug 22, 2011 7:58 PM by BenPleysier

    My Spry Sub Menu has dissapeared!

    stagsrule77

      I had a spry sub menu set up along the navigation going vertically down the right hand side, it was in full working order but then for some reason it just dissapeared. I was hoping someone may be able to look at the code and see if they could spot anything that would cause the sub menu to vanish! I would really appreciate any help.

       

      Here's the HTML for my web page:

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title>Matilda Wren Vintage Shop</title>
      <style type="text/css">
      <!--
      body {
          background-image: url(Images/matildawebhome.jpg);
          background-attachment: scroll;
          background-repeat: no-repeat;
          background-position: top;
         
      }
             
             
      body,td,th {
          color: #000;
      }
      -->
      </style>
      <link href="CSS/layout.css" rel="stylesheet" type="text/css" />

       


      <style type="text/css">
      <!--
      a:link {
          color: #666;
          text-decoration: none;
      }
      a:visited {
          text-decoration: none;
          color: #666;
      }
      a:hover {
          text-decoration: none;
          color: #666;
      }
      a:active {
          text-decoration: none;
          color: #666;
      }
      -->
      </style>
      <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
      <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
      </head>

       

       

       

       

       

      <body>

       

      <br/><div id="floatingbox">  </div>

       

      <DIV STYLE="position:absolute; top:2px; left:688px; width:374px; height:356px">
      <div align="left">
        <p> Matilda Wren owns a beautiful wardrobe of vintage treasures and has decided to share them with you at very reasonable prices to make room for more! She has clothes, home ware and furniture that are all one of a kind. Matilda just wants to shop for beautiful things, to always look different and for the world to look as wonderfully unique as she does.<br/><br/><br/><br/>Phone: 07800829626<br/>Email: matilda_wren@hotmail.co.uk </p>
        </div>
      </DIV>

       

      <div id="navigation"> <br /><br />
        <a href="index.html">Home</a> <br /><br /> --- <br /><br />
      <a href="about.html">About</a><br /><br />---<br /><br />
      <ul id="MenuBar1" class="MenuBarVertical">
        <li><a class="MenuBarItemSubmenu" href="#">Shop</a>
          <ul>
            <li><a href="#" class="MenuBarItemSubmenu">Clothing</a>
              <ul>
                <li><a href="#">Dresses</a></li>
                <li><a href="#">Tops</a></li>
                <li><a href="#">Jumpers</a></li>
                <li><a href="#">Trousers</a></li>
                <li><a href="#">Skirts</a></li>
                <li><a href="#">Shorts</a></li>
                <li><a href="#">Accessories</a></li>
                <li><a href="#">Shoes</a></li>
              </ul>
            </li>
            <li><a href="#">Homeware</a></li>
            <li><a href="#">Furniture</a></li>
            <li><a href="#">Books</a></li>
            <li><a href="#">Music</a></li>
          </ul>
        </li>
      </ul><br />
      ---<br />
      <br />
      Gallery <br /><br />
      ---<br /><br /> 
      <a href="contact.html">Contact</a><br /><br /><br /></div>
      <script type="text/javascript">
      <!--
      var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
      var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
      //-->
      </script>
      </body>
      </html>

       

      And here's the CSS for the spry menu bar:


      @charset "UTF-8";

       

      /* SpryMenuBarVertical.css - version 0.6 - Spry Pre-Release 1.6.1 */

       

      /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

       

      /*******************************************************************************

       

      LAYOUT INFORMATION: describes box model, positioning, z-order

       

      *******************************************************************************/

       

      /* The outermost container of the Menu Bar, a fixed width box with no margin or padding */
      ul.MenuBarVertical
      {
          margin: 0;
          padding: 0;
          font-size: 100%;
          width: 3.5em;
      }
      /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
      ul.MenuBarActive
      {
          z-index: 1000;
      }
      /* Menu item containers, position children relative to this container and are same fixed width as parent */
      ul.MenuBarVertical li
      {
          margin: 0;
          padding: 0;
          font-size: 100%;
          width: 3.5em;
          height: 42px;
      }
      /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
      ul.MenuBarVertical ul
      {
          margin: -5% 0 0 176%;
          padding: 0;
          font-size: 100%;
          position: absolute;
          width: 145px;
          left: -1000em;
          top: 0px;
          background-image: url(../Images/polka.jpg);
          margin-top: 0px;
         
      }
      /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */
      ul.MenuBarVertical ul.MenuBarSubmenuVisible
      {
          left: 0;
      }
      /* Menu item containers are same fixed width as parent */
      ul.MenuBarVertical ul li
      {
          width: 3.4em;
      }

       

      /*******************************************************************************

       

      DESIGN INFORMATION: describes color scheme, borders, fonts

       

      *******************************************************************************/

       

      /* Outermost menu container has borders on all sides */
      ul.MenuBarVertical
      {

       

      }
      /* Submenu containers have borders on all sides */
      ul.MenuBarVertical ul
      {

       

      }
      /* Menu items are a light gray block with padding and no text decoration */
      ul.MenuBarVertical a
      {
          display: block;
          cursor: pointer;
          padding: 0.5em 0.75em;
          color: #666;
          text-decoration: none;
      }
      /* Menu items that have mouse over or focus have a blue background and white text */
      ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
      {

       

      }
      /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
      ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
      {

       

      }

       

      /*******************************************************************************

       

      SUBMENU INDICATION: styles if there is a submenu under a given menu item

       

      *******************************************************************************/

       

      /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
      ul.MenuBarVertical a.MenuBarItemSubmenu
      {
          background-repeat: no-repeat;
          background-position: 95% 50%;
      }

       

      /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
      ul.MenuBarVertical a.MenuBarItemSubmenuHover
      {
          background-repeat: no-repeat;
          background-position: 95% 50%;
      }

       

      /*******************************************************************************

       

      BROWSER HACKS: the hacks below should not be changed unless you are an expert

       

      *******************************************************************************/

       

      /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
      ul.MenuBarVertical iframe
      {
          position: absolute;
          filter:alpha(opacity:0.1);
      }
      /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
      @media screen, projection
      {
          ul.MenuBarVertical li.MenuBarItemIE
          {
              float: right;
          background: #FFF;
          }
      }

       

       

      Thanks, Richard

        • 1. Re: My Spry Sub Menu has dissapeared!
          John Waller Adobe Community Professional & MVP

          Nothing obvious there at first glance.

           

          Please upload the problem page to the web and post a link here so we can take a look in our browsers.

          • 2. Re: My Spry Sub Menu has dissapeared!
            BenPleysier Adobe Community Professional & MVP

            When I see this

            /********************************************************************* **********

             

            BROWSER HACKS: the hacks below should not be changed unless you are an expert

             

            ********************************************************************* **********/

             

            /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
            ul.MenuBarVertical iframe
            {
                position: absolute;
                filter:alpha(opacity:0.1);
            }
            /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
            @media screen, projection
            {
                ul.MenuBarVertical li.MenuBarItemIE
                {
                    float: right;
                background: #FFF;
                }
            }

            and compare that with the original

            /*******************************************************************************

            BROWSER HACKS: the hacks below should not be changed unless you are an expert

            *******************************************************************************/

            /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
            ul.MenuBarVertical iframe
            {
                position: absolute;
                z-index: 1010;
                filter:alpha(opacity:0.1);
            }
            /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
            @media screen, projection
            {
                ul.MenuBarVertical li.MenuBarItemIE
                {
                    display: inline;
                    f\loat: left;
                    background: #FFF;
                }
            }

            I think that this guy must be an expert or he cannot read.

             

            In fact, this is just a small section that I have quted, the whole CSS is a mess.

             

            My suggestion to you is to

             

            Gramps (grumpy at times)