手风琴里面的图像滑块

时间:2013-07-03 06:06:48

标签: jquery css slider accordion

我想在手风琴中放置2张幻灯片,或者在一页中放置2张幻灯片。我怎样才能做到这一点?

Here's到目前为止我取得的成就。

这是我的代码......

 <div id="accordion">
        <h3>Program</h3>
        <div>
        <div id="slides">
    <img src="http://placehold.it/940x528">
    <img src="http://placehold.it/940x528">
   <img src="http://placehold.it/940x528">
   <img src="http://placehold.it/940x528">
   <img src="http://placehold.it/940x528">
 </div>
        </div>


       <h3>Reset</h3>
       <div>
       <div id="slides2">
   <img src="http://placehold.it/940x528">
   <img src="http://placehold.it/940x528">
   <img src="http://placehold.it/940x528">
   <img src="http://placehold.it/940x528">
   <img src="http://placehold.it/940x528">
  </div>
       </div>
       </div>


        <script>
$( "#accordion" ).accordion({ heightStyle: "content" });
</script>
        <script src="js/jquery.slides.min.js"></script>
        <script>
    $(function() {
      $('#slides').slidesjs({
         width: 897,
         height: 750,
         play: {
         active: true,
         auto: true,
         interval: 6000,
         swap: true
        }
      });
    });
  </script>
        <script>
    $(function() {
      $('#slides2').slidesjs({
          width: 897,
          height: 750,
          play: {
          active: true,
           auto: true,
          interval: 6000,
          swap: true
           }
      });
    });
  </script>

与jQuery效果有什么冲突吗?我是Jquery的新手请帮助。

0 个答案:

没有答案