找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
楼主: 丁香

《梅花雪》/杨钰莹

[复制链接]

167

主题

1万

回帖

5万

积分

版主

积分
56833
发表于 2024-3-9 03:06:30 | 显示全部楼层 IP:山东

回复被审核了

283

主题

8899

回帖

4万

积分

版主

积分
40860
 楼主| 发表于 2024-3-9 06:28:17 | 显示全部楼层 IP:
风清 发表于 2024-3-8 19:30
很喜欢的梅花雪,欣赏丁香音画佳作!点赞!

谢谢风清,我改成老谟的有歌词的了。早上好!

283

主题

8899

回帖

4万

积分

版主

积分
40860
 楼主| 发表于 2024-3-9 06:29:37 | 显示全部楼层 IP:
筱亭 发表于 2024-3-9 03:05
爱钱不能不要脸

骂人当然要审核了。我改成代歌词的了

167

主题

1万

回帖

5万

积分

版主

积分
56833
发表于 2024-3-9 08:53:28 来自手机 | 显示全部楼层 IP:山东潍坊
丁香 发表于 2024-3-9 06:29
骂人当然要审核了。我改成代歌词的了

这个女人该骂

283

主题

8899

回帖

4万

积分

版主

积分
40860
 楼主| 发表于 2024-3-9 10:00:48 | 显示全部楼层 IP:


283

主题

8899

回帖

4万

积分

版主

积分
40860
 楼主| 发表于 2024-5-23 19:14:49 | 显示全部楼层 IP:
  1. <style>
  2. #papa {
  3.         margin: auto;
  4.         width: 1024px;
  5.         height: 640px;
  6.         background: url('https://bbs.ltxjob.com/data/attachment/forum/202402/15/212107d7s7ajfilgr4glwn.gif.thumb.jpg ') no-repeat center/cover;
  7.         box-shadow: 3px 3px 20px #000;
  8.         overflow: hidden;
  9.         position: relative;
  10.         z-index: 1;
  11. }
  12. #mypic {
  13.         position: absolute;
  14.         width: 100px;
  15.         margin-top:520px; margin-left:30px;
  16.         cursor: pointer;
  17.         animation: rot 6s infinite linear var(--state);
  18. }
  19. @keyframes rot { to { transform: rotate(360deg); } }
  20. </style>

  21. <div id="papa">
  22.         <img id="mypic" src="https://bbs.ltxjob.com/data/attachment/forum/202401/13/072833drverk0evrtvu8s8.png.thumb.jpg" alt="" /><audio id="aud" src="http://music.163.com/song/media/outer/url?id=26026781.mp3" autoplay loop></audio>
  23. <div  class="lrc" >
  24.     <ul id="ullrc">
  25.        </ul>
  26.             
  27. </div>
  28. </div>

  29. <script>
  30. let mState = () => papa.style.setProperty('--state', aud.paused ? 'paused' : 'running');
  31. aud.addEventListener('pause', () => mState());
  32. aud.addEventListener('playing', () => mState());
  33. mypic.onclick = () => aud.paused ? aud.play() : aud.pause();
  34. </script>
  35. <style type="text/css">
  36. .lrc{
  37.     width: 100%;
  38.     height: 120px;
  39.     overflow: hidden;filter:drop-shadow(#ffffff 1px 0 0)drop-shadow(#ffffff 0 1px 0)drop-shadow(#ffffff -1px 0 0) drop-shadow(#ffffff 0 -1px  0);
  40.     display: block;position: absolute;top:80%; left:0%;z-index: 5;
  41.     margin: 0 auto;}
  42. .lrc #ullrc{
  43. width: 100%;
  44. padding: 0;list-style: none;transition: 0.3s all ease;
  45.     margin: 0;}
  46. /*歌词普通样式*/
  47. .lrc #ullrc li{
  48.     height: 70px;
  49.     line-height: 60px;
  50. font-family:华文隶书;
  51.     font-size: 0px;
  52.     color: #000078;
  53.     font-weight: normal;
  54.     transition: .3s all ease;/*一定要加上不然看着突兀*/
  55.     list-style-type: none;
  56.     text-align: center;display: block;
  57.     width: 100%;
  58.     margin: 0 auto;}
  59. /*动态歌词样式*/
  60. .lrc #ullrc li.active{
  61.     font-size: 40px;
  62.     color: #ff0000;
  63. text-align: center;
  64. }
  65. </style>
  66. <script >
  67. var lrc = `[00:00.00]梅花雪
  68. [00:05.15]作词 : 陈洁明
  69. [00:12.04]作曲 : 李海鹰
  70. [00:18.02]演唱:杨钰莹
  71. [00:24.31]LRC:老谟深虑
  72. [00:32.06]梅花飘雪迎杨柳
  73. [00:36.23]多像你的手
  74. [00:40.58]牵着我的梦儿走
  75. [00:44.87]岁岁永长留
  76. [00:49.27]过小桥上山坡
  77. [00:53.60]不怕冷冷的寒流
  78. [00:57.47]在那人生的路上同追求
  79. [01:01.71]情深意切伴你走
  80. [01:06.09]青山永不该
  81. [01:10.45]绿水永长流
  82. [01:15.01]我爱梅花飘雪的时候
  83. [01:19.23]我要永远握住你得手
  84. [01:23.84]握住春和秋
  85. [01:28.41]走到天尽头
  86. [01:32.96]
  87. [01:52.25]梅花飘雪迎杨柳
  88. [01:56.59]多像你的手
  89. [02:01.02]牵着我的梦儿走
  90. [02:05.03]哦岁岁永长留
  91. [02:09.60]过小桥上山坡
  92. [02:13.99]不怕冷冷的寒流
  93. [02:17.77]在那人生的路上同追求
  94. [02:22.12]情深意切伴你走
  95. [02:26.53]青山永不该
  96. [02:30.85]绿水永长流
  97. [02:35.16]我爱梅花飘雪的时候
  98. [02:39.53]我要永远握住你的手
  99. [02:44.22]握住春和秋
  100. [02:48.72]走到天尽头
  101. [02:52.99]握住春和秋
  102. [02:57.41]走到天尽头
  103. [03:39.24]
  104. `;
  105. function $(id) {return document.getElementById(id);
  106. }//这样写以后getid方便
  107. function getLrcArray() {
  108.     var parts = lrc.split("\n");
  109.     for (let index = 0; index < parts.length; index++) {
  110.         parts[index] = getLrcObj(parts[index]);
  111.     }
  112.     return parts;

  113.     function getLrcObj(content) {
  114. var twoParts = content.split("]");
  115. var time = twoParts[0].substr(1);
  116. var timeParts = time.split(":");
  117. var seconds = +timeParts[1];
  118.         var min = +timeParts[0];
  119.         seconds = min * 60 + seconds;
  120.         var words = twoParts[1];
  121.         return{
  122.             seconds: seconds,
  123.             words: words,
  124.         };
  125.     }
  126. }
  127. var lrcArray = getLrcArray();
  128. function inputLrc() {
  129.     for (let index = 0; index < lrcArray.length; index++) {
  130.         var li = document.createElement("li");
  131.         li.innerText = lrcArray[index].words;
  132.         $("ullrc").appendChild(li);
  133.     }
  134. }
  135. inputLrc();
  136. function setPosition() {
  137.     var index = getLrcIndex();
  138.     if (index == -1) {
  139.         return;
  140.     }
  141.     var lrc_li_height = 70, lrc_ul_height = 60;
  142.     var top = index * lrc_li_height + lrc_li_height / 2 - lrc_ul_height / 2;
  143. if (top < 0) {top = 0;}$("ullrc").style.marginTop = -top + "px";
  144.     var activeLi = $("ullrc").querySelector(".active");
  145.     if(activeLi){
  146.         activeLi.classList.remove("active");}
  147. $("ullrc").children[index].classList.add("active");
  148. }
  149. var turn = 0;
  150. function getLrcIndex(){
  151. var time = $("aud").currentTime + turn;for (var index = 0; index < lrcArray.length; index++) {
  152.         if (lrcArray[index].seconds > time) {
  153.             return index - 1;
  154.         }
  155.     }
  156. }
  157. $("aud").ontimeupdate = setPosition;
  158. </script>



  159. </td></tr>
复制代码


0

主题

320

回帖

983

积分

妙语书生

积分
983
发表于 7 天前 | 显示全部楼层 IP:江苏
留言 早安问好
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|离退休论坛 ( 浙B2-20100176 )

GMT+8, 2024-6-16 13:40 , Processed in 0.117854 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表