Slideshow Example

Help

HTML

<script>
            $(function() {
                $(".rslides").responsiveSlides({
                    auto: false,
                    pager: true,
                    speed: 500,
                    maxwidth: 540
                });
            });
        </script>
  
        <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 the sea at its front door - built five meters from the sea it can't get closer to the clear azure Adriatic water. It is located in peaceful Jagodna bay, part of one of the most beautiful islands in the Adriatic. The house is surrounded by the beautiful Mediterranean bush full or aromatic rosemary and manuka. It is only five km from the famous medieval town of Hvar.</p>
        <p>Originally built as a family fishing batch, it has contained its character over the years. The house is made up of two separate apartments, each with two bedrooms and a terrace facing the sea. Each apartment can accommodate four people. </p>
        <p>This house can be rented as a whole or each apartment maybe separated rented. Kids and pets welcome.</p>
        <h2>Facilities</h2>
        <p>Fireplace, outdoor barbecue, showers  (indoor and...

CSS

.active {
    background-color: grey;
}

.dropdown-content{
  z-index:9999;
}
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 a {
    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;
  }
  
  
  
  /*! http://responsiveslides.com v1.54 by @viljamis */

.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...

JavaScript

/*! ResponsiveSlides.js v1.54
 * http://responsiveslides.com
 * http://viljamis.com
 *
 * Copyright (c) 2011-2012 @viljamis
 * Available under the MIT license
 */

/*jslint browser: true, sloppy: true, vars: true, plusplus: true, indent: 2 */

(function ($, window, i) {
  $.fn.responsiveSlides = function (options) {

    // Default settings
    var settings = $.extend({
      "auto": true,             // Boolean: Animate automatically, true or false
      "speed": 500,             // Integer: Speed of the transition, in milliseconds
      "timeout": 4000,          // Integer: Time between slide transitions, in milliseconds
      "pager": false,           // Boolean: Show pager, true or false
      "nav": false,             // Boolean: Show navigation, true or false
      "random": false,          // Boolean: Randomize the order of the slides, true or false
      "pause": false,           // Boolean: Pause on hover, true or false
      "pauseControls": true,    // Boolean: Pause when hovering controls, true or false
      "prevText": "Previous",   // String: Text for the "previous" button
      "nextText": "Next",       // String: Text for the "next" button
      "maxwidth": "",           // Integer: Max-width of the slideshow, in pixels
      "navContainer": "",       // Selector: Where auto generated controls should be appended to, default is after the <ul>
      "manualControls": "",     // Selector: Declare custom pager navigation
      "namespace": "rslides",   // String: change the default namespace used
      "before": $.noop,         // Function: Before callback
      "after": $.noop           // Function: After callback
    }, options);

    return this.each(function () {

      // Index for namespacing
      i++;

      var $this = $(this),

        // Local variables
        vendor,
        selectTab,
        startCycle,
        restartCycle,
        rotate,
        $tabs,

        // Helpers
        index = 0,
        $slide = $this.children(),
       ...