afdw
-
Posts
1,216 -
Joined
-
Last visited
-
Days Won
22
Community Answers
-
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> -
afdw's post in Выравнивание элемента по центру was marked as the answer
<div class="clock flip-clock-wrapper" style="margin: 5em auto; width: 720px; display: block;">
-
afdw's post in Переход между блоками с паралакс эффектом was marked as the answer
http://jsfiddle.net/2zdpu91q/
-
afdw's post in установка cookies в js was marked as the answer
Да ладно вам. Всё ну ОЧЕНЬ просто:
localStorage["slider"] = 231;console.log(localStorage["slider"]); //231После обновления значение сохранится.
-
afdw's post in Инпут с выпадающим списком was marked as the answer
Вот этот плагин, я думаю, подойдёт.
-
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;
}
-
afdw's post in Какие бывают меню (навигация) was marked as the answer
1) Обычно нет.
2) Ну сравнить pathname текущей страницы и ссылки.
-
afdw's post in Как отменить действие скролла? was marked as the answer
Потому что на события в jQuery можно вешать несколько обработчиков.
А отменить так:
$(window).unbind("scroll") -
afdw's post in Скачиваем файл с помощью Ajax! was marked as the answer
Через AJAX невозможно. Вот так надо:
location.href = "../download.php"; -
afdw's post in Виртуальная(?) ссылка was marked as the answer
Для Apache: http://www.phpinfo.su/articles/practice/chpu_na_php.html
-
afdw's post in Как спрятать скроллбар? was marked as the answer
Никак. Сделать это на JS можно только симуляцией браузерного скрола. Так что либо плагин, либо самому писать. В 2 строки не сделать.
-
afdw's post in Помогите разобраться с двумя задачами на js was marked as the answer
1: http://jsfiddle.net/s5xrj91u/
2: http://jsfiddle.net/eytz3tno/
-
afdw's post in Простой вопрос! was marked as the answer
http://line25.com/tutorials/how-to-create-flat-style-breadcrumb-links-with-css