Jak dodać Slider ?

Założony przez  Shadow2262.

wersja skryptu MyBB: 1.6.10
adres forum: nie dotyczy
na czym polega problem (screen, opis, komunikaty): Potrzebuje poradnika. Co i jak po kolei jak zorbic Slider. Obojetnie jaki.
Cabura napisał 02.12.2013, 21:45:
przenoszę, poprawiam.
Dobra.
Do global.css zamiast tamtego dodaj na końcu:
/* Prevent the slideshow from flashing on load */
    #slides {
      display: none
    }

    /* Center the slideshow */
    .container {
      margin: 0 auto
    }

    /* Show active item in the pagination */
    .slidesjs-pagination .active {
      color:red;
    }

    /* Media quires for a responsive layout */

    /* For tablets & smart phones */
    @media (max-width: 767px) {
      body {
        padding-left: 10px;
        padding-right: 10px;
      }
      .container {
        width: auto
      }
    }

    /* For smartphones */
    @media (max-width: 480px) {
      .container {
        width: auto
      }
    }

    /* For smaller displays like laptops */
    @media (min-width: 768px) and (max-width: 979px) {
      .container {
        width: 724px
      }
    }

    /* For larger displays */
    @media (min-width: 1200px) {
      .container {
        width: 1170px
      }
    }

Zamiast tamtego jQuery wklej za </div> (tym co dodałeś):
<script type="text/javascript">
    jQuery(function() {
      jQuery('#slides').slidesjs({
        width: 940,
        height: 528,
        navigation: {
          effect: "fade"
        },
        pagination: {
          effect: "fade"
        },
        effect: {
          fade: {
            speed: 400
          }
        }
      });
    });
  </script>

A ten div niech wygląda tak:
<div class="container">
<div id="slides">
    <img src="http://spmiedzyborz.net46.net/images/example-slide-1.jpg">
    <img src="http://spmiedzyborz.net46.net/images/vym8.png">
  </div>
</div>

Tylko nie wyrzucaj tego
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/jquery.slides.min.js"></script>
:)

I tu masz coś źle wklejone:
[Obrazek: kd-apcetlaytebrvvsmqvui.jpg]
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI
http://spmiedzyborz.net46.net/

Nie pojęcia dlaczego, te zdj. nie pokazały mi się na forum.
Dlatego, że z jakiegoś powodu nie działa skrypt a zdjęcia mają w fazie wyjściowej display: none;
Jeśli Ci pomogłem naciśnij guzik POMÓGŁ lub dodaj PUNKT REPUTACJI



Użytkownicy przeglądający ten wątek:

1 gości