Accordion widget - put a button to go to next panel

Hi,
There is any way to put a button that, if some form's
requestes are respected, go to next panel?
I understood this make the next panel appear
Spry.Widget.Accordion.prototype.openNextPanel = function()
return this.openPanel(this.getCurrentPanelIndex() + 1);
but some ting like that (put in the page) doesn't work
if( validation == true){
function nextPanel()
return this.openPanel(this.getCurrentPanelIndex() + 1);
I need also to disable the function making go to next panel
on clicking the "label" (So the button will be the only way to
change panel)

No one knows?

Similar Messages

  • Don't put the buttons so far apart next ti

    Why in the name of whomever you pray to, did you put the buttons so far apart? They need to be centralized a little more, maybe in the middle ground between the edges and the touchpad.

    I take it you committing on the Zen Touch then?

  • Open an accordion widget in the closed state?

    I have searched the forums but have yet to find a resolution
    for this issue. I am using an accordion widget and would like for
    all of my panels to appear closed when the page initially loads.
    Only once the user has clicked the tab do I want the panels to
    open. Any suggestions that do not require me to buy a separate plug
    in? Thanks.

    This is directly from the Adobe documentation:
    http://labs.adobe.com/technologies/spry/samples/accordion/AccordionSample.html#AllPanelsCl osed
    However, one thing to keep in mind is that this is assuming
    that you are using the 1.6.1 update (as that is what the references
    refer to). If you have never updated your Spry this would be a good
    opportunity to do so. The below is the to the official Spry
    homepage. There you will find the update package which includes
    some samples and an Extension. Install the extension and restart
    DW. Then under the Sites menu you will see a new option to update
    Spry. Run that script and your Spry will be updated. Also on that
    homepage is a link to the official Spry forums:
    http://labs.adobe.com/technologies/spry/home.html

  • Content below Accordion widget not moving?

    I want to have content below the accordion widget to slide down when one of the panels is open.  Right now the accordion widget slides behind the content when one of the panels is open. I have "Overlap Items Below" checked.
    From the Lynda.com site: " The Accordion panel now includes an option to Overlap Items Below. When selected, content below the Accordion panel will move down on the page as an Accordion panel is opened/expanded."
    thanks

    That seems like a typographical omission on Lynda.com's blog.
    You need to uncheck that option to move the content below accordion down upon opening the panel.
    Please check below excerpt from Muse Release Notes here: http://helpx.adobe.com/muse/release-note/adobe-muse-release-notes.html
    The Accordion panel now includes an option to "Overlap Items Below". When selected content below the Accordion panel will not move down on the page as an Accordion panel is opened/expanded.
    Cheers,
    Vikas

  • Accordion Widget is limited to 5 buttons?

    In the accordion widget properties you seem to be only able to add just one button, making a total of only 5 possible buttons.  That seems very, very limited - is there a way to add more button, like 12?

    Hello and welcome to the forum,
    No, it is limited to 5, has to do with space needed for the dropdowns. And really, it is not a good idea to have too much content on one slide. Is it not possible to spread content over more than one slide? Or use one of the other interactions that allow you to have more 'buttons'?
    Lilybiri

  • Shortening accordion widget buttons MUSE

    Hi guys
    I was wondering how to shorten the accordion widget buttons in muse. They seem unable to reduce below a certain width and I would like the left and right edges to be closer to my text/
    Any suggestion would be much appreciated.
    Cheers,
    - Coen

    Personally I would try the tabbed panel widget instead. Then you would have narrower links but they would be beside each other instead of on top of each other.
    Another option may be to go with no border and then add a similar graphic as i fill that is narrower and centered.

  • Remove button from accordion widget

    Ok, I know this HAS to be simple and right in front of my face - But, I can't for the life of me find where to remove a button from the accordion widget of Captivate v6.  The default comes with 4 accordion buttons but I only need 3.  How do I get rid of the fourth???
    Thanks in advance.

    Select a button and you'll see a minus sign appearing, click it and the button will be removed.
    Lilybiri

  • How do I add a new panel to the accordion widget in-between two others (NOT at the end)

    In the accordion widget, the + button at the bottom adds a new panel to the end. I have a series of panels that are in alpha-sort and need to add a new panel in the middle... I can't figure out how to do it without re-doing the whole thing. is there a way to do this?

    Gah! Thanks Mac.
    That was the first thing I tried! I must not have had the right level selected. It's been driving me batty, but I've got it now.

  • Text Shift Uncontrollably Inside Accordion Widget

    Guys hi! I've been crashing my head for two days with this. Hope you will provide some help!
    I have an Accordion Widget with a very long text block inside one of the boxes (a list with over 80 lines). On the background to each second line I put a grey rectange shape just to give some contrast to the lines in the list. In the project all the rectangles are prefectly aligned to be right behind the lines. But when I publish the site I definately see that the rectangles shift up or down.
    Is it a bug and the widget simply cannon handle correctly so many elements insie the feiled or am i missing something here?
    Many thanks in advance for your advice!! You might be saving me from insanity here;)
    UPDATE!! It was not the shapes but the text that was shifting. I fave some items on the list that consists of two lines. That's where I changed the leading betwin those two lines from 200% (for separate items in the list) to 146% between two lines (for the items that cosist of two lines of the text). That somehow couses the text to shift in the preview mode xompared to the design mode. When I make the leading unilateral throghout the entire textbox everything stands in place.
    Still the problem remains unsolved.

    Zak. thank you very much!
    And sorry for coming back so late on this.
    You solution perfectly solved the problem.
    On the downside,) I did have to change the layout and reformat the site to submit it to the client because the deadline came before I got your reply.
    Perhaps the "Round Leading to a Whole Number" setting should be checked by default to avoid this kind of problems for other users in the future.
    Anyway, a million thanks!

  • Accordion widget not pushing content down

    I followed the instructions for putting the menu inside the accordion widget. It has worked great for me in the past. But now, the menu just shows up behind the content. I've looked at several discussions, and I have everything set up correctly. No scroll effects, etc. I followed the step-by-step instructions on Lynda.com and in an earlier version of Muse it was perfect. Now it isn't. Here is the business catalyst site URL.  pitv.businesscatalyst.com. Appreciate your help.
    Carole

    Hi,
    Coud you please try the suggestion provided in the following thread
    Re: Accordion Widget is Not Moving Other Page Items Down When Expanded
    Do let me know if you have any question.

  • DW Tutorial Question (Spry Accordion Widget) Beginner... :-(

    Hi, I've just finished this tutorial (http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt2.html) but have a problem with my Spry Accordion Widget, when I preview the site my footer moves when I select a different panels in the widget, I've read back and checked code/css but I still can't sus it out (Don't laugh if it's something obvious!) Please can anyone help me? I've copied code/CSS below.
    A BIG THANKS IN ADVANCE!!
    INDEX...
    <!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>The Yacht Club</title>
    <link href="main.css" rel="stylesheet" type="text/css" />
    <!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    #sidebar1 { padding-top: 30px; }
    #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="container">
      <div id="header"><img src="images/logo.jpg" width="290" height="144" />
        <!-- end #header -->
      </div>
      <div id="sidebar1">
        <h3>Welcome</h3>
        <ul id="nav"><li><a href="javascript:;">Home</a></li><li><a href="javascript:;">About Us</a></li><li><a href="javascript:;">Membership</a></li><li><a href="javascript:;">Our Boats</a></li><li><a href="javascript:;">Current Races</a></li><li><a href="javascript:;">Contact Us</a></li>
        </ul>
        <div id="Accordion1" class="Accordion" tabindex="0">
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">Atlantic Ocean</div>
            <div class="AccordionPanelContent">Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero.</div>
          </div>
    <div class="AccordionPanel">
            <div class="AccordionPanelTab">Pacific Ocean</div>
            <div class="AccordionPanelContent">Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero.</div>
          </div>
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">Indian Ocean</div>
            <div class="AccordionPanelContent">Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque  eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend  sollicitudin, molestie id, varius et, nibh. Donec nec libero.</div>
          </div>
        </div>
        <p> </p>
      <!-- end #sidebar1 --></div>
      <div id="mainContent">
        <h1> Luxury Yachts</h1>
        <p><img src="images/sailboat.jpg" alt="Sailboat" width="136" height="310" class="fltrt" />Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce  varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id,  libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat  feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut,  sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh.  Donec nec libero.</p>
        <h2>Sail to the Bahamas </h2>
        <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.</p>
    <!-- end #mainContent --></div>
    <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
      <div id="footer">
        <p>&copy; 2009 Luxury Yachts – bring a cup for the bailout</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    //-->
    </script>
    </body>
    </html>
    MAIN CSS...
    @charset "UTF-8";
    body  {
    margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    color: #000000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 100%;
    background-color: #FDFDFD;
    background-image: url(images/body_BG.jpg);
    background-repeat: repeat-x;
    h1, h2, h3 {
    font-weight: normal;
    color: #00583F;
    h1 {
    font-size: 140%;
    h2 {
    font-size: 130%;
    h3 {
    font-size: 120%;
    #container {
    width: 780px;
    margin: 0 auto;
    text-align: left;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    background-image: url(images/container_bg.gif);
    background-repeat: repeat-y;
    #header {
    background-color: #DDDDDD;
    background-image: url(images/headerBG.jpg);
    background-repeat: no-repeat;
    padding-top: 0;
    padding-right: 10px;
    padding-bottom: 0;
    padding-left: 0px;
    #sidebar1 {
    float: left; /* since this element is floated, a width must be given */
    width: 200px; /* the background color will be displayed for the length of the content in the column, but no further */
    padding: 15px 10px 15px 20px;
    ul#nav {
    background-image: url(images/buoy.jpg);
    background-repeat: no-repeat;
    background-position: left bottom;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 20px;
    margin-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 153px;
    padding-left: 0px;
    list-style-type: none;
    #nav li a {
    font-size: 90%;
    color: #FFF;
    text-decoration: none;
    background-color: #09553F;
    display: block;
    padding: 4px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #3574A7;
    #nav li a:hover, #nav li a:active, #nav li a:focus {
    color: #123464;
    background-color: #B7DAD8;
    #mainContent {
    margin: 0 0 0 250px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
    padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
    #mainContent p, #sidebar1 p, #footer p {
    font-size: 85%;
    line-height: 1.4;
    #footer {
    background-color: #00593D;
    padding-top: 10px;
    padding-right: 0px;
    padding-bottom: 10px;
    padding-left: 270px;
    #footer p {
    margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
    padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    color: #FFF;
    .fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
    clear:both;
        height:0;
        font-size: 1px;
        line-height: 0px;
    SPRY CSS...
    @charset "UTF-8";
    /* SpryAccordion.css - version 0.4 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    /* This is the selector for the main Accordion container. For our default style,
    * we draw borders on the left, right, and bottom. The top border of the Accordion
    * will be rendered by the first AccordionPanelTab which never moves.
    * If you want to constrain the width of the Accordion widget, set a width on
    * the Accordion container. By default, our accordion expands horizontally to fill
    * up available space.
    * The name of the class ("Accordion") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style the
    * Accordion container.
    .Accordion {
    overflow: hidden;
    border-right-width: 1px;
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-style: solid;
    border-bottom-style: solid;
    border-left-style: solid;
    border-right-color: #7C9297;
    border-bottom-color: #7C9297;
    border-left-color: #7C9297;
    /* This is the selector for the AccordionPanel container which houses the
    * panel tab and a panel content area. It doesn't render visually, but we
    * make sure that it has zero margin and padding.
    * The name of the class ("AccordionPanel") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel container.
    .AccordionPanel {
    margin: 0px;
    padding: 0px;
    /* This is the selector for the AccordionPanelTab. This container houses
    * the title for the panel. This is also the container that the user clicks
    * on to open a specific panel.
    * The name of the class ("AccordionPanelTab") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel tab container.
    * NOTE:
    * This rule uses -moz-user-select and -khtml-user-select properties to prevent the
    * user from selecting the text in the AccordionPanelTab. These are proprietary browser
    * properties that only work in Mozilla based browsers (like FireFox) and KHTML based
    * browsers (like Safari), so they will not pass W3C validation. If you want your documents to
    * validate, and don't care if the user can select the text within an AccordionPanelTab,
    * you can safely remove those properties without affecting the functionality of the widget.
    .AccordionPanelTab {
    background-color: #00583F;
    margin: 0px;
    padding: 2px;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    color: #FFF;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-top-style: solid;
    border-bottom-style: solid;
    border-top-color: #7C9297;
    border-bottom-color: #7C9297;
    /* This is the selector for a Panel's Content area. It's important to note that
    * you should never put any padding on the panel's content area if you plan to
    * use the Accordions panel animations. Placing a non-zero padding on the content
    * area can cause the accordion to abruptly grow in height while the panels animate.
    * Anyone who styles an Accordion *MUST* specify a height on the Accordion Panel
    * Content container.
    * The name of the class ("AccordionPanelContent") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel content container.
    .AccordionPanelContent {
    overflow: auto;
    margin: 0px;
    height: 200px;
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    /* This is an example of how to change the appearance of the panel tab that is
    * currently open. The class "AccordionPanelOpen" is programatically added and removed
    * from panels as the user clicks on the tabs within the Accordion.
    .AccordionPanelOpen .AccordionPanelTab {
    background-color: #FFF;
    color: #005b3E;
    /* This is an example of how to change the appearance of the panel tab as the
    * mouse hovers over it. The class "AccordionPanelTabHover" is programatically added
    * and removed from panel tab containers as the mouse enters and exits the tab container.
    .AccordionPanelTabHover {
    color: #AAC7CE;
    .AccordionPanelOpen .AccordionPanelTabHover {
    color: #555555;
    /* This is an example of how to change the appearance of all the panel tabs when the
    * Accordion has focus. The "AccordionFocused" class is programatically added and removed
    * whenever the Accordion gains or loses keyboard focus.
    .AccordionFocused .AccordionPanelTab {
    background-color: #00583F;
    color: #FFF;
    /* This is an example of how to change the appearance of the panel tab that is
    * currently open when the Accordion has focus.
    .AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
    background-color: #FFF;
    color: #00583F;
    Apologies in advance if I'm asking a daft question!!

    Hi,
    using your source code, I couldn't find a really inserted "Spry Accordion". If I do that (translated from german DW) > Insert > Spry > Spry Accordion, I'll find in my DW source code something like that:
      <div id="Accordion1" class="Accordion" tabindex="0">
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Bezeichnung 1</div>
          <div class="AccordionPanelContent">Inhalt 1</div>
        </div>
        <div class="AccordionPanel">
          <div class="AccordionPanelTab">Bezeichnung 2</div>
          <div class="AccordionPanelContent">Inhalt 2</div>
        </div>
      </div>
    and in design view:
    Please control your DW-entries.
    Hans-G.

  • Firefox Spry Accordion widget

    Firefox Spry Accordion widget
    Hello, I am trying to use Spry Accordion  widget. When I click one of the other panels they all turn a strange  neon blue color. Anyone know of any fixes?
    The below is the index page and below that is SpryAccordion.css
    index
    <!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>Conferences</title>
    <script src="SpryCollapsiblePanel.js"  type="text/javascript"></script>
    <script src="../SpryAssets/SpryAccordion.js"  type="text/javascript"></script>
    <link href="SpryCollapsiblePanel.css" rel="stylesheet"  type="text/css" />
    <link href="css.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    </style>
    <link href="../SpryAssets/SpryAccordion.css" rel="stylesheet"  type="text/css" />
    </head>
    <body>
    <div id="outside">
    <div id="outsideone">
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Tab</div>
    <div class="CollapsiblePanelContent">
    <p>Content ssss</p>
    <p>lkajsdfl</p>
    </div>
    </div>
    <script type="text/javascript">
    var CollapsiblePanel1 = new  Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
    </script>
    <!--   This is commented out  -->
    <div id="photo"></div>
    <div id="contentholder">
    <div id="contentsone"> <div id="moreone">
    <div id="Accordion1" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 1</div>
    <div class="AccordionPanelContent">Content 1</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 2</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    </div>
    </div> <div id="insidecontentsone"></div></div>
    <div id="lineone"> </div>
    <div id="contentstwo"> <div id="moretwo">
    <div id="Accordion2" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 1</div>
    <div class="AccordionPanelContent">Content 1</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 2</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    </div>
    </div>
    <div id="insidecontentstwo"></div></div>
    <div id="linetwo"> </div>
    <div id="contentsthree"> <div id="morethree">
    <div id="Accordion3" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 1</div>
    <div class="AccordionPanelContent">Content 1</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Label 2</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    </div>
    </div><div id="insidecontentsthree"></div></div>
    </div>
    </div>
    </div>
    <script type="text/javascript">
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { defaultPanel:  1 });
    var Accordion2 = new Spry.Widget.Accordion("Accordion2", { defaultPanel:  1 });
    var Accordion3 = new Spry.Widget.Accordion("Accordion3", { defaultPanel:  1 });
    </script>
    </body>
    </html>
    SpryAccordion.css
    @charset "UTF-8";
    /* SpryAccordion.css - version 0.5 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved.  */
    /* This is the selector for the main Accordion container. For our  default style,
    * we draw borders on the left, right, and bottom. The top border of the  Accordion
    * will be rendered by the first AccordionPanelTab which never moves.
    * If you want to constrain the width of the Accordion widget, set a  width on
    * the Accordion container. By default, our accordion expands  horizontally to fill
    * up available space.
    * The name of the class ("Accordion") used in this selector is not  necessary
    * to make the widget function. You can use any class name you want to  style the
    * Accordion container.
    .Accordion {
    overflow: hidden;
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    border-right-color: none;
    border-bottom-color: none;
    border-left-color: none;
    background-image: url(white.png);
    background-color: none;
    border-top-style: none;
    /* This is the selector for the AccordionPanel container which houses  the
    * panel tab and a panel content area. It doesn't render visually, but  we
    * make sure that it has zero margin and padding.
    * The name of the class ("AccordionPanel") used in this selector is not  necessary
    * to make the widget function. You can use any class name you want to  style an
    * accordion panel container.
    .AccordionPanel {
    margin: 0px;
    padding: 0px;
    background-image: url(white.png);
    /* This is the selector for the AccordionPanelTab. This container houses
    * the title for the panel. This is also the container that the user  clicks
    * on to open a specific panel.
    * The name of the class ("AccordionPanelTab") used in this selector is  not necessary
    * to make the widget function. You can use any class name you want to  style an
    * accordion panel tab container.
    * NOTE:
    * This rule uses -moz-user-select and -khtml-user-select properties to  prevent the
    * user from selecting the text in the AccordionPanelTab. These are  proprietary browser
    * properties that only work in Mozilla based browsers (like FireFox)  and KHTML based
    * browsers (like Safari), so they will not pass W3C validation. If you  want your documents to
    * validate, and don't care if the user can select the text within an  AccordionPanelTab,
    * you can safely remove those properties without affecting the  functionality of the widget.
    .AccordionPanelTab {
    background-color: #CCCCCC;
    border-top: solid 1px black;
    border-bottom: solid 0px gray;
    margin: 0px;
    padding: 2px;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    background-image: url(white.png);
    /* This is the selector for a Panel's Content area. It's important to  note that
    * you should never put any padding on the panel's content area if you  plan to
    * use the Accordions panel animations. Placing a non-zero padding on  the content
    * area can cause the accordion to abruptly grow in height while the  panels animate.
    * Anyone who styles an Accordion *MUST* specify a height on the  Accordion Panel
    * Content container.
    * The name of the class ("AccordionPanelContent") used in this selector  is not necessary
    * to make the widget function. You can use any class name you want to  style an
    * accordion panel content container.
    .AccordionPanelContent {
    overflow: auto;
    margin: 0px;
    padding: 0px;
    height: 200px;
    background-image: url(white.png);
    /* This is an example of how to change the appearance of the panel tab  that is
    * currently open. The class "AccordionPanelOpen" is programatically  added and removed
    * from panels as the user clicks on the tabs within the Accordion.
    .AccordionPanelOpen .AccordionPanelTab {
    background-color: #none;
    background-image: url(white.png);
    /* This is an example of how to change the appearance of the panel tab  as the
    * mouse hovers over it. The class "AccordionPanelTabHover" is  programatically added
    * and removed from panel tab containers as the mouse enters and exits  the tab container.
    .AccordionPanelTabHover {
    color: #555555;
    background-image: url(white.png);
    .AccordionPanelOpen .AccordionPanelTabHover {
    color: none;
    background-image: url(white.png);
    /* This is an example of how to change the appearance of all the panel  tabs when the
    * Accordion has focus. The "AccordionFocused" class is programatically  added and removed
    * whenever the Accordion gains or loses keyboard focus.
    .AccordionFocused .AccordionPanelTab {
    background-color: none;
    background-image: url(white.png);
    /* This is an example of how to change the appearance of the panel tab  that is
    * currently open when the Accordion has focus.
    .AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
    background-color: none;
    height: 15px;
    background-image: url(white.png);
    /* Rules for Printing */
    @media print {
    .Accordion {
    overflow: visible !important;
    background-image: url(white.png);
    .AccordionPanelContent {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    background-image: url(white.png);

    Welcome to the Forum!
    If you can upload your page to a server and give us a link, we will be able to look at your page in action. Just seeing the code is not enough.
    Is this the first time you have used an Accordion? It is probable that the bright neon blue you are seeing is the default style, which you can change in the CSS file. I believe it was designed that color to highlight the feature you want to change .
    Take a look in the Accordion's CSS file (it will show as an associated file at the top of your document window) for color rules, and adjust them to suit your palette (and your palate!). Check out the CSS Styles Panel (use Current mode) for a handy way to know what you are looking at. Click on the Accordion in Design View and the rules will be highlighted in the CSS Styles Panel. (Click the right-hand stair-step icon to see the style cascade.)
    Beth

  • Spry Accordion Widget problems - please help

    I've been trying to modify the settings for an accordion
    widget - basically to open the widget with no panels open, and to
    have varying panel heights. I have been to the help and the lab
    forums and have put in the code, but alas, nothing worked. So I
    downloaded the 1.5 prerelease just to see - and saw there was an
    example of exactly what I wanted to do! (AccordionSample.html)
    however when I went to preview this in DW CS3, it did not work ...
    it did the same thing that mine was doing - opening all the panels,
    and none were clickable. Is this something you cannot test locally?
    Does it have to be on a test server? I am running this on a G5 with
    10.4.9, if that helps at all.
    Hmmm - uploaded it to my web server and still get the same
    thing ... here's the
    link:

    Hi!
    The version of the spry files on your server are 1.3, not 1.5
    - hence using the options from 1.5 with the 1.3 files won't work
    (they don't understand the options).
    You need to a) update the spry files in DW CS3 to 1.5 so that
    they will work with DW, and b) update the spry files on the
    webserver to 1.5, as DW will not overwrite them itself incase you
    changed something in them.
    See:
    here
    for details

  • Spry Accordion Widget Behavior

    I am using Dreamweaver CS3 and several Spry components. I am new to using Spry, but like how easy it is to impliment. One of the components I am trying to use is the Accordion Widget. The widget appears to function well (I am using variable panel heights) and the behavior appears as designed.
    I am using the panel containers to list links to additional pages based on subject groups.
    My question involves moving back and forth from the widget page to a listed pages, then back to the widget page.
    The behavior I see is:
    1)      User loads widget page, widget panel 1 is expanded onload.
    2)      User expands different panel.
    3)      User clicks URL link within different panel.
    4)      User moves to new page (referenced URL page).
    5)      User reviews content, decides it is not appropriate and wants to select another URL.
    6)      User clicks the browser “back” button and returns to the widget page.
    7)      Widget page onload returns to expanded panel 1.
    Is there a way for me to tweak the JavaScript so that the user returns to the expanded panel they left rather that panel 1? Is panel 1 always going to be the panel that opens on page load? (Unless I have the settings set to no expanded panes on page load.)
    Thanke you for any suggestions.
    TPK

    Greetings Arnout,
    Sorry for the late reply. (Side-tracked with other work.)
    I have a "outside-the-firewall" review area almost complete if you still have time to look at my code.
    After testing several browsers and 2 platforms I have found that my problem is likely not with your code at all, but with small modifications that I have had to do to it. For example, I will need to have 2 separate Accordion blocks on the page I am developing.
    When I drop Dreamweaver generated Spry code into the page the <div class="Accordion" ID="Accordion1"> is created (which suits my future needs, the additional block will have <div class="Accordion" ID="Accordion2">. I noticed that your code uses <div class="Accordion" ID="sampleAccordion">.
    If I go through the cookie code and change all references of "sampleAccordion" to "Accordion1" the code breaks. I am missing something and haven't been able to find it.
    Additionally, I noticed something odd when testing the widget. When testing using a Mac (Safari and Firefox) it appeared I didn't need the cookie code at all. The unmodified Dreamweaver Spry code appeared to hold the value of the launch panel when I moved from my launch page, to my receiver page, then back to my launch page.
    This wasn't the case with Windows IE and Firefox. IE 6 appears broken onLoad, IE 8 and Firefox breaks when I go back to the launch page from the receiver page. Very odd behaviors. Tonight I will load your original code on a test page and add testing notes so that I have a "control".
    The URL for the (several) test pages is: http://tim.kern.home.comcast.net/~tim.kern/
    If you have any suggestions (for modifying the cookie code to work with more than one widget on a page) I would certainly appreciat them.
    Thank you very much for the original code.
    TPK

  • Id like to be able to place an anchor inside the accordion widget that opens the accordion to that anchor .

    i have created a page with a very long accordion widget over 70 entries! its a staff list and the accordion rivals each persons bio. but what I need is when some clicks on a link  person name on another page I want it to go to that accordion tab and open the accordion to rival the bio

    Hi Jryan !
    If you wire a 2D array to the input of a "replace element" function, you will see that the function expand to display an additionnal index. The one you are looking for !!
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

Maybe you are looking for