Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Spry - Accordion

    Hi,

    I'm building a menu for a website with the Spry accordion widget.
    I want to open the accordion with a mouseOver-effect, but not close them with
    a mouseOver.

    When I change:
    [Q]Spry.Widget.Accordion.addEventListener(tab, "mouseover", function(e) {
    return self.onPanelTabMouseOver(e, panel); }, false);[/Q]
    into
    [Q]Spry.Widget.Accordion.addEventListener(tab, "mouseover", function(e) {
    return self.onPanelTabClick(e, panel); }, false);[/Q]

    the accordion also closes with a mouseOver. Because of this, the accordion
    trips when you go from the first, to the second panel in the accordion. It
    openens/closes again, againd, and again.

    What must I do to let the accordion open on mouseOver, but not close on
    mouseOver?

    Sorry for any bad English :)

    ajaxfanc Guest

  2. Similar Questions and Discussions

    1. Spry accordion with links??? Possible???
      Fellow Dreamwearvers. I am trying, perhaps mistakenly, to use the accordion widget as a menu bar. I prefer it to the menu bar where the submenus...
    2. spry accordion
      Hi I can't understand how to get the accordion to open a tab on mouse over. It just opens now when it's clicked. I found a lot of information on...
    3. Spry accordion content not hiding in IE
      Hi all, I threw together a page using accordion menus (http://www.riverviewbiblecamp.com/menu.php), it works fine in Firefox, Safari, and Opera,...
    4. Closing Spry Accordion Panels
      Hi, i use Spry Accordion for this site: http://dailycast.de I want to close a open panel by clicking on these panel? Here is my Code:...
    5. CS3 Spry Accordion Gaps
      I have created a Coldfusion webpage with two Spry's, the accordian Spry and the Spry Menu Bar. When viewing the Spry Accordion in Internet explorer...
  3. #2

    Default Re: Spry - Accordion

    ajaxfanc wrote:
    > What must I do to let the accordion open on mouseOver, but not close on
    > mouseOver?
    Perhaps in the onPanelTabClick method you can comment out the else statement at the beginning of the method:

    change:
    if (panel != this.currentPanel)
    this.openPanel(panel);
    else
    this.closePanel();

    to:
    if (panel != this.currentPanel)
    this.openPanel(panel);
    // else
    // this.closePanel();



    That seems to stop the panel from close on mouse over again.

    Beyond that, Spry related question might be better asked in the Spry forum:
    [url]http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602[/url]



    --
    Danilo Celic
    [url]http://blog.extensioneering.com/[/url]
    danilocelic AdobeCommunityExpert Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139