-1

我有一个问题需要解决。这包括用于 jQuery 选项卡和幻灯片组合的代码。

HTML

<div>
    <div style="display: block;"> 
        <a href="http://www.implanteperio.com.br/megaimersao/"><img src="images/banner/banner_mega_junho.jpg" border="0" /></a>
    </div>
    <div>
        <a href="http://implanteperio.com.br/cursos2013_estrangeiros.php"><img src="images/banner/banner_extranjeros_cirurgia_plastica_periimplantar.jpg" border="0" /></a>
    </div>
    <div>
        <a href="http://implanteperio.com.br/cursos2013_recobrimento_radicular.php"><img src="images/banner/banner_imersao_recobrimento_radicular.jpg" border="0" /></a>
    </div>
    <div>
        <a href="#"><img src="images/banner/banner_novos_cursos.jpg" border="0" /></a>
    </div>
    <div>
        <a href="http://implanteperio.com.br/cursos2013_education_week.php"><img src="images/banner/banner_education2_esgotado.jpg" border="0" /></a>
    </div>
    <div>
        <a href="http://implanteperio.com.br/casos03_2013.php"><img src="images/banner/banner_casos_maio.jpg" border="0" /></a>
    </div>
    <!--<div>
        <a href="casos07_2012.php"><img src="images/banner/03_(10.2012).jpg" border="0" /></a>
    </div>-->
</div>

<div class="slidetabs"> 
    <a class="current" href="#"></a>
    <a href="#"></a>
    <a href="#"></a>
    <a href="#"></a>
    <a href="#"></a>
    <a href="#"></a>
</div> 

JavaScript

// What is $(document).ready ? See: http://flowplayer.org/tools/documentation/basics.php#document_ready

$.noConflict();
chamaTab = $(function() {$(".slidetabs").tabs($(".images > div", {effect: 'fade', fadeOutSpeed: "slow", rotate: true })).slideshow({autoplay: true, interval: 5000}); });

代码不起作用!这个问题需要解决..但我不知道如何解决它。

PS:我是 jQuery 和 Javascript 编程的新手,所以请耐心等待。

4

1 回答 1

2

您的初始化函数似乎有些不对劲。尝试这个:

chamaTab = $(function() {
    $(".slidetabs").tabs( {
        effect: 'fade', 
        fadeOutSpeed: "slow", 
        rotate: true 
    })
    .slideshow({autoplay: true, interval: 5000}); 
});
于 2013-07-23T19:24:38.177 回答