slideshow images using jQuery Cycle Plugin

xrcwrn picture xrcwrn · Dec 4, 2012 · Viewed 16.8k times · Source

I am trying to slideshow images using jQuery Cycle Plugin, but it is not working. How to make it runnable.

Included scripts

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script src="https://malsup.github.com/jquery.cycle.all.js"></script>    

CSS:

 .pics {  
            height:  232px;  
            width:   232px;  
            padding: 0;  
            margin:  0;  
        } 

        .pics img {  
            padding: 15px;  
            border:  1px solid #ccc;  
            background-color: #eee;  
            width:  200px; 
            height: 200px; 
            top:  0; 
            left: 0 
        }

Script:

  $(function(){
        $('.pics').cycle('fade');
    });​

Pic Div

          <div class="pics">
                <img src="http://davealger.info/i/1.jpg"  width="200" height="200"  />
                <img src="http://davealger.info/i/2.bmp"  width="200" height="200"  />
                <img src="http://davealger.info/i/3.png"  width="200" height="200" />
            </div>

Answer

Blazemonger picture Blazemonger · Dec 4, 2012

Change https://malsup.github.com/jquery.cycle.all.js to http:// -- or better yet, download the plugin and spare his poor server. Google uses a high-volume CDN; he does not.

http://jsfiddle.net/mblase75/ZSJqh/