javascript - Responsiveslides just not working -


i'm using responsive slides , have gone according instructions on site http://responsiveslides.com/ shows first image , not slide...i have checked can see somehow doesn't work...i have uploaded on jsfiddle https://jsfiddle.net/q421n8xo/ , hope give me valuable advice :) thanks! oh , think dropdown menu blocked images, there way put in front? again!

okay major(?) breakthrough: found out responsiveslides file downloaded incorrect...i got working on jsfiddle...kinda weird on computer. try further.

<!doctype html> <html> <head>     <title>hire bach</title>     <link rel="stylesheet" type="text/css" href="css/main.css">     <script src="js/responsiveslides.min.js"></script>     <script src="js/jquery-1.12.4.min.js"></script>     <script>         $(function() {             $(".rslides").responsiveslides({                 auto: false,                 pager: true,                 speed: 500,                 maxwidth: 540             });         });     </script> </head> <body>     <nav>         <ul>             <li class = "active"><a href="index.html">home</a></li>             <li class="dropdown">                 <a href="hvar.html" class="dropbtn">hvar</a>                 <div class="dropdown-content">                     <a href="gallery.html">gallery</a>                     <a href="activities.html">activities</a>                     <a href="attractions.html">attractions</a>                 </div>             </li>             <li><a href="contact.html">contact us</a></li>         </ul>     </nav>     <ul class="rslides">         <li><img src="images/bach1.jpg" alt="bach1"></li>         <li><img src="images/bach2.jpg" alt="bach2"></li>         <li><img src="images/bach3.jpg" alt="bach3"></li>     </ul>     <h2>description</h2>     <p>this old stone batch has sea @ front door - built 5 meters sea can't closer clear azure adriatic water. located in peaceful jagodna bay, part of 1 of beautiful islands in adriatic. house surrounded beautiful mediterranean bush full or aromatic rosemary , manuka. 5 km famous medieval town of hvar.</p>     <p>originally built family fishing batch, has contained character on years. house made of 2 separate apartments, each 2 bedrooms , terrace facing sea. each apartment can accommodate 4 people. </p>     <p>this house can rented whole or each apartment maybe separated rented. kids , pets welcome.</p>     <h2>facilities</h2>     <p>fireplace, outdoor barbecue, showers  (indoor , outdoor) , internet (wifi), mobile coverage vodafone, sky tv, boat mooring , fridge, oven, linen provided.</p>     <h2>availability</h2>     <p>two european summer months: july , august</p>     <div class="overflow">     <table>         <tr>             <th>price per night</th>         </tr>         <tr>             <td>upper floor apartment</td>             <td><b>$120</b></td>         </tr>         <tr>             <td>basement apartment</td>             <td><b>$110</b></td>         </tr>         <tr>             <td>whole house</td>             <td><b>$210</b></td>         </tr>     </table>     </div> </body> <footer>     <a target="_blank" title="find on facebook" href="http://www.facebook.com/placeholder"><img alt="find on facebook" src="images/facebookicon.png" border=0></a>     <a target="_blank" title="find on youtube" href="http://www.youtube.com/placeholder"><img alt="find on youtube" src="images/youtubeicon.png" border=0></a> </footer> 

.active {     background-color: grey; }   table{     border-collapse: collapse;     width: 400px;     border: 1px solid black; }  th, td {     border: 1px solid black;     padding: 15px; }  th {     background-color: #4caf50;     color: white;     font-size: 20px; }  tr:hover {     background-color: #f6f1be; }  .overflow {     overflow-x:auto; }  nav ul {     list-style-type: none;     margin: 0;     padding: 0;     overflow: hidden;     background-color: #333; }  nav li {     float: left; }  nav li a, .dropbtn {     display: inline-block;     color: white;     text-align: center;     padding: 14px 16px;     text-decoration: none; }  nav li a:hover, .dropdown:hover .dropbtn {     background-color: red; }  nav li.dropdown {     display: inline-block; }  nav .dropdown-content {     display: none;     position: absolute;     background-color: #f9f9f9;     min-width: 160px;     box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); }  nav .dropdown-content {     color: black;     padding: 12px 16px;     text-decoration: none;     display: block;     text-align: left; }  nav .dropdown-content a:hover {background-color: #f1f1f1}  nav .dropdown:hover .dropdown-content {     display: block; }  .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;   } 

looks didn't added correct dependencies, created fork of jsfiddle , working https://jsfiddle.net/tphgwkhh/5/

<script src="js/jquery-1.12.4.min.js"></script> <script src="js/responsiveslides.min.js"></script> 

add jquery before responsiveslides.min.js , should fine. second question add following css css file

 .dropdown-content{     z-index:9999;    } 

i hope helps.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -