找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1161|回复: 46

转载一个短视频

[复制链接]

342

主题

1万

回帖

7万

积分

版主

积分
77332
发表于 2024-12-21 14:52:09 | 显示全部楼层 |阅读模式 IP:澳大利亚
本帖最后由 丁香 于 2025-5-30 15:34 编辑

  1. <br /><br /><div class="cont-area">
  2. <div style="width: 100%;height: 675px;position: absolute;MARGIN-LEFT:-241px;MARGIN-top:60px;"><iframe frameborder="0" height="675" marginheight="0" marginwidth="0" scrolling="no" src="https://v.qq.com/txp/iframe/player.html?vid=u3537xy1jnq" width="1200"></iframe></div>
  3. <div style="width: 1200%;height: 675px;">&nbsp;</div>
  4. <p>&nbsp;</p>
  5. <p>&nbsp;</p>
  6. <p>&nbsp;</p>
  7. <p>&nbsp;</p>
  8. <p>&nbsp;</p>
  9. <p>&nbsp;</p>
  10. <p>&nbsp;</p> </div></td></tr>
  11. </td></tr>
复制代码
腾讯视频代码

342

主题

1万

回帖

7万

积分

版主

积分
77332
 楼主| 发表于 2024-12-21 14:56:24 | 显示全部楼层 IP:澳大利亚
  1. <video loop autoplay style="left:50%; position: absolute; margin-top:90px;width:1200px;height:675px;transform:translate(-50%);"
  2. src="https://file.uhsea.com/2412/3c7867b66eaa0a398fa0fe3c36a89f9bMR.mp4" ></video>
  3. <div style="height:800px;"></div>
复制代码


342

主题

1万

回帖

7万

积分

版主

积分
77332
 楼主| 发表于 2024-12-21 15:01:43 | 显示全部楼层 IP:澳大利亚
本帖最后由 丁香 于 2025-5-30 15:38 编辑
  1. <br /><br /><div class="cont-area">
  2.                 <div style="width: 100%;height: 675px;position: absolute;MARGIN-LEFT:-241px;MARGIN-top:60px;"><iframe frameborder="0" height="675" marginheight="0" marginwidth="0" scrolling="no" src="https://www.56.com/fepc/iframe/tv.html?bid=437578972&site=2" width="1200"></iframe></div>
  3. <div style="width: 1200%;height: 675px;">&nbsp;</div>
  4. <p>&nbsp;</p>
  5. <p>&nbsp;</p>
  6. <p>&nbsp;</p>
  7. <p>&nbsp;</p>
  8. <p>&nbsp;</p>
  9. <p>&nbsp;</p>
  10. <p>&nbsp;</p>  </div></td></tr>
  11. </td></tr>   
复制代码
搜狐视频

756

主题

3万

回帖

15万

积分

版主

积分
157277
发表于 2024-12-21 15:04:10 | 显示全部楼层 IP:河北
[i=s] 本帖最后由 丁香 于 2025-10-17 10:46 编辑 [/i]

这是一个被我搞坏了的帖子,你把它提上来,有人看了会不高兴的。

342

主题

1万

回帖

7万

积分

版主

积分
77332
 楼主| 发表于 2024-12-21 15:05:39 | 显示全部楼层 IP:澳大利亚
本帖最后由 丁香 于 2025-7-11 06:59 编辑
  1. <style>
  2.   #oBlk {
  3.     margin-left: 50% ; left: -600px;
  4.     margin-top:20px;
  5.     width: 1198px;
  6.     height: 800px;
  7.     box-shadow: 3px 3px 10px #000;
  8.     overflow: hidden;
  9.     position: absolute;
  10.   }

  11.   #oBlk::before,
  12.   #oBlk::after {
  13.     position: absolute;
  14.     content: '';
  15.     left: var(--curX0);
  16.     top: 0px;
  17.     width: 100%;
  18.     height: 100%;
  19.     background: url('https://s21.ax1x.com/2025/02/06/pEef5eH.jpg') no-repeat center / cover;
  20.   }

  21.   #oBlk::after {
  22.     left: var(--curX1);
  23.     transform: scaleX(-1);
  24.   }
  25. </style>
  26. <div id="oBlk"></div>
  27. <div style="height:960px;"></div>
  28. <script>
  29. {
  30.   let blkWidth = oBlk.offsetWidth;
  31.   let step = 1.0, tune = 0,
  32.     curX0 = 0,
  33.     curX1 = blkWidth,
  34.     raf;

  35.   let moving = () =>        {
  36. /*   
  37.         //自左向右
  38.     curX0 += step;
  39.     curX1 += step;
  40.     if(curX0 >= blkWidth) curX0 = -blkWidth;
  41.     if(curX1 >= blkWidth) curX1 = -blkWidth;
  42. */      
  43.         //自右向左
  44.     curX0 -= step;
  45.     curX1 -= step;
  46.     if(curX0 <= -blkWidth) curX0 = blkWidth;
  47.     if(curX1 <= -blkWidth) curX1 = blkWidth;

  48.     tune = curX1 + (curX0 >= 0 ? 1 : -1);
  49.     oBlk.style.setProperty('--curX0', curX0 + 'px');
  50.     oBlk.style.setProperty('--curX1', tune + 'px');
  51.     raf = requestAnimationFrame(moving);
  52.   };
  53.   moving();
  54. }  
  55. </script>



  56. <audio src="https://link.hhtjim.com/kw/376472680.mp3" autoplay loop></audio>


  57. 大图移动加音乐
复制代码

756

主题

3万

回帖

15万

积分

版主

积分
157277
发表于 2024-12-21 15:10:55 | 显示全部楼层 IP:河北
本帖最后由 丁香 于 2025-10-15 18:54 编辑
  1. <style>
  2. #papa { margin: 50px 0 20px calc(50% - 281px); background:#800 url(' ')no-repeat center/cover;width: 600px; height: 900px;   box-shadow: 3px 3px 6px gray; overflow: hidden; z-index: 1; position: relative; display: grid; place-items: center; }

  3. #mdiv {z-index: 10;
  4.         --size: 0px;
  5.         --color: teal;
  6.         position: relative;
  7.         left: calc(-35% - var(--size) / 2);
  8.         top: 230px;
  9.         width: var(--size);
  10.         height: var(--size);
  11.         display: grid;
  12.         place-items: center;
  13.         animation: rot 8s linear infinite ;
  14.         cursor: pointer;
  15. }
  16. #mdiv::before, #mdiv::after {
  17.         position: absolute;
  18.         content: '';
  19.         width: 0;
  20.         height: 0;
  21.         border-style: solid;
  22.         border-width: calc(var(--size) / 2) calc(var(--size) / 2 - 35px);
  23.         border-color: var(--color) transparent;
  24.         
  25.         border-radius: 100% 100% 100% 100%;
  26.         filter:drop-shadow(#000 1px 0 0)drop-shadow(#000 0 1px 0)drop-shadow(#000 -1px 0 0) drop-shadow(#000 0 -1px  0);
  27. }
  28. #mdiv::after { transform: rotate(90deg) }
  29. @keyframes rot { 100% { transform: rotate(360deg);filter:hue-rotate(360deg); } }

  30. #vid {z-index: 2;
  31.         position: absolute;
  32.         width: 100%;
  33.         height: 100%;
  34.         object-fit: cover;
  35.         -webkit-mask-image: radial-gra**nt(black 10% ,transparent 90%);
  36. }
  37. #vido {z-index: 1;
  38.         position: absolute;
  39.         width: 100%;
  40.         height: 100%;
  41.         object-fit: cover;
  42.         }

  43. #fullscreen { position: absolute; top: 30px; right:30px;font: normal 2em/0em 楷体;color:#000; opacity: 1; cursor: pointer; z-index: 111}
  44. </style>
  45. <div id="papa">
  46. <div id="mdiv" title=""></div>
  47. <div data-lrc=" " id="lrc" title="歌词显示"> </div>   
  48. <span id="fullscreen">全屏欣赏</span>
  49. <audio id="aud" src="https://link.hhtjim.com/163/2132481289.mp3 "                                                   autoplay loop></audio>
  50. <video id="vid" src=" " autoplay loop muted></video>
  51. <video id="vido" src=" https://upfile.mp3.wf/view.php/f15ffcea7b3466eeb209174e559c79e3.mp4" autoplay loop muted></video>
  52. </div>

  53.   

  54.    
  55. <script>
  56. mdiv.onclick = () => aud.paused ?( aud.play(),vid.play(),vido.play())<img src="static/image/smiley/default/sad.gif" smilieid="2" border="0" alt="" />aud.pause(),vid.pause(),vido.pause());
  57. mdiv.style.animationPlayState = aud.paused ? 'paused' : 'running';
  58. aud.addEventListener('playing', () =>mdiv.style.animationPlayState = 'running');
  59. aud.addEventListener('pause', () =>mdiv.style.animationPlayState = 'paused');

  60. let fs = true;
  61.         fullscreen.onclick = () => {
  62.                 fs ? (fullscreen.innerText = '退出全屏', papa.requestFullscreen()) : (fullscreen.innerText = '全屏欣赏', document.exitFullscreen());
  63.                 fs = !fs;
  64.         };

  65. </script>
  66. <style type="text/css">
  67. #lrc {--state: paused;--motion: cover2;--tt: 2s;--bg: linear-gra**nt(0deg, #880000, #880000, #880000);
  68. position: absolute;z-index: 6;left: 50%; top: 88%;transform: translate(-50%);font:normal 2.5em 华文新魏; font-weight:400;color: #000000;white-space: pre;-webkit-background-clip: text;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);}
  69. #lrc::before {position: absolute;content: attr(data-lrc);width: 100%; height: 100%;color: transparent;overflow: hidden;white-space: pre;background: var(--bg);clip-path: inset(0 100% 0 0);-webkit-background-clip: text;animation: var(--motion) var(--tt) linear forwards;animation-play-state: var(--state);}
  70. @keyframes cover1{ to { clip-path: inset(0 0 0 0); } }@keyframes cover2 { to { clip-path: inset(0 0 0 0); } }
  71. </style>
  72. <script >
  73. (function() {
  74. /*原始lrc歌词*/
  75. let lrcStr = `[00:00.00]武朝歌欢迎您
  76. [00:11.00]《送你一首开心的歌》
  77. [00:14.00]演唱:轻云望月
  78. [00:17.00]作词:轻云望月/且行且歌
  79. [00:20.00]作曲:轻云望月
  80. [00:23.15]送你一首开心的歌

  81. [00:28.18]一定会越听越快乐

  82. [00:33.29]你看那天上悠悠的云朵

  83. [00:38.25]在向你把祝福话儿说

  84. [00:43.52]多少岁月匆匆流过

  85. [00:48.59]一直为了生活拼搏

  86. [00:53.76]只因那时候真的不懂得

  87. [00:58.80]原来健康才是重要的

  88. [01:03.95]现在已经明白很多

  89. [01:09.13]名利不是唯一选择

  90. [01:14.26]有个好身体才会是王者

  91. [01:19.32]不要把大好时光蹉跎

  92. [01:24.33]现在已把所有看破

  93. [01:29.48]该吃就吃该喝就喝

  94. [01:34.62]不再苦苦为一件事执着

  95. [01:39.59]路不通时要学会转折
  96. [01:44.59]
  97. [02:05.28]多少岁月匆匆流过

  98. [02:10.36]一直为了生活拼搏

  99. [02:15.49]只因那时候真的不懂得

  100. [02:20.56]原来健康才是重要的

  101. [02:25.64]现在已经明白很多

  102. [02:30.68]名利不是唯一选择

  103. [02:35.82]有个好身体才会是王者

  104. [02:40.90]不要把大好时光蹉跎

  105. [02:45.98]现在已把所有看破

  106. [02:51.15]该吃就吃该喝就喝

  107. [02:56.35]不再苦苦为一件事执着

  108. [03:01.39]路不通时要学会转折

  109. [03:06.67]现在已经明白很多

  110. [03:11.60]名利不是唯一选择

  111. [03:16.66]有个好身体才会是王者

  112. [03:21.81]不要把大好时光蹉跎

  113. [03:26.97]现在已把所有看破

  114. [03:32.00]该吃就吃该喝就喝

  115. [03:37.03]不再苦苦为一件事执着

  116. [03:42.16]路不通时要学会转折

  117. [03:47.48]路不通时要学会转折
  118. [03:57.48]【离退休论坛】

  119. `;
  120. /*变量 :mKey - 当前歌词索引;mFlag :调用关键帧动画索引;averAdd :平均值补偿*/
  121. let mKey = 0, mFlag = true, averAdd = 0.3;
  122. /*函数 :获取每句歌词用时,歌词用时若超过平均值则取平均值,最后一句歌词则取平均值*/
  123. let lrcTime = (ar) => { let tmpAr = [];
  124. for(j = 0; j <ar.length - 1; j ++) { if(j !== ar.length - 1) tmpAr[j] = parseFloat((ar[j+1][0] - ar[j][0]).toFixed(1));}
  125. let aver = parseInt(tmpAr.reduce((a,b) => a + b) / (tmpAr.length - 1)) + averAdd;
  126. tmpAr.push(aver);
  127. tmpAr.forEach((item,key) => {ar[key][2] = item > aver ? aver : item; });
  128. return ar;};
  129. /*函数 :从原始lrc歌词获取信息并存入 n*3 数组*/
  130. let getLrcAr = (text) => {
  131.        let lrcAr = [];
  132.         let calcRule = [60,1,0.001];
  133.        for(x of text.split('\n')) {
  134.               let ar = [];
  135.                let re = /\d+[\.:]\d+([\.:]\d+)?/g;
  136.                let geci = x.replace(re,'');
  137.                if(geci) {
  138.                        geci = geci.replace(/[\[\]\'"\t,]s?/g,'');
  139.                         let time = x.match(re);
  140.                        if(time != null) {
  141.                                for(y of time) {
  142.                                         let tmp = y.match(/\d+/g);
  143.                                        let sec = 0;
  144.                                        for(z in tmp) sec += tmp[z] * calcRule[z];
  145.                                        ar[0] = [parseFloat(sec.toFixed(2)), geci];
  146.                                        lrcAr.push(ar[0]);
  147.                                 }
  148.                        }
  149.                 }
  150.         }
  151.         lrcAr.sort((a,b)=> a[0] - b[0]);
  152.         return(lrcTime(lrcAr));
  153. };
  154. /*函数 :模拟显示同步歌词*/
  155. let showLrc = (time) => {
  156.         let name = mFlag ? 'cover1' : 'cover2';
  157.        lrc.innerHTML = lrcAr[mKey][1];
  158.         lrc.dataset.lrc = lrcAr[mKey][1];
  159.         lrc.style.setProperty('--motion', name);
  160.         lrc.style.setProperty('--tt', time + 's');
  161.         lrc.style.setProperty('--state', 'running');
  162.         mKey += 1;
  163.        mFlag = !mFlag;
  164. };
  165. /*函数 :处理当前歌词索引 mKey*/
  166. let calcKey = () => {
  167.         for (j = 0; j < lrcAr.length; j++) {
  168.                 if (aud.currentTime <= lrcAr[j][0]) {
  169.                         mKey = j - 1;
  170.                         break;
  171.                }
  172.       }
  173.        if (mKey < 0) mKey = 0;
  174.         if (mKey > lrcAr.length - 1) mKey = lrcAr.length - 1;
  175.        let time = lrcAr[mKey][2] - (aud.currentTime - lrcAr[mKey][0]);
  176.         showLrc(time);
  177. };
  178. /*格式化时间信息*/
  179. let toMin = (val) => {
  180.       if (!val) return '00:00';
  181.       val = Math.floor(val);
  182.        let min = parseInt(val / 60),
  183.         sec = parseFloat(val % 60);
  184.        if (min < 10) min = '0' + min;
  185.         if (sec < 10) sec = '0' + sec;
  186.         return min + ':' + sec;
  187. }
  188. /*函数 :关键帧动画状态切换*/
  189. let mState = () => aud.paused ? (lrc.style.setProperty('--state','paused'),mdiv.style.animationPlayState = 'paused') : (lrc.style.setProperty('--state','running'),mdiv.style.animationPlayState = 'running');
  190. /*监听播放进度*/
  191. aud.addEventListener('timeupdate', () => {
  192.         for (j = 0; j < lrcAr.length; j++) {
  193.                 if (aud.currentTime >= lrcAr[j][0]) {
  194.                         cKey = j;
  195.                         if (mKey === j) showLrc(lrcAr[j][2]);
  196.          else continue;
  197.        }
  198.     }
  199. });
  200. aud.addEventListener('pause', () => mState());/*监听暂停事件*/
  201. aud.addEventListener('play', () => mState());/*监听播放事件*/
  202. aud.addEventListener('seeked', () => calcKey());/*监听查询事件*/
  203. let lrcAr = getLrcAr(lrcStr); /*获得歌词数组*/
  204. })();
  205. </script></td></tr>
复制代码
开心的歌https://link.hhtjim.com/163/2132481289.mp3

571

主题

2万

回帖

13万

积分

超级版主

积分
132688
发表于 2024-12-21 15:23:31 | 显示全部楼层 IP:亚太地区
本帖最后由 老谟深虑 于 2024-12-21 15:35 编辑

        我看到和听到,这首歌:土坡上的狗尾巴草。<audio id="bgmMusic" src="https://cccimg.com/view.php/a4705f15b447094ddda9eb9ac6f54f25.mp3" autoplay="autoplay" loop="loop" preload="auto"></audio>

83

主题

1万

回帖

5万

积分

版主

积分
56877
发表于 2024-12-21 16:02:44 | 显示全部楼层 IP:山东青岛
本帖最后由 丁香 于 2025-10-28 14:09 编辑
  1. <audio src="https://link.hhtjim.com/163/1320646638.mp3" autoplay loop></audio>
复制代码





蓝朵欢迎你的到来!

44

主题

1万

回帖

4万

积分

超级版主

积分
48595
发表于 2024-12-21 16:14:22 | 显示全部楼层 IP:福建厦门

看到的,于和伟演技很好!

268

主题

1万

回帖

5万

积分

蓬莱仙人

积分
58271
发表于 2024-12-21 16:29:35 | 显示全部楼层 IP:河北秦皇岛
本帖最后由 丁香 于 2025-10-14 17:45 编辑
  1. <div style="width: 100%;height: 675px;position: absolute;MARGIN-LEFT:-240px;MARGIN-top:150px;"><iframe frameborder="0" height="675" marginheight="0" marginwidth="0" scrolling="no" src="https://tv.sohu.com/s/sohuplayer/iplay.html?bid=601014514&autoplay=true&disablePlaylist=true[/url]" width="1200" allowfullscreen></iframe></div>
  2. <div style="width: 1200%;height: 850px;"> </div>

  3. 搜狐
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-10-30 22:49 , Processed in 0.060351 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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