醉美水芙蓉 发表于 2026-10-31 22:03:47

三天三夜(雷鬼版)

<meta charset="utf-8">
<meta name="referrer" content="never" />
<style>
.lrcShow {
font: bold 3.2em 楷体, 楷体_GB2312;
position: absolute;
width: 80%;
height: 2em;
top: 88%;
left:35%;
color: transparent;
filter: drop-shadow(1px 1px 1px white);
letter-spacing: 0px;
z-index:10;
}
.sChar {
        ddisplay: block;
        padding: 0 2px;
        opacity: 0;
        transform: translate(var(--x), var(--y));
        animation: fadeIn 0.3s var(--delay) forwards;
}
@keyframes fadeIn {
        to {
                transform: translate(0, 0);
                opacity: 1;
        }
}
.stage {
    mask: radial-gradient(closest-side, white 65%, transparent);
}
#oBlk        {width:1400px;height:760px;position:relative;margin:80px auto 40px calc(50% - 781px);overflow:hidden;border-radius:24px;box-shadow:4px 4px 10px black;}
#bjVid        {width:100%;position:absolute;left:0px;bottom:0px;z-index:1;transform: rotateY(0deg);}
        #controlBox        {position:absolute; right:50px;bottom:50px;width:60px;z-index:100;visibility:hidden;//播放按钮}
        #canvas        {position:absolute; left:.1%; top:-1px;transform:scale(2.0);transform: rotateX(180deg);z-index:100;//频谱}
#dprg        {width:60%;appearance: none;height:6px; overflow:hidden; border-radius: 4px;position:absolute;right:20%; bottom:15px; z-index:100;//播放进度}
#dprg::-webkit-progress-value        {background:linear-gradient(-45deg, red, yellow, green, purple, blue);}
#dprg::-webkit-progress-bar        {background:hsla(60,40%,80%,0.5);}
#incBlk        {width:12px;height:12px;overflow:hidden;border-radius:50px;background-color:brown;position:absolute; z-index:100;}
</style>
<div id="oBlk">
        <video id="bjVid" src="https://img-baofun.zhhainiao.com/pcwallpaper_ugc/preview/199929860875024447689643b7902c55_preview.mp4" loop muted autoplay ></video>
        <canvas id="canvas" width='1400' height=207'></canvas>//频谱画布
        <progress id="dprg" value='0' max="100" ></progress>
                <div id="incBlk"></div>
        <div id="controlBox"></div>
        <divclass="lrcShow" data-lrc=''></div>
</div>

<div style="position: relative;width: 500px;height: 50px;top:-80px;LEFT: 980px;z-index: 100;filter: drop-shadow(-1px 1px 1px #e8f552)drop-shadow(0px -1px 1px #e8f552)drop-shadow(0px 0px 1px #e8f552)drop-shadow(0px 0px 1px #e8f552)drop-shadow(0px 0px 1px #e8f552)">
<p><span style="color:#ff0000;"><span style="font-family:华文隶书;"><span style="font-size:24px;"></span></span></span></p></div>

<script>
const lrc =`三天三夜(雷鬼版)
LRC编辑:醉美水芙蓉
一点都不会累
我已经跳了三天三夜
我现在的心情喝汽水也会醉Oh
完全都不会疲倦
我还要再跳三天三夜
我现在的心情轻得好像可以飞
OKOK 加入我的行列
No K No K 白天跳到黑夜
Always Always 快乐不会吃亏
No Way No Way 谁也别想拒绝
三天三夜的三更半夜 跳舞不要停歇
三天三夜的三更半夜 飘浮只靠音乐
三天三夜的三更半夜 全身只剩汗水
三天三夜的三更半夜Ba Ba Ba
完全都没有极限
我已经High 了三天三夜
我现在的心情就在出轨的边缘yeah
根本不可能喝醉
我还要再High 三天三夜
我眼里的世界就像是一部卡通影片
OKOK 加入我的行列
No K No K 白天跳到黑夜
Always Always 快乐不会吃亏
No Way No Way 谁也别想拒绝
三天三夜的三更半夜 跳舞不要停歇
三天三夜的三更半夜 飘浮只靠音乐
三天三夜的三更半夜 全身只剩汗水
三天三夜的三更半夜Ba Ba Ba
OKOK 加入我的行列
No K No K 白天跳到黑夜
Always Always 快乐不会吃亏
No Way No Way 谁也别想拒绝
三天三夜的三更半夜 跳舞不要停歇
三天三夜的三更半夜 飘浮只靠音乐
三天三夜的三更半夜 全身只剩汗水
三天三夜的三更半夜Ba Ba Ba
- 谢谢欣赏 -
`;
const genTagObj = (parentNode,jsonData) => {let sObj=document.createElementNS("http://www.w3.org/2000/svg",jsonData.tag);for(let key in jsonData){if(key==='tag'){continue}else if(jsonData.hasOwnProperty(key)){sObj.setAttribute(key,jsonData)}};if(parentNode)parentNode.appendChild(sObj);return sObj};
const sf1 = document.createElement('script');
sf1.type = 'text/javascript';
sf1.src = "https://upfile.mp3.wf/down.php/9a22ff9215904ae202e4d9c89fea1102.txt";

sf1.charset = "utf-8";
document.body.appendChild(sf1);
sf1.onload = () => {


let playMusic = () =>        {
                //        同步歌词播放
                let opts = {
                        lrcTxt:lrc,
                        audioURL:"https://imgimg.qqdsw8.cn/view.php/9b8781a7fd14b6bbce3102a2b84afbd4.mp3",
                        canvas: canvas,
                };
                return new lrcPlayerFrg(opts);

}
(function()        {
                //-----------------------------------------------------------------------------
                //        同步歌词播放
                let lrcPlayer = playMusic();
               
                const musicObj = lrcPlayer.getAudObj();
                const pausePath = "M35 35 h12 v30 h-12 z m18 0 h12 v30 h-12 z";
                const playPath = "M35 35 l30 15 -30 15 z";
                let ctrlBox = genTagObj(null ,{'tag':'svg', 'viewBox':`0 0 100 100`});
                let circleObj = genTagObj(ctrlBox ,{'tag':'circle', 'r':"36", 'cx':"50", 'cy':"50", 'fill':"none", 'stroke':"red", 'stroke-width':"4"});
                circleObj = genTagObj(ctrlBox ,{'tag':'circle', 'r':"30", 'cx':"50", 'cy':"50", 'fill':"none", 'stroke':"red", 'stroke-width':"2"});
                let pathObj = genTagObj(ctrlBox ,{'tag':'path', 'fill':"red", 'id':"playCtrl", 'd':"M35 35 l30 15 -30 15 z"});
                controlBox.innerHTML = ctrlBox.outerHTML;
               
                let pState = () =>        {
                        musicObj.paused ? (playCtrl.setAttribute('d', playPath), bjVid.pause())
                                                        : (playCtrl.setAttribute('d', pausePath), bjVid.play());
                };
               
                incBlk.style.top = (dprg.offsetTop - (incBlk.offsetHeight - dprg.offsetHeight) / 2) + 'px';
                incBlk.style.left = (dprg.offsetLeft - 0.5 * incBlk.clientWidth) + 'px';

                playCtrl.addEventListener('click', () => {
                                if(lrcPlayer.getAudContext() && lrcPlayer.getAudContext().state !== 'running') {
                                        lrcPlayer.getAudContext().resume();
                                }
                                if (musicObj.paused) {
                                        musicObj.play();
                                } else {
                                        musicObj.pause();
                                }
                });

                musicObj.addEventListener('play', () => pState());
                musicObj.addEventListener('pause', () => pState());
               
                const pblkWidth = dprg.offsetWidth
                const initIndicatorLeft = incBlk.offsetLeft;
                musicObj.addEventListener("timeupdate", () => {
                        dprg.value = parseFloat((musicObj.currentTime / musicObj.duration) * 100);
                        incBlk.style.left = (musicObj.currentTime / musicObj.duration * pblkWidth + initIndicatorLeft) + 'px';
                })
                /**/
                dprg.onclick = (e) =>         {
                        musicObj.currentTime = (e.offsetX / pblkWidth * dprg.max * musicObj.duration / 100);
                }
                /**/
        oBlk.addEventListener('mouseover', () => controlBox.style.visibility='visible');
        oBlk.addEventListener('mouseout', () => setTimeout(() => controlBox.style.visibility='hidden', 1000));
})();
}
</script>

klxf 发表于 2026-10-31 22:20:09

好听好看,谢谢友友精彩分享
页: [1]
查看完整版本: 三天三夜(雷鬼版)