亦是金 发表于 2023-3-16 22:35

《琵琶情缘 1》选听 - 新时代乐队

本帖最后由 亦是金 于 2023-3-17 00:26 编辑 <br /><br /><div class="t_fsz">
<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_1846164">

<div class="cont-area">

<div style="width: 1350px;height: 700px;box-shadow:0px 0px 1px 2px #045768, 0px 0px 0px 8px #99e5f5,0px 0px 5px 15px #045768;overflow:hidden;border-radius:1%;margin-top:100px;margin-LEFT: -370px;">

<style>
#papa {display: grid; place-items: center; width: 1350px; height: 700px;box-shadow: 8px 4px 20px hsla(0,0%,0%,.65); user-select: none; overflow: hidden; position: relative; z-index: 1; animation: flash 10s infinite alternate; }
#papa::before { position: absolute; content: ''; width: 100%; height: 100%; background: gray url('https://www.kumeiwp.com/sub/filestores/2023/03/16/ea43ca1509e97ab0fd1ee7a53774188e.gif') no-repeat center/cover; transition: 0.7s; }
#papa:hover::before { transform: scale(1.1);}
/*<!--悬停::在{之前 变换:比例(1.1)--> */

@keyframes flash { from {filter: hue-rotate(0deg); } to {filter: hue-rotate(360deg); }
/*<!--{从{滤镜:色相旋转(0deg);}到{滤色镜:色色旋转(180deg)-->*/
}

<style type="text/css">

@keyframes mv { from { background-position: 1200px 0; } to { background-position: 0 0; } }

.wenzi { position: absolute; left:56px; top: 40px; z-index: 4; color: #ffffff; font: bold 30px/32px '微软简中圆',serif;opacity: .85; }

body { overflow-x: hidden; }

</style>

<div id="papa">
<div class="wenzi">《琵琶情缘 1》选听</div>


</div>

<div style="position: relative; top:-660px;LEFT: 60px;z-index: 12435;">
<style type="text/css">
.lyricDisp{-webkit-text-stroke:1.5px #ffffff;font: bold 2.0em悟空大字库, sans-serif; transition:.3s all ease;font-size:1.8em;}
.lyricDisp:nth-child(1){color:#000080;text-align:left;--aniName:bgMove1;--durTime:100ms;--aniPlayState:running;}
.lyricDisp:nth-child(1)::before{position:absolute;content:attr(data-lrc);width:0;height:100%;left:0;top:0;color: transparent;background: linear-gradient(45deg, #F32121 32%,#8EE73C 43%,#FEFFFF 52%,#091CFD 62%,#36F4B1 75%);-webkit-background-clip: text;-webkit-text-stroke:2px #000000;filter: contrast(110%)brightness(160%);overflow:hidden;white-space:nowrap;animation:var(--aniName) var(--durTime) linear forwards;animation-play-state:var(--aniPlayState);}
.lyricDisp:nth-child(2){color:blue;text-align:center;font-size:1.8em;}@keyframes bgMove1{from{width:0;}to{width:100%;}}@keyframes bgMove0{from{width:0;}to{width:100%;}}
#LRCShow{position:absolute;left:400px;bottom:480px;width:75%;height:120px;margin:6px auto position:relative;<!--歌词位置-->}
#rdisk{position:absolute;left:5px;bottom:0px;border-radius: 50%;font-size:4em;color:red;animation:circleSmall2 6s linear infinite;animation-play-state:paused;cursor:pointer;<!--光盘位置-->}
@keyframes circleSmall2{0%{transform:rotateX(0deg) rotateY(20deg) rotateZ(360deg);}100%{transform:rotateX(0deg) rotateY(20deg) rotate(0deg);}}
#ground3rd{
        width:1000px;height:600px;
        position:absolute;font-size:16px;
        overflow:hidden;border-radius:0px;
        margin:5px 0px 30px -5px;
background:url(https://s4.ax1x.com/2022/03/05/bwbPNq.jpg);
        background-position:center;
        background-size: cover;
      perspective: 1200px;
}

#mpic {
        position: absolute;
        transform: rotateY(0deg);
        top: 0px;
        left: 0px;
        width: 1000px;
        height: 600px;
        animation: rote 80s linear infinite;
        cursor: pointer;
        opacity: 1;
}

@keyframes rote {
        from {
                background-position: 0 0;
                filter: hue-rotate(360deg)
        }

        to {
                background-position: -1730px 300px;
        }
}

#mpic1 {
        position: absolute;
        transform: rotateY(0deg);
        top: 0px;
        left: 0px;
        width: 1000px;
        height: 600px;
        animation: rotet 100s linear infinite;
        cursor: pointer;
        opacity: 1;
}

@keyframes rotet {
        from {
                background-position: 0 0;
                filter: hue-rotate(360deg)
        }

        to {
                background-position: 0px -1730px;
        }
}


#songList li {
        cursor: pointer;
        color: #5074f9;
        font:bold微软雅黑;
      font-size:18px;
      line-height:27px
}
</style>

<div id="ground3rd">
<div class="itemm">

<div style="width: 1000px;height: 600px;box-shadow:0px 0px 1px 2px #045768, 0px 0px 0px 8px #99e5f5,0px 0px 5px 15px #045768;overflow:hidden;border-radius:1%;margin-top:0px;margin-LEFT: 0px;">
<div style="position:relative;width: 1000px;height: 600px;overflow:hidden;top: 0px;left: 0px;">
<div style="left: 0px;position:absolute;top: 0px;">

</div>
<ol id='songList' style="color:red;position:absolute;top:40px;left:0px;"><!--歌曲菜单位置--></ol>
    <div id="rdisk"style="width:100px;height:100px;border: 0px solid #000000;
        background: url('https://s1.ax1x.com/2023/02/28/ppCT07F.png')0 0/100% 100%,conic-gradient(red,orange,yellow,green,teal,blue,#ff0000);
        mask: radial-gradient(transparent 7px,#red 0);transform: rotateX(45deg) rotateY(20deg) rotate(0deg);"></div>
    <div id="LRCShow"></div>
</div>


<!-- 下面一句是存放歌词的标签        -->
<textarea style="visibility:hidden;" id='lrcContent0'></textarea>

<script type="text/javascript">
var lrcPlayer2=function(){return this.init.apply(this,arguments)};lrcPlayer2.prototype={constructor:lrcPlayer2,init:function(opts){this.lyricTxtObj=document.getElementById(opts.lrcTxtID);lyricTxt=this.lyricTxtObj.innerHTML;this.showLrcObj=document.getElementById(opts.lrcShowID);this.gclines=new Array();for(k=0;k<2;k++){this.gclines=document.createElement('div');this.gclines.className='lyricDisp';this.showLrcObj.appendChild(this.gclines)}this.audioCtrl=document.getElementById(opts.audioCtrl);this.handleLrc(lyricTxt);this.genPlayer(opts.audioURL)},handleLrc:function(lyricTxt){this.lrcVec=new Array();var lyriclist=lyricTxt.split(/\r|\n|\r\n/);for(n=0;n<lyriclist.length;n++){chkTime=lyriclist.match(/\[\d{1,2}:\d{2}.\d{1,3}\]|\[\d{1,2}:\d{2}\]/g);if(chkTime){tIdx=lyriclist.lastIndexOf(']');if(tIdx>0)lrcTxt=lyriclist.substr(tIdx+1);for(m=0;m<chkTime.length;m++){ta=chkTime.substr(1).replace(']','').split(/:/);_t=(+ta)*60+(+ta);if(this.lrcVec.length==0&&_t!=0){this.lrcVec.push()}this.lrcVec.push()}}}this.lrcVec.sort(function(a,b){return(a-b)})},showLrc:function(durTime){this.gclines.innerHTML=this.gclines.dataset.lrc=this.lrcVec.length>0?this.lrcVec:"\u3000";this.gclines.style.setProperty('--aniName','bgMove'+(this.idx%2));this.gclines.style.setProperty('--durTime',durTime+'ms');this.gclines.style.setProperty('--aniPlayState','running')},genPlayer:function(mUrl){this.mObj=document.createElement("audio");this.mObj.loop=false;this.mObj.muted=false;this.mObj.src=mUrl;this.showLrcObj.appendChild(this.mObj);this.idx=0;var that=this;this.mObj.addEventListener('ended',function(){that.idx=0});this.mObj.addEventListener('playing',function(){that.audioCtrl.style.animationPlayState='running';that.gclines.style.setProperty('--aniPlayState','running')});this.mObj.addEventListener('pause',function(){that.audioCtrl.style.animationPlayState='paused';that.gclines.style.setProperty('--aniPlayState','paused')});this.mObj.addEventListener('error',function(){console.log("audio wrong, remove play start event");that.showLrcObj.style.display='none';that.showLrcObj.removeChild(this)});this.mObj.addEventListener('timeupdate',function(){if(this.currentTime>that.lrcVec){if(that.idx<(that.lrcVec.length-1)){that.showLrc((that.lrcVec-that.lrcVec)*950)}else{that.showLrc((this.duration-that.lrcVec)*950)}if(that.idx+1==that.lrcVec.length){that.gclines.innerHTML=""}else{that.gclines.innerHTML=that.lrcVec}that.idx++}});this.audioCtrl.onclick=function(){if(that.mObj.paused){that.mObj.play()}else{that.mObj.pause()}};try{this.mObj.play()}catch(err){console.log(err.message)}},stopMusic:function(){this.mObj.pause();this.mObj.controls=false;},setAudioUrl:function(mUrl){this.mObj.src=mUrl},isMusicEnd:function(){return this.mObj.ended},reStart:function(){this.idx=0;this.mObj.play()}}
</script>

<script type="text/javascript">
(function()        {
songParas = [
["《康定情歌》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819007.mp3",`正播放:《康定情歌》 - 新时代乐队`],
["《梅花三弄》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819803.mp3",`正播放:《梅花三弄》 - 新时代乐队`],
["《小草》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819804.mp3",`正播放:《小草》 - 新时代乐队`],
["《赶花会》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819005.mp3",`正播放:《赶花会》 - 新时代乐队`],
["《水中花》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819006.mp3",`正播放:《水中花》 - 新时代乐队`],
["《军港之夜》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819806.mp3",`正播放:《军港之夜》 - 新时代乐队`],
["《小白杨》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819807.mp3",`正播放:《小白杨》 - 新时代乐队`],
["《龙船》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819808.mp3",`正播放:《龙船》 - 新时代乐队`],
["《大浪淘沙》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819009.mp3",`正播放:《大浪淘沙》 - 新时代乐队`],
["《金蛇狂舞》 - 新时代乐队","","https://music.163.com/song/media/outer/url?id=2020819010.mp3",`正播放:《金蛇狂舞》 - 新时代乐队`],
];

var opts = {
        lrcTxtID:'lrcContent0',
        lrcShowID:"LRCShow",
        audioURL:"https://www.qqmc.com/up/kwlink.php?id=60010502&.mp3",
        audioCtrl:'rdisk'
};
var km = null;
var idx = 0;
let songList = document.getElementById('songList');

        for(n = 0; n < songParas.length; n++)        {
                let item = document.createElement('li');
                item.id = 's'+n;
                item.innerHTML = songParas;
               
                songList.appendChild(item);
        }

        items = songList.getElementsByTagName('li');
       
        for(n = 0 ; n < items.length; n++)        {
                items.onclick=function()        {
                        idx = parseInt(this.id.substr(1));
                        document.getElementById('ground3rd').style.backgroundImage = `url(${songParas})`;
                        if(km){
                                km.stopMusic();
                                //km = null;
                                km.handleLrc(songParas);
                                km.setAudioUrl(songParas);
                                km.reStart();
                        }
                        else        {
                                document.getElementById(opts.lrcTxtID).innerHTML = songParas;
                                opts.audioURL=songParas;
                                km = new lrcPlayer2(opts);
                        }
                }
        }
        items.click();

setInterval(() => {
        if(km)        {
                items = songList.getElementsByTagName('li');
                if(km.isMusicEnd())        {
                        idx++; idx %= items.length;
                        items.click();
                }
        }
        //setTimeout(isSongEnded, 500);
}, 500);

})();
</script>


</TD></TR></TBODY></TABLE>

<DIV style="HEIGHT: 100px">

庶民 发表于 2023-3-17 05:08

很欣赏您的作品,拜访并问候!

马黑黑 发表于 2023-3-17 07:29

经典民乐

亦是金 发表于 2023-3-17 11:25

庶民 发表于 2023-3-17 05:08
很欣赏您的作品,拜访并问候!

问好庶民朋友!谢谢欣赏!{:4_191:}

亦是金 发表于 2023-3-17 11:26

马黑黑 发表于 2023-3-17 07:29
经典民乐

问好黑总!谢谢欣赏!{:4_191:}

马黑黑 发表于 2023-3-17 11:54

亦是金 发表于 2023-3-17 11:26
问好黑总!谢谢欣赏!

{:4_190:}

小辣椒 发表于 2023-3-17 13:10

前辈 直接做大的尺寸动图,你现在放大了会清晰度不够,或者等比例放大。。。。

小辣椒 发表于 2023-3-17 13:10

谢谢分享精彩的制作。{:4_178:}

亦是金 发表于 2023-3-17 14:59

小辣椒 发表于 2023-3-17 13:10
前辈 直接做大的尺寸动图,你现在放大了会清晰度不够,或者等比例放大。。。。

问好小辣椒!别称呼前辈,怪不好意思的!{:4_197:}谢谢指点,我以后试试!

亦是金 发表于 2023-3-17 14:59

小辣椒 发表于 2023-3-17 13:10
谢谢分享精彩的制作。

谢谢欣赏!{:4_187:}

绿叶清舟 发表于 2023-3-17 19:14

这么多经典老歌,欣赏了,制作漂亮

亦是金 发表于 2023-3-17 20:04

绿叶清舟 发表于 2023-3-17 19:14
这么多经典老歌,欣赏了,制作漂亮

问好绿叶清舟!谢谢欣赏!{:4_187:}

绿叶清舟 发表于 2023-3-17 20:08

亦是金 发表于 2023-3-17 20:04
问好绿叶清舟!谢谢欣赏!

客气了,晚上好

小辣椒 发表于 2023-3-17 21:39

亦是金 发表于 2023-3-17 14:59
问好小辣椒!别称呼前辈,怪不好意思的!谢谢指点,我以后试试!
不用客气,一起开心玩。
页: [1]
查看完整版本: 《琵琶情缘 1》选听 - 新时代乐队