Скрипты для сайта
Главная
|
Регистрация
|
Вход
Приветствую Вас
Гость
|
RSS
Меню сайта
Главная страница
Блог
Гостевая книга
Обратная связь
Слайдеры и слайдшоу
Графика и мультимедиа
Оформление текста
Структурирование текста
Таблицы
Cоздания Web-страниц
Средства навигации
Московское время
Теги HTML
Терминология языка HTML
Теги HTML по алфавиту
Теги HTML по типу
Уроки HTML начинающим
CSS
Введение в стили CSS
Параметры шрифта и фона
Отображения текста
Отступы,рамки и выделение
Параметры абзацев,списков
Параметры таблиц
Специальные селекторы
Реклама
Все для сайта
Все для графики
Меню и навигация
Слайдеры и слайдшоу
Кнопки и иконки
Tooltips
Аудио и видео плееры
Формы и таблицы
Audio Player – Responsive и Touch-Friendly
Audio Player – Responsive и Touch-Friendly
Основной код CSS
html { height: 100%; font-size: 100%; } body { min-height: 100%; font-family: 'Lato', sans-serif; font-weight: 400; background: #9acde2; } #wrapper { width: 100%; max-width: 500px; position: relative; margin: 0 auto; } h1 { padding: 4em 3em 1em; font-size: 150%; line-height: 1.5; font-weight: 700; color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,0.2); text-align: center; } h1 span { font-weight: 400; } h2 { text-align: center; margin-bottom: 3em; color: #4c7687; text-shadow: 1px 1px 1px rgba(255,255,255,0.5); } .attribution { padding: 3em 0; text-align: center; color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,0.2); } .attribution a { color: #fff; } /* Header Style */ .codrops-top { line-height: 24px; font-size: 11px; background: #fff; background: rgba(255, 255, 255, 0.5); text-transform: uppercase; z-index: 9999; position: relative; box-shadow: 1px 0px 2px rgba(0,0,0,0.2); } .codrops-top a { padding: 0px 10px; letter-spacing: 1px; color: #333; display: inline-block; text-decoration: none; } .codrops-top a:hover { background: rgba(255,255,255,0.8); color: #000; } .codrops-top span.right { float: right; } .codrops-top span.right a { float: left; display: block; } @media only screen and ( max-width: 32.5em ) /* 520 */ { body { -webkit-box-shadow: inset 0 0 9.375em rgba( 0, 0, 0, .5 ); /* 150 */ -moz-box-shadow: inset 0 0 9.375em rgba( 0, 0, 0, 5 ); /* 150 */ box-shadow: inset 0 0 9.375em rgba( 0, 0, 0, .5 ); /* 150 */ } #wrapper { width: 100%; height: auto; position: static; padding: 3.125em 1.25em; /* 50 20 */ margin: 0; } }
.audioplayer { height: 2.5em; /* 40 */ color: #fff; text-shadow: 1px 1px 0 #000; border: 1px solid #222; position: relative; z-index: 1; background: #333; background: -webkit-gradient( linear, left top, left bottom, from( #444 ), to( #222 ) ); background: -webkit-linear-gradient( top, #444, #222 ); background: -moz-linear-gradient( top, #444, #222 ); background: -ms-radial-gradient( top, #444, #222 ); background: -o-linear-gradient( top, #444, #222 ); background: linear-gradient( top, #444, #222 ); -webkit-box-shadow: inset 0 1px 0 rgba( 255, 255, 255, .15 ), 0 0 1.25em rgba( 0, 0, 0, .5 ); /* 20 */ -moz-box-shadow: inset 0 1px 0 rgba( 255, 255, 255, .15 ), 0 0 1.25em rgba( 0, 0, 0, .5 ); /* 20 */ box-shadow: inset 0 1px 0 rgba( 255, 255, 255, .15 ), 0 0 1.25em rgba( 0, 0, 0, .5 ); /* 20 */ -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; } .audioplayer-mini { width: 2.5em; /* 40 */ margin: 0 auto; } .audioplayer > div { position: absolute; } .audioplayer-playpause { width: 2.5em; /* 40 */ height: 100%; text-align: left; text-indent: -9999px; cursor: pointer; z-index: 2; top: 0; left: 0; } .audioplayer:not(.audioplayer-mini) .audioplayer-playpause { border-right: 1px solid #555; border-right-color: rgba( 255, 255, 255, .1 ); } .audioplayer-mini .audioplayer-playpause { width: 100%; } .audioplayer-playpause:hover, .audioplayer-playpause:focus { background-color: #222; } .audioplayer-playpause a { display: block; } .audioplayer:not(.audioplayer-playing) .audioplayer-playpause a { width: 0; height: 0; border: 0.5em solid transparent; /* 8 */ border-right: none; border-left-color: #fff; content: ''; position: absolute; top: 50%; left: 50%; margin: -0.5em 0 0 -0.25em; /* 8 4 */ } .audioplayer-playing .audioplayer-playpause a { width: 0.75em; /* 12 */ height: 0.75em; /* 12 */ position: absolute; top: 50%; left: 50%; margin: -0.375em 0 0 -0.375em; /* 6 */ } .audioplayer-playing .audioplayer-playpause a:before, .audioplayer-playing .audioplayer-playpause a:after { width: 40%; height: 100%; background-color: #fff; content: ''; position: absolute; top: 0; } .audioplayer-playing .audioplayer-playpause a:before { left: 0; } .audioplayer-playing .audioplayer-playpause a:after { right: 0; } .audioplayer-time { width: 4.375em; /* 70 */ height: 100%; line-height: 2.375em; /* 38 */ text-align: center; z-index: 2; top: 0; } .audioplayer-time-current { border-left: 1px solid #111; border-left-color: rgba( 0, 0, 0, .25 ); left: 2.5em; /* 40 */ } .audioplayer-time-duration { border-right: 1px solid #555; border-right-color: rgba( 255, 255, 255, .1 ); right: 2.5em; /* 40 */ } .audioplayer-novolume .audioplayer-time-duration { border-right: 0; right: 0; } .audioplayer-bar { height: 0.875em; /* 14 */ background-color: #222; cursor: pointer; z-index: 1; top: 50%; right: 6.875em; /* 110 */ left: 6.875em; /* 110 */ margin-top: -0.438em; /* 7 */ } .audioplayer-novolume .audioplayer-bar { right: 4.375em; /* 70 */ } .audioplayer-bar div { width: 0; height: 100%; position: absolute; left: 0; top: 0; } .audioplayer-bar-loaded { background-color: #333; z-index: 1; } .audioplayer-bar-played { background: #007fd1; background: -webkit-gradient( linear, left top, right top, from( #007fd1 ), to( #c600ff ) ); background: -webkit-linear-gradient( left, #007fd1, #c600ff ); background: -moz-linear-gradient( left, #007fd1, #c600ff ); background: -ms-radial-gradient( left, #007fd1, #c600ff ); background: -o-linear-gradient( left, #007fd1, #c600ff ); background: linear-gradient( left, #007fd1, #c600ff ); z-index: 2; } .audioplayer-volume { width: 2.5em; /* 40 */ height: 100%; border-left: 1px solid #111; border-left-color: rgba( 0, 0, 0, .25 ); text-align: left; text-indent: -9999px; cursor: pointer; z-index: 2; top: 0; right: 0; } .audioplayer-volume:hover, .audioplayer-volume:focus { background-color: #222; } .audioplayer-volume-button { width: 100%; height: 100%; } .audioplayer-volume-button a { width: 0.313em; /* 5 */ height: 0.375em; /* 6 */ background-color: #fff; display: block; position: relative; z-index: 1; top: 40%; left: 35%; } .audioplayer-volume-button a:before, .audioplayer-volume-button a:after { content: ''; position: absolute; } .audioplayer-volume-button a:before { width: 0; height: 0; border: 0.5em solid transparent; /* 8 */ border-left: none; border-right-color: #fff; z-index: 2; top: 50%; right: -0.25em; margin-top: -0.5em; /* 8 */ } .audioplayer:not(.audioplayer-mute) .audioplayer-volume-button a:after { /* "volume" icon by Nicolas Gallagher, http://nicolasgallagher.com/pure-css-gui-icons */ width: 0.313em; /* 5 */ height: 0.313em; /* 5 */ border: 0.25em double #fff; /* 4 */ border-width: 0.25em 0.25em 0 0; /* 4 */ left: 0.563em; /* 9 */ top: -0.063em; /* 1 */ -webkit-border-radius: 0 0.938em 0 0; /* 15 */ -moz-border-radius: 0 0.938em 0 0; /* 15 */ border-radius: 0 0.938em 0 0; /* 15 */ -webkit-transform: rotate( 45deg ); -moz-transform: rotate( 45deg ); -ms-transform: rotate( 45deg ); -o-transform: rotate( 45deg ); transform: rotate( 45deg ); } .audioplayer-volume-adjust { height: 6.25em; /* 100 */ cursor: default; position: absolute; left: 0; right: -1px; top: -9999px; background: #222; background: -webkit-gradient( linear, left top, left bottom, from( #444 ), to( #222 ) ); background: -webkit-linear-gradient( top, #444, #222 ); background: -moz-linear-gradient( top, #444, #222 ); background: -ms-radial-gradient( top, #444, #222 ); background: -o-linear-gradient( top, #444, #222 ); background: linear-gradient( top, #444, #222 ); -webkit-border-top-left-radius: 2px; -webkit-border-top-right-radius: 2px; -moz-border-radius-topleft: 2px; -moz-border-radius-topright: 2px; border-top-left-radius: 2px; border-top-right-radius: 2px; } .audioplayer-volume:not(:hover) .audioplayer-volume-adjust { opacity: 0; } .audioplayer-volume:hover .audioplayer-volume-adjust { top: auto; bottom: 100%; } .audioplayer-volume-adjust > div { width: 40%; height: 80%; background-color: #222; cursor: pointer; position: relative; z-index: 1; margin: 30% auto 0; } .audioplayer-volume-adjust div div { width: 100%; height: 100%; position: absolute; bottom: 0; left: 0; background: #007fd1; background: -webkit-gradient( linear, left bottom, left top, from( #007fd1 ), to( #c600ff ) ); background: -webkit-linear-gradient( bottom, #007fd1, #c600ff ); background: -moz-linear-gradient( bottom, #007fd1, #c600ff ); background: -ms-radial-gradient( bottom, #007fd1, #c600ff ); background: -o-linear-gradient( bottom, #007fd1, #c600ff ); background: linear-gradient( bottom, #007fd1, #c600ff ); } .audioplayer-novolume .audioplayer-volume { display: none; } .audioplayer-play, .audioplayer-pause, .audioplayer-volume a { -webkit-filter: drop-shadow( 1px 1px 0 #000 ); -moz-filter: drop-shadow( 1px 1px 0 #000 ); -ms-filter: drop-shadow( 1px 1px 0 #000 ); -o-filter: drop-shadow( 1px 1px 0 #000 ); filter: drop-shadow( 1px 1px 0 #000 ); } .audioplayer-bar, .audioplayer-bar div, .audioplayer-volume-adjust div { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .audioplayer-bar, .audioplayer-volume-adjust > div { -webkit-box-shadow: -1px -1px 0 rgba( 0, 0, 0, .5 ), 1px 1px 0 rgba( 255, 255, 255, .1 ); -moz-box-shadow: -1px -1px 0 rgba( 0, 0, 0, .5 ), 1px 1px 0 rgba( 255, 255, 255, .1 ); box-shadow: -1px -1px 0 rgba( 0, 0, 0, .5 ), 1px 1px 0 rgba( 255, 255, 255, .1 ); } .audioplayer-volume-adjust div div, .audioplayer-bar-played { -webkit-box-shadow: inset 0 0 5px rgba( 255, 255, 255, .5 ); -moz-box-shadow: inset 0 0 5px rgba( 255, 255, 255, .5 ); box-shadow: inset 0 0 5px rgba( 255, 255, 255, .5 ); } .audioplayer-volume-adjust { -webkit-box-shadow: -2px -2px 2px rgba( 0, 0, 0, .15 ), 2px -2px 2px rgba( 0, 0, 0, .15 ); -moz-box-shadow: -2px -2px 2px rgba( 0, 0, 0, .15 ), 2px -2px 2px rgba( 0, 0, 0, .15 ); box-shadow: -2px -2px 2px rgba( 0, 0, 0, .15 ), 2px -2px 2px rgba( 0, 0, 0, .15 ); } .audioplayer *, .audioplayer *:before, .audioplayer *:after { -webkit-transition: color .25s ease, background-color .25s ease, opacity .5s ease; -moz-transition: color .25s ease, background-color .25s ease, opacity .5s ease; -ms-transition: color .25s ease, background-color .25s ease, opacity .5s ease; -o-transition: color .25s ease, background-color .25s ease, opacity .5s ease; transition: color .25s ease, background-color .25s ease, opacity .5s ease; }
Листинг
<h1> Audio Player – <span> Responsive & Touch-Friendly </span> </h1>
<div id="wrapper">
<audio preload="auto" controls="">
<source src="../sound.mp4"></source>
<source src="../sound.ogg"></source>
<source src="../sound.wav"></source>
</audio> </div>
JAVASCRIPT
<script src="../js/jquery.js"></script> <script src="../js/audioplayer.js"></script> <script>$( function() { $( 'audio' ).audioPlayer(); } );</script>
Предпросмотр
Скачать
Заработай сейчас!
Навигация по сайту
ТЕГИ html на <А>
Тег <a>
Тег <аbbr>
Тег <аcrоnym>
Тег <аddrеss>
Тег <аррlet>
Тег <area>
Тег <article>
Тег <aside>
Тег <audio>
ТЕГИ html на <B>
Тег <b>
Тег <br>
Тег <base>
Тег <basefont>
Тег <bdo>
Тег <bgsound>
Тег <button>
Тег<blockquote>
Тег <big>
Тег <body>
Тег <blink>
< option value="//samouchka-html.ucoz.ru/load/tegi_html_po_alfavitu/teg_lt_br/2-1-0-15 " title="Тег <b>br>">Тег <br> option value="//samouchka-html.ucoz.ru/load/tegi_html_po_alfavitu/teg_lt_button/2-1-0-14 " title="Тег <b>button> "> Тег <button>
ТЕГИ html на <C>
Тег <canvas>
Тег <caption>
Тег <center>
Тег <cite>
Тег <code>
Тег <col>
Тег <colgroup>
Тег <command>
Тег <comment>
ТЕГИ html на <D>
Тег <datalist>
Тег <dd>
Тег <del>
Тег <details>
Тег <dfn>
Тег <dir>
Тег <div>
Тег <dl>
Тег <dt>
ТЕГИ html на <E>
Тег <em>
Тег <embed>
ТЕГИ html на <F>
Тег <fieldset>
Тег<figcaption>
Тег <figure>
Тег <font>
Тег <form>
Тег <footer>
Тег <frame>
Тег <frameset>
ТЕГИ html на <H>
Тег <h1> - <h6>
Тег <head>
Тег <header>
Тег <hgroup>
Тег <hr>
Тег <html>
ТЕГИ html на <I>
Тег <i>
Тег <iframe>
Тег <img>
Тег <input>
Тег <ins>
Тег <isindex>
ТЕГИ html на <K>
Тег <kbd>
Тег <keygen>
ТЕГИ html на <L>
Тег <label>
Тег <legend>
Тег <li>
Тег <link>
Тег <listing>
ТЕГИ html на <M>
Тег <map>
Тег <marquee>
Тег <mark>
Тег <menu>
Тег <meta>
Тег <meter>
Тег <multicol>
ТЕГИ html на <N>
Тег <nav>
Тег <nobr>
Тег <noembed>
Тег <noframes>
Тег <noscript>
ТЕГИ html на <O>
Тег <object>
Тег <ol>
Тег <optgroup>
Тег <option>
Тег <output>
ТЕГИ html на <P>
Тег <p>
Тег <param>
Тег <plaintext>
Тег <pre>
Тег <progress>
ТЕГИ html на <Q>
Тег <q>
ТЕГИ html на <R>
Тег <rp>
Тег <rt>
Тег <ruby>
t>
ТЕГИ html на <S>
Тег <s>
Тег <samp>
Тег <script>
Тег <section>
Тег <select>
Тег <small>
Тег <source>
Тег <spacer>
Тег <span>
Тег <strike>
Тег <strong>
Тег <style>
Тег <sub>
Тег <summary>
Тег <sup>
ТЕГИ html на <T>
Тег <table>
Тег <tbody>
Тег <td>
Тег <textarea>
Тег <tfoot>
Тег <th>
Тег <thead>
Тег <time>
Тег <title>
Тег <tr>
Тег <track>
Тег <tt>
ТЕГИ html на <U>
Тег <u>
Тег <ul>
ТЕГИ html на <V>
Тег <var>
Тег <video>
ТЕГИ html на <W>
Тег <wbr>
ТЕГИ html на <X>
Тег <xmp>
УРОКИ HTML НАЧИНАЮЩИМ
Введение HTML
Структура HTML-документа
Атрибуты и заголовки
Текст в html-документе
Создание таблиц в HTML
Графика и мультимедиа
Создание списков в HTML
Создание ссылок в HTML
Создание форм в HTML
Изображения на странице
ТЕГИ HTML ПО ТИПУ
HTML 5
Блочные элементы
Строчные элементы
Универсальные элементы
Нестандартные теги
Осуждаемые теги
Видео
Документ
Звук
Изображения
Объекты
Скрипты
Списки
Ссылки
Таблицы
Текст
Форматирование
Формы
Фреймы
ВСЕ ДЛЯ СОЗДАНИЯ САЙТА
Создание кнопок
Бегущая строка
Интерактивность на сайте
Слайдеры и слайдшоу
Меню и навигация по сайту
Эффекты для изображений
Все для графики
Кнопки и иконки на css
Гаджеты
Поиск по сайту
Друзья сайта
Самоучитель html
Все для веб-мастера
Музыка для души
Мир развлечений
Скачать кино бесплатно!
Видеоклипы online
Хостинг от
uCoz
Avon
Присоединяйтесь
к Avon