1 Reply Latest reply on Jul 25, 2007 9:15 AM by Bopjo

    Accordian Spry Widget

    Bopjo
      Hi,

      I have a page here:

      CLICK HERE

      That uses the Accordian Widget. My question is how can I change the default open panel? I want the bottom panel open when the page loads, with the 2 top panels closed.

      Any help would be most appreciated.
        • 1. Re: Accordian Spry Widget
          Bopjo Level 1
          I found the answer on the Lab forums:

          Put this :

          <script type="text/javascript">
          var acc1 = new Spry.Widget.Accordion("Accordion1", { defaultPanel: 2 });
          </script>

          Instead of this:

          <script type="text/javascript">
          <!--
          var Accordion1 = new Spry.Widget.Accordion("Accordion1");
          //-->
          </script>

          near the bottom of your page