jquery手风琴动画无法

时间:2013-01-29 15:19:38

标签: javascript jquery jquery-ui accordion jquery-easing

我有以下代码,

$("#nav").accordion({
                event: "mouseover",
                autoHeight: false,
                collapsible: false,
                animate: 'bounceslide',
                <?php
                //  Checks for active page and opens the related tab
                    $uri = $_SERVER['REQUEST_URI'];
                    switch($uri):
                        case '/anti-social-behavior-logging':
                            echo('active: 0,'); break;
                        case '/telehealth-services':
                            echo('active: 1,'); break;
                        case '/telecare-services':
                            echo('active: 2,'); break;
                        case '/lone-worker-safety-services':
                            echo('active: 3,'); break;
                        case '/repairs-reporting-services':
                            echo('active: 4,'); break;
                        default:
                            echo('active: 5,');
                    endswitch;
                ?>              
            });

但是我收到以下错误,

未捕获的TypeError:对象#没有方法'bounceslide'

这是为什么?您可以在http://www.astraline.co.uk看到问题 - 据我所知,我拥有了所需的所有库。

1 个答案:

答案 0 :(得分:0)

您似乎需要放置animated而不是animate

请参阅:http://docs.jquery.com/UI/Accordion/accordion#option-animated