jQuery 工具和灵活的滑动到顶部手风琴之间的冲突

发布于 2024-12-13 06:48:38 字数 6018 浏览 0 评论 0原文

我已经在教程网站的评论部分提出了这个问题 http://tympanus.net/codrops/2011/10/12/flexible-slide-to-top-accordion/

我想包括这个将“Slide-to-top-Accordion”脚本放入 jQuery 工具选项卡 http://flowplayer。 org/tools/demos/tabs/index.html 但看起来这两个脚本之间存在冲突...

有人知道解决这个问题吗?我将非常感激!

这是代码:

<script type="text/javascript" src="/design/js/jquery.tools.min.js"></script>
<div class="tabbox-produkte">

            <ul class="tabs">
                <li><a href="#" title="">asd</a></li>

                <li><a href="#" title="">asd</a></li>
                <li><a href="#" title="">sad</a></li>
            </ul>

            <div class="panes">
                <div>
                    <p>Iasd</p>

                </div>
                <div id="preise">
                     <div id="st-accordion" class="st-accordion">
                <ul>
                    <li>
                        <a href="#">Photography<span class="st-arrow">Open or Close</span></a>
                        <div class="st-content">
                            <p>She packed her seven versalia, put her initial into the belt and made herself on the way.</p>

                            <p>When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p>
                            <p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar.</p>
                            <img src="images/1.jpg" alt="image01"/>
                            <img src="images/2.jpg" alt="image02"/>
                            <img src="images/3.jpg" alt="image03"/>
                            <img src="images/4.jpg" alt="image04"/>
                            <img src="images/5.jpg" alt="image05"/>
                            <img src="images/6.jpg" alt="image06"/>

                        </div>
                    </li>
                    <li>
                        <a href="#">Web Design<span class="st-arrow">Open or Close</span></a>
                        <div class="st-content">
                            <p>Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.</p>
                            <p>A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.</p>

                            <img src="images/7.jpg" alt="image07"/>
                            <img src="images/8.jpg" alt="image08"/>
                            <img src="images/9.jpg" alt="image09"/>
                            <img src="images/10.jpg" alt="image10"/>
                            <img src="images/11.jpg" alt="image11"/>
                            <img src="images/12.jpg" alt="image12"/>
                        </div>
                    </li>
                    <li>

                        <a href="#">Illustrations<span class="st-arrow">Open or Close</span></a>
                        <div class="st-content">
                            <p>O my friend - but it is too much for my strength - I sink under the weight of the splendour of these visions!</p>
                            <p>A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.</p>
                            <p>I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine.</p>
                        </div>

                    </li>
                    <li>
                        <a href="#">Miscancellous<span class="st-arrow">Open or Close</span></a>
                        <div class="st-content">
                            <p>The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. "What's happened to me?"</p>
                            <p>He thought. It wasn't a dream. His room, a proper human room although a little too small, lay peacefully between its four familiar walls.</p>
                        </div>

                    </li>

                </ul>
            </div>

<script type="text/javascript" src="/design/js/jquery.accordion.js"></script>
<script type="text/javascript" src="/design/js/jquery.easing.1.3.js"></script>
    <script type="text/javascript">

    $j = jQuery.noConflict();

        $j(function() {

            $j('#st-accordion').accordion({
                oneOpenedItem   : true
            });

        });

    </script> 

                </div>
                <div>

                        adsasd          
                </div>
            </div>
            </div>

            <script type="text/javascript">      
                $(function() {
                $("ul.tabs").tabs("div.panes > div");
                });
            </script>

I´ve already asked this question at the comment section of the tutorial-site http://tympanus.net/codrops/2011/10/12/flexible-slide-to-top-accordion/

I want include this "Slide-to-top-Accordion" script into the jQuery Tools Tabs http://flowplayer.org/tools/demos/tabs/index.html but it looks like there is a conflict between this two scripts...

Have anyone an idea to solve this problem? I would be very grateful!

Here is the Code:

<script type="text/javascript" src="/design/js/jquery.tools.min.js"></script>
<div class="tabbox-produkte">

            <ul class="tabs">
                <li><a href="#" title="">asd</a></li>

                <li><a href="#" title="">asd</a></li>
                <li><a href="#" title="">sad</a></li>
            </ul>

            <div class="panes">
                <div>
                    <p>Iasd</p>

                </div>
                <div id="preise">
                     <div id="st-accordion" class="st-accordion">
                <ul>
                    <li>
                        <a href="#">Photography<span class="st-arrow">Open or Close</span></a>
                        <div class="st-content">
                            <p>She packed her seven versalia, put her initial into the belt and made herself on the way.</p>

                            <p>When she reached the first hills of the Italic Mountains, she had a last view back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet Village and the subline of her own road, the Line Lane.</p>
                            <p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic life One day however a small line of blind text by the name of Lorem Ipsum decided to leave for the far World of Grammar.</p>
                            <img src="images/1.jpg" alt="image01"/>
                            <img src="images/2.jpg" alt="image02"/>
                            <img src="images/3.jpg" alt="image03"/>
                            <img src="images/4.jpg" alt="image04"/>
                            <img src="images/5.jpg" alt="image05"/>
                            <img src="images/6.jpg" alt="image06"/>

                        </div>
                    </li>
                    <li>
                        <a href="#">Web Design<span class="st-arrow">Open or Close</span></a>
                        <div class="st-content">
                            <p>Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.</p>
                            <p>A small river named Duden flows by their place and supplies it with the necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly into your mouth.</p>

                            <img src="images/7.jpg" alt="image07"/>
                            <img src="images/8.jpg" alt="image08"/>
                            <img src="images/9.jpg" alt="image09"/>
                            <img src="images/10.jpg" alt="image10"/>
                            <img src="images/11.jpg" alt="image11"/>
                            <img src="images/12.jpg" alt="image12"/>
                        </div>
                    </li>
                    <li>

                        <a href="#">Illustrations<span class="st-arrow">Open or Close</span></a>
                        <div class="st-content">
                            <p>O my friend - but it is too much for my strength - I sink under the weight of the splendour of these visions!</p>
                            <p>A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.</p>
                            <p>I am alone, and feel the charm of existence in this spot, which was created for the bliss of souls like mine.</p>
                        </div>

                    </li>
                    <li>
                        <a href="#">Miscancellous<span class="st-arrow">Open or Close</span></a>
                        <div class="st-content">
                            <p>The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked. "What's happened to me?"</p>
                            <p>He thought. It wasn't a dream. His room, a proper human room although a little too small, lay peacefully between its four familiar walls.</p>
                        </div>

                    </li>

                </ul>
            </div>

<script type="text/javascript" src="/design/js/jquery.accordion.js"></script>
<script type="text/javascript" src="/design/js/jquery.easing.1.3.js"></script>
    <script type="text/javascript">

    $j = jQuery.noConflict();

        $j(function() {

            $j('#st-accordion').accordion({
                oneOpenedItem   : true
            });

        });

    </script> 

                </div>
                <div>

                        adsasd          
                </div>
            </div>
            </div>

            <script type="text/javascript">      
                $(function() {
                $("ul.tabs").tabs("div.panes > div");
                });
            </script>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过去的过去 2024-12-20 06:48:38

根据 http://docs.jquery.com/Using_jQuery_with_Other_Libraries,您可以编写:

$j = jQuery.noConflict();

并使用 $j 而不是 $ 用于 jquery 调用。

According to http://docs.jquery.com/Using_jQuery_with_Other_Libraries, you can write:

$j = jQuery.noConflict();

and use $j instead of $ for jquery calls.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文