Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using responsiveSlides Slider but it is not working till auto mode is true. I have a code as follow...

Js Code :

JavaScript
<script src="Scripts/responsiveslides.min.js" type="text/javascript"></script>
<script src="Scripts/responsiveslides.js" type="text/javascript"></script>
<link href="Styles/responsiveslides.css" rel="stylesheet" type="text/css" />    
<script type="text/javascript">
    (function () {
        $("#slider").responsiveSlides({
            maxwidth: 800,
            speed: 500
        });
    });    
</script>


Here is css code :

CSS
<style type="text/css">
    .rslides {
      position: relative;
      list-style: none;
      overflow: hidden;
      width: 100%;
      padding: 0;
      margin: 0;
      }

    .rslides li {
      -webkit-backface-visibility: hidden;
      position: absolute;
      display: none;
      width: 100%;
      left: 0;
      top: 0;
      }

    .rslides li:first-child {
      position: relative;
      display: block;
      float: left;
      }

    .rslides img {
      display: block;
      height: auto;
      float: left;
      width: 100%;
      border: 0;
      }
</style>


And here is html code :

HTML
<div id="wrapper">
    <ul class="rslides" id="slider">
        <li>
            <img src="Images/slide1.png" alt=""></li>
        <li>
            <img src="Images/slide2.png" alt=""></li>
        <li>
            <img src="Images/slide3.png" alt=""></li>
        <li>
            <img src="Images/slide4.png" alt=""></li>
        <li>
            <img src="Images/slide5.png" alt=""></li>
    </ul>
</div>


And I have also attached jquery.min.js version is v1.8.3:

HTML
<script src="Scripts/jquery.min.js" type="text/javascript"></script>

And I haven't made any change in all files of css & javascript of responsiveSlides files, they are as it is and I have attached files as above.
Posted
Comments
Can you create a fiddle at http://jsfiddle.net/[^]?

It would be easier to track the issue.
HardikPatel.SE 12-May-14 10:32am    
Here it is bro : JSFiddel Example[^]

1 solution

Finally it's working I got the solution........

Working Link : JSFiddle Example[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900