当前位置:   article > 正文

JS特效第150弹:html5网页音乐播放器代码

JS特效第150弹:html5网页音乐播放器代码

          基于jquery html5音乐播放器效果,先来看看效果:

        一部分关键的代码如下:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Music Player - CodePen</title>
  6. <link rel="stylesheet" href="css/reset.css">
  7. <link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />
  8. </head>
  9. <body>
  10. <div class="music-player">
  11. <!--<div style="background-image: url(http://i.imgur.com/yqB0erk.jpg);" class="album"></div>-->
  12. <div class="info">
  13. <div class="left">
  14. <a href="javascript:;" class="icon-shuffle"></a>
  15. <a href="javascript:;" class="icon-heart"></a>
  16. </div>
  17. <div class="center">
  18. <div class="jp-playlist">
  19. <ul>
  20. <li></li>
  21. </ul>
  22. </div>
  23. </div>
  24. <div class="right">
  25. <a href="javascript:;" class="icon-repeat"></a>
  26. <a href="javascript:;" class="icon-share"></a>
  27. </div>
  28. <div class="progress jp-seek-bar">
  29. <span class="jp-play-bar" style="width: 0%"></span>
  30. </div>
  31. </div>
  32. <div class="controls">
  33. <div class="current jp-current-time">00:00</div>
  34. <div class="play-controls">
  35. <a href="javascript:;" class="icon-previous jp-previous" title="previous"></a>
  36. <a href="javascript:;" class="icon-play jp-play" title="play"></a>
  37. <a href="javascript:;" class="icon-pause jp-pause" title="pause"></a>
  38. <a href="javascript:;" class="icon-next jp-next" title="next"></a>
  39. </div>
  40. <div class="volume-level jp-volume-bar">
  41. <span class="jp-volume-bar-value" style="width: 0%"></span>
  42. <a href="javascript:;" class="icon-volume-up jp-volume-max" title="max volume"></a>
  43. <a href="javascript:;" class="icon-volume-down jp-mute" title="mute"></a>
  44. </div>
  45. </div>
  46. <div id="jquery_jplayer" class="jp-jplayer"></div>
  47. </div>
  48. <script src="js/jquery.min.js"></script>
  49. <script src="js/jquery.jplayer.min.js"></script>
  50. <script src="js/jplayer.playlist.min.js"></script>
  51. <script src="js/index.js"></script>
  52. </body>
  53. </html>

        全部代码:html5网页音乐播放器代码

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/90994
推荐阅读
相关标签
  

闽ICP备14008679号