Jump to content

afdw

User
  • Posts

    1,216
  • Joined

  • Last visited

  • Days Won

    22

Community Answers

  1. afdw's post in Посоветуйте слайдер was marked as the answer   
    Вот пример: http://order.zz.mu/vimeo.php
    Вот код:
    <?php$videos = Array("128171814", "127958989", "126775227");?><iframe src="https://player.vimeo.com/video/<?= $videos[0] ?>" width="500" height="309" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="display: block; margin-bottom: 10px"></iframe><?phpforeach($videos as $video){$hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$video.php"));?><img src="<?= $hash[0]['thumbnail_medium'] ?>" onclick="openvideo(<?= $video ?>)"><?php}?><script>function openvideo(video){document.querySelector("iframe").src = "https://player.vimeo.com/video/" + video;}</script>
  2. afdw's post in как убрать полосы в ютубе was marked as the answer   
    http://jsfiddle.net/yah7r46q/
  3. afdw's post in Пошаговая форма, проблемы was marked as the answer   
    http://jsfiddle.net/3Lgfo785/1/
  4. afdw's post in Выравнивание элемента по центру was marked as the answer   
    <div class="clock flip-clock-wrapper" style="margin: 5em auto; width: 720px; display: block;">

  5. afdw's post in Переход между блоками с паралакс эффектом was marked as the answer   
    http://jsfiddle.net/2zdpu91q/
  6. afdw's post in Поисковик Яндекс и Google was marked as the answer   
    http://order.zz.mu/
  7. afdw's post in установка cookies в js was marked as the answer   
    Да ладно вам. Всё ну ОЧЕНЬ просто:
    localStorage["slider"] = 231;console.log(localStorage["slider"]); //231После обновления значение сохранится.
  8. afdw's post in Инпут с выпадающим списком was marked as the answer   
    Вот этот плагин, я думаю, подойдёт.
  9. afdw's post in Как изменить фон was marked as the answer   
    #block-main {
    background: url("../images/top.png"), linear-gradient(to bottom, #eee 0, #EEE 420px, red 421px);
    background-repeat: no-repeat;
    background-position: center top;
    }

  10. afdw's post in Оверлеи поверх картинок was marked as the answer   
    http://jsfiddle.net/av2tzwkr/
  11. afdw's post in Какие бывают меню (навигация) was marked as the answer   
    1) Обычно нет.
    2) Ну сравнить pathname текущей страницы и ссылки.
  12. afdw's post in Как отменить действие скролла? was marked as the answer   
    Потому что на события в jQuery можно вешать несколько обработчиков.
    А отменить так:
    $(window).unbind("scroll")
  13. afdw's post in Скачиваем файл с помощью Ajax! was marked as the answer   
    Через AJAX невозможно. Вот так надо:
    location.href = "../download.php";
  14. afdw's post in Виртуальная(?) ссылка was marked as the answer   
    Для Apache: http://www.phpinfo.su/articles/practice/chpu_na_php.html
  15. afdw's post in Как спрятать скроллбар? was marked as the answer   
    Никак. Сделать это на JS можно только симуляцией браузерного скрола. Так что либо плагин, либо самому писать. В 2 строки не сделать.
  16. afdw's post in Помогите разобраться с двумя задачами на js was marked as the answer   
    1: http://jsfiddle.net/s5xrj91u/
    2: http://jsfiddle.net/eytz3tno/
  17. afdw's post in border текст was marked as the answer   
    https://jsfiddle.net/kL19sfbL/1/
  18. afdw's post in Простой вопрос! was marked as the answer   
    http://line25.com/tutorials/how-to-create-flat-style-breadcrumb-links-with-css
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy