醉美水芙蓉 发表于 2022-10-25 22:55

西楼儿女

本帖最后由 醉美水芙蓉 于 2022-10-25 22:54 编辑 <br /><br /><style>
      #papa { left:-240px; width: 1024px; height: 600px; top:0px; background: #ccc url('https://img-baofun.zhhainiao.com/fs/scene/preview_img_raw/ebef7d8cfd1a26f53bda4b294ac84e5d_preview_raw.jpg') no-repeat center/cover; box-shadow: 3px 3px 20px #000; display: grid; place-items: center; position: relative; z-index: 1; }
      #mplayer { position: absolute; left: 450px; top: 530px; width: 140px; height: 70px; user-select: none; display: grid; place-items: center; cursor: pointer; }
      #mplayer:hover #btnwrap, #mplayer:hover #prog { transform: translateY(var(--yy)); }      
      #mplayer:hover #btnwrap { background: linear-gradient(to top right, red, green); border-radius: 50%; opacity: .75; }
      #btnwrap, #prog { position: absolute; display: grid; place-items: center;transition: .5s; }
      #btnwrap { --yy: -15px; width: 40px; height: 40px; transform: rotate(45deg); border: 1px solid tan; border-radius: 6px; opacity: .25; }
      #btnplay { width: 20px; height: 20px; background: #eee; clip-path: polygon(0 0, 0% 100%, 100% 50%); }
      #btnpause { width: 2px; height: 20px; border-style: solid; border-width: 0px 4px; border-color: transparent #eee; display: none; }
      #prog { --yy: 20px; width: 140px; height: 16px; border-radius: 10px; background: linear-gradient(90deg, orange, red 100%, transparent 0); border: 1px solid gray; font: normal 14px / 16px sans-serif; color: #1551C8; opacity: .75; }
      #lrc { position: absolute; top: 500px;left: 390px; font: bold 2.3em sans-serif;font-family:汉仪雪峰体简; filter:drop-shadow(#FFFfff 1px 0 0)drop-shadow(#FFFfff 0 1px 0)drop-shadow(#FFFfff -1px 0 0) drop-shadow(#FFFfff 0 -1px0);color: transparent; letter-spacing: 2px; background: linear-gradient(50deg, #000080, #ff0000, #000000, #00f000) 100% 100% / 200% 200%; background-clip: text; -webkit-background-clip: text; }
       //#plane1{position: absolute;left: 60px;top: 0;width: 100px;offset-distance: 0;offset-path: path("M0 20 Q300 80, 700 350 T1320 100");animation: move 8s linear infinite;}
      // #plane {position: absolute;left: 60px;top: 0;width: 100px;offset-distance: 0;offset-path: path("M0 50 Q400 160, 800 450 T1320 100");animation: move 8s linear infinite;}
      #dt{ position: absolute; width: 451px; height: 249px; top: 300px; left:600px; }

      @keyframes bgMove1 { from { background-position: 0 0; } to { background-position: -100% 0; } }
      @keyframes bgMove2 { from { background-position: 0 0; } to { background-position: -100% 0; } }
      @keyframes move { to { offset-distance: 100%;} }

</style>
<div id="papa">

         <img id="dt" src="http://tuku.link/imgs/2022/03/e22cb4cb173e2317.gif" alt="" />
          <img id="plane1" src=" " alt="" />
          <img id="plane" src=" " alt="" />
      <div id="lrc">《西楼儿女-海来阿木》</div>
      <div id="mplayer">
                <div id="btnwrap"><span id="btnplay"></span><span id="btnpause"></span></div>
                <div id="prog">00:00 | 00:00</div>
      </div>
</div>

<script>
let lrcAr = [
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
       
];
let mKey = 0, mSeek = false, mFlag = true;
let aud = new Audio();

aud.src = 'https://www.qqmc.com/up/kwlink.php?id=246113640&.mp3';
aud.autoplay = true;
aud.loop = true;

btnwrap.onclick = () => aud.paused ? aud.play() : aud.pause();
prog.onclick = (e) => aud.currentTime = aud.duration * e.offsetX / prog.offsetWidth;
aud.addEventListener('pause', () => mState());
aud.addEventListener('play', () => mState());
aud.addEventListener('seeked', () => calcKey());

aud.addEventListener('timeupdate', () => {
      prog.style.background= 'linear-gradient(90deg, green, red ' + aud.currentTime / aud.duration * 100 + '%, snow 0)';
      prog.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);
      for(j=0; j<lrcAr.length; j++) {
                if(aud.currentTime >= lrcAr) {
                        if(mKey === j) showLrc(lrcAr);
                        else continue;
                }
      }
});

let mState = () => aud.paused ? (btnplay.style.display = 'block', btnpause.style.display = 'none', lrc.style.animationPlayState = 'paused') : (btnplay.style.display = 'none', btnpause.style.display = 'block', lrc.style.animationPlayState = 'running');

let showLrc = (time) => {
      lrc.style.animation = (mFlag ? 'bgMove1 ' : 'bgMove2 ') + time + 's linear forwards';
      lrc.innerHTML = lrcAr;
      mKey += 1;
      mFlag = !mFlag;
}

let calcKey = () => {
      for(j = 0; j < lrcAr.length; j ++) {
                if(aud.currentTime <= lrcAr) {
                        mKey = j - 1;
                        break;
                }
      }
      if(mKey <0) mKey = 0;
      let mtime = lrcAr - (aud.currentTime - lrcAr);
      showLrc(mtime);
}

let toMin = (val)=> {
      if (!val) return '00:00';
      val = Math.floor(val);
      let min = parseInt(val / 60), sec = parseFloat(val % 60);
      if(min < 10) min = '0' + min;
      if(sec < 10) sec = '0' + sec;
      return min + ':' + sec;
}
</script>

马黑黑 发表于 2022-10-25 23:34

欣赏好作品

醉美水芙蓉 发表于 2022-10-26 06:37

马黑黑 发表于 2022-10-25 23:34
欣赏好作品

欢迎黑黑老师光临指导!

闲言不语 发表于 2022-10-26 09:10

这女孩是台湾的吧,现在在南韩混饭吃。应该是她,长的很漂亮!{:4_199:}

相约爱晚亭 发表于 2022-10-26 09:56

欣赏音画佳作!

醉美水芙蓉 发表于 2022-10-26 11:44

闲言不语 发表于 2022-10-26 09:10
这女孩是台湾的吧,现在在南韩混饭吃。应该是她,长的很漂亮!

不语老师认识呀,我还不知道呢!

醉美水芙蓉 发表于 2022-10-26 11:44

相约爱晚亭 发表于 2022-10-26 09:56
欣赏音画佳作!

谢谢老师欣赏支持!

马黑黑 发表于 2022-10-26 12:46

闲言不语 发表于 2022-10-26 09:10
这女孩是台湾的吧,现在在南韩混饭吃。应该是她,长的很漂亮!

这你也认识,厉害厉害

东篱闲人 发表于 2022-10-26 12:48

马黑黑 发表于 2022-10-26 12:46
这你也认识,厉害厉害

周子瑜。

马黑黑 发表于 2022-10-26 12:48

东篱闲人 发表于 2022-10-26 12:48
周子瑜。

没入过宫吧

东篱闲人 发表于 2022-10-26 12:53

马黑黑 发表于 2022-10-26 12:48
没入过宫吧

不可说。。。。。{:4_170:}

红影 发表于 2022-10-26 14:34

小蝴蝶真漂亮,欣赏水芙蓉好制作{:4_187:}

醉美水芙蓉 发表于 2022-10-26 17:29

红影 发表于 2022-10-26 14:34
小蝴蝶真漂亮,欣赏水芙蓉好制作

谢谢红影美女光临!

小辣椒 发表于 2022-10-26 18:00

红影 发表于 2022-10-26 14:34
小蝴蝶真漂亮,欣赏水芙蓉好制作

小蝴蝶我看见是个框,换了模式看见了,播放器没有了,看了源码是http,亲爱的你什么模式可以统统看见这些效果,我换了模式就看不见播放器了{:4_203:}

小辣椒 发表于 2022-10-26 18:01

欣赏水芙蓉的精彩制作{:4_199:}

闲言不语 发表于 2022-10-26 19:50

醉美水芙蓉 发表于 2022-10-26 11:44
不语老师认识呀,我还不知道呢!

周子瑜(1999年6月14日),是一名台湾歌手
2015年,子瑜在韩国节目中,曾表示自己来自台湾,并举…旗。艺人黄安在微博上批评子瑜举…旗的行为,称她为台独份子,要求她公开声明自己是中国人。后续引起中国大陆网民对她的批判,而使JYP娱乐在中国大陆的演出受到影响。

http://www.yinhuabbs.cn/data/attachment/forum/202210/26/195023y19fkngfk8bgnk7g.jpg

红影 发表于 2022-10-26 19:54

小辣椒 发表于 2022-10-26 18:00
小蝴蝶我看见是个框,换了模式看见了,播放器没有了,看了源码是http,亲爱的你什么模式可以统统看见这些 ...

就极速啊,我没换模式。

红影 发表于 2022-10-26 19:55

醉美水芙蓉 发表于 2022-10-26 17:29
谢谢红影美女光临!

客气了,问好水芙蓉美女{:4_187:}

闲言不语 发表于 2022-10-26 19:56

马黑黑 发表于 2022-10-26 12:46
这你也认识,厉害厉害

因为2015年的政治事件,遭大陆网友声讨过,俺目睹了事件过程

马黑黑 发表于 2022-10-26 20:31

闲言不语 发表于 2022-10-26 19:56
因为2015年的政治事件,遭大陆网友声讨过,俺目睹了事件过程

原来如此
页: [1] 2
查看完整版本: 西楼儿女