走在相思路口
<!DOCTYPE html><html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="never">
<title>走在相思路口(合唱版)-影子</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Liu+Jian+Mao+Cao&family=Long+Cang&family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&family=ZCOOL+QingKe+HuangYou&display=swap");
#papa { position: relative; margin: 30px 0; width: 1280px; height: 750px; left: calc(50% - 81px); transform: translateX(-50%);--bg1:#882200 url("https://s3.bmp.ovh/2026/07/09/qq5zNH6z.jpg") no-repeat center/cover;--bg2:#882200 url("https://free.picui.cn/free/6377/2026/09/04/6a9a547b5b670.jpg") no-repeat center/cover; background:var(--bg1); overflow: hidden; box-shadow: 4px 4px 10px #000; z-index: 1;}
#controls { position:absolute; bottom:0%; left:20%; right:20%; height:52px; background:linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%); z-index:99; display:flex; align-items:center; padding:0 16px; gap:15px; transition:opacity 0.35s;}
#time { color:#fff; font-family:Consolas,monospace; font-size:18px; flex-shrink:0; white-space:nowrap; text-shadow:0 0 4px #000;}
#progWrap { flex:1; height:5px; background:rgba(255,255,255,0.25); border-radius:3px; position:relative; cursor:pointer;}
#progWrap.dragging { cursor:grabbing; }
#progBar { height:100%; width:0%; background:linear-gradient(90deg,#ff3838,#ffa502,#fffa65,#7bed9f,#70a1ff,#a29bfe); border-radius:3px; pointer-events:none;}
#progDot { position:absolute; top:50%; left:0%; transform:translate(-50%,-50%); width:12px; height:12px; background:#fff; border-radius:50%; box-shadow:0 0 6px rgba(255,255,255,0.8); pointer-events:none;}
.btnPlaySm{ width:40px; height:40px; flex-shrink:0; background:url('https://pic.imgdb.cn/item/675813e7d0e0a243d4e14a18.png') no-repeat center/cover; cursor:pointer; border:none;outline: none; box-shadow: 0 0 8px rgba(255,255,255,0.25); transition: transform 0.15s ease, box-shadow 0.15s ease;}
.btnFull{ width:25px; height:25px; flex-shrink:0; background:url('https://pic1.imgdb.cn/item/6774df83d0e0a243d4ed4fd7.png') no-repeat center/cover; cursor:pointer; border:none;outline: none; box-shadow: 0 0 8px rgba(255,255,255,0.25); transition: transform 0.15s ease, box-shadow 0.15s ease;}
.btnMute{ width:30px; height:30px; flex-shrink:0; background:url('https://pic1.imgdb.cn/item/6a03cf00c05e72d91720910b.gif') no-repeat center/cover; cursor:pointer; border:none;outline: none; box-shadow: 0 0 8px rgba(255,255,255,0.25); transition: transform 0.15s ease, box-shadow 0.15s ease;}
.btnPlaySm:hover,.btnFull:hover,.btnMute:hover { transform: scale(0.9); box-shadow: 0 0 12px rgba(255,255,255,0.45);}
.btnPlaySm:active,.btnFull:active,.btnMute:active { transform: translateY(1px); box-shadow: 0 0 3px rgba(255,255,255,0.1);}
.vid {position: absolute;width: 100%;height: 100%;object-fit: cover;mix-blend-mode: screen;mask: linear-gradient(to right top, red 80% ,transparent 90%);-webkit-mask: linear-gradient(to right top, red 80% ,transparent 90%);opacity: .98;pointer-events: none; z-index:2;}
#wrapper {position: absolute;padding: 10px;font-weight:300;font-size:3.5em;font-family:"ZCOOL KuaiLe","ZCOOL QingKe HuangYou","Liu Jian Mao Cao","STKaiti","SimHei", "KaiTi", cursive, serif;filter: drop-shadow(#fff 1px 0 0) drop-shadow(#fff 0 1px 0) drop-shadow(#fff -1px 0 0) drop-shadow(#fff 0 -1px 0); width: 50%;height:90px;top: 80%;left: 50%;transform: translateX(-50%);z-index: 12;text-align: center;white-space: nowrap;}
#papa:fullscreen #wrapper{top: 88%;}
.char {display: inline-block;padding: 6px 8px;opacity: 0;transform: translate(var(--x), var(--y)) rotate(-360deg) ;animation: fadeIn 1.5s var(--delay) forwards,flash 0.5s linear infinite;}
@keyframes fadeIn {100% {transform: translate(0, 0)rotate(0deg);opacity: 1;}}
@keyframes flash {100% {filter: hue-rotate(360deg)brightness(100%)contrast(220%);}}
.stop .char{animation-play-state: paused;}
</style>
</head>
<body>
<div id="papa">
<div id="controls">
<button id="btnPlaySm" class="btnPlaySm" title="暂停/空格键"></button>
<span id="time">00:00 / 00:00</span>
<div id="progWrap" title="调节进度">
<div id="progBar"></div>
<div id="progDot"></div>
</div>
<button id="btnMute" class="btnMute" title="静音"> </button>
<button id="btnFull" class="btnFull" title="全屏"></button>
</div>
<div id="wrapper"></div>
<video class="vid" src="https://img2.tukuppt.com/video_show/7165162/00/18/05/5ed870ed14fc5_10s_big.mp4" autoplay loop muted></video>
<video class="vid" src="https://img2.tukuppt.com/video_show/15653652/01/59/07/63806a6eb7241.mp4" autoplay loop muted></video>
</div>
<script>
const papa = document.getElementById('papa');
const controls = document.getElementById('controls');
const btnPlaySm= document.getElementById('btnPlaySm');
const btnFull = document.getElementById('btnFull');
const btnMute = document.getElementById('btnMute');
const progWrap = document.getElementById('progWrap');
const progBar = document.getElementById('progBar');
const progDot = document.getElementById('progDot');
const timeEl = document.getElementById('time');
const wrapper = document.getElementById('wrapper');
const vids = document.querySelectorAll('video');
const aud = new Audio();
aud.src = 'https://music.163.com/song/media/outer/url?id=2736317825.mp3';
aud.loop = true;
aud.preload = 'auto';
aud.muted = true;
const gc = `
走在相思路口(合唱版)-影子
词曲:江山
原唱:江山
编曲:王亚东
混音:原始部落
合唱:原始部落合唱团
录音:鲁晓锋
修正:鲁晓锋
和声:小佑
吉他:LeoD
OP:星汉马文化
岁月是陈酿的酒
越喝它越上头
回味悠长情怀依旧
年华它似水流
转眼又一个深秋
枫叶飘零多少个哀与愁
青丝它白了头
茶凉它人已走
暗香残留覆水难收
当初的那份温柔
化作相思泪儿流
烈酒千杯难解心中的忧
走在相思路口
往事又涌上心头
痴痴的等默默的守
从此相聚只在梦里头
走在相思路口
不见那时的娇羞
春水东流雪花满头
这一壶老酒醉了太久
青丝它白了头
茶凉它人已走
暗香残留覆水难收
当初的那份温柔
化作相思泪儿流
烈酒千杯难解心中的忧
走在相思路口
往事又涌上心头
痴痴的等默默的守
从此相聚只在梦里头
走在相思路口
不见那时的娇羞
春水东流雪花满头
这一壶老酒醉了太久
春水东流雪花满头
这一壶老酒醉了太久
`;
const gcAr = lrc2HC(gc);
let curkey = 0, isSeeking = false;
let isAudioPaused = false;
aud.ontimeupdate = () => {
if(isAudioPaused) return;
if(curkey > gcAr.length - 1) return;
if(aud.currentTime >= gcAr) {
const gap = (gcAr?. ?? 0) - gcAr;
showLrc(gcAr, wrapper, gap);
}
};
aud.onended = () => {
curkey = 0;
aud.play();
}
aud.onseeked = () => calcKey();
function lrc2HC(text) {
let lrcAr = [];
let ar = text.trim().split('\n');
ar.sort();
let reg = /\[(\d+)[.:](\d+)[.:](\d+)\](.*)/;
ar.forEach(item => {
if(reg.test(item)) {
let result = item.match(reg);
let tmsg = parseInt(result) * 60 + parseInt(result) + parseInt(result) / 1000;
lrcAr.push(.trim()]);
}
});
return lrcAr.length ? lrcAr : [];
};
function calcKey() {
for (let j = 0; j < gcAr.length; j++) {
if (aud.currentTime <= gcAr) {
curkey = j - 1;
break;
}
}
if (curkey < 0) curkey = 0;
if (curkey > gcAr.length - 1) curkey = gcAr.length - 1;
let time = (gcAr?. ?? 0) - gcAr;
isSeeking = false;
showLrc(gcAr, wrapper, time);
}
function showLrc(str, targetElm, time) {
if(isSeeking) return;
targetElm.innerHTML = '';
const chars = str.split('').map(c => c === ' ' ? ' ' : c);
const frg = document.createDocumentFragment();
chars.forEach((char, idx) => {
const span = document.createElement('span');
span.innerHTML = char;
span.classList.add('char');
const x = Math.random() * (Math.random() > 0.5 ? 300 : -300);
const y = Math.random() * (Math.random() > 0.5 ? 300 : -300);
span.style.cssText += `
color: #${Math.random().toString(16).substring(2,8)};
--x: ${x}px;
--y: ${y}px;
--delay: ${Math.random() * 0.5}s;
`;
frg.appendChild(span);
});
targetElm.appendChild(frg);
curkey ++;
setTimeout(() =>isSeeking = false, time);
}
const formatTime = (time) => {
if (isNaN(time)) return "00:00";
const min = parseInt(time / 60);
const sec = parseInt(time % 60);
return ((min < 10 ? '0' + min : min) + ":" + (sec < 10 ? '0' + sec : sec));
};
function onPlay(){
btnPlaySm.style.background = 'url(https://pic.imgdb.cn/item/675813f6d0e0a243d4e14a48.png) no-repeat center/cover';
papa.style.background = 'var(--bg1)';
btnPlaySm.title="暂停/空格键";
papa.classList.remove('stop');
aud.muted = false; vids.forEach(vid=>vid.play());
isAudioPaused = false;
}
function onPause() {
btnPlaySm.style.background = 'url(https://pic.imgdb.cn/item/675813e7d0e0a243d4e14a18.png) no-repeat center/cover';
papa.style.background = 'var(--bg2)';
btnPlaySm.title="播放/空格键";
papa.classList.add('stop');
aud.muted = true; vids.forEach(vid=>vid.pause());
isAudioPaused = true;
}
function onEnded() {
progBar.style.width = '0%';
progDot.style.left = '0%';
}
aud.addEventListener('play', onPlay);
aud.addEventListener('pause', onPause);
aud.addEventListener('ended', onEnded);
btnPlaySm.addEventListener('click', () => {
aud.paused ? aud.play() : aud.pause();
});
let dragging = false;
let pendingPercent = 0;
function seekByEvent(e) {
let rect = progWrap.getBoundingClientRect();
let x = (e.touches ? e.touches.clientX : e.clientX) - rect.left;
let pct = Math.max(0, Math.min(1, x / rect.width));
pendingPercent = pct;
progBar.style.width = (pct * 100) + '%';
progDot.style.left= (pct * 100) + '%';
}
function applySeek() {
if (aud.duration) {
aud.currentTime = pendingPercent * aud.duration;
}
}
progWrap.addEventListener('mousedown', (e) => {
e.stopPropagation(); dragging = true;progWrap.classList.add('dragging'); seekByEvent(e);
});
document.addEventListener('mousemove', (e) => { if (dragging) seekByEvent(e); });
document.addEventListener('mouseup', () => {
if (dragging) { dragging = false; progWrap.classList.remove('dragging'); applySeek(); }
});
progWrap.addEventListener('touchstart', (e) => { dragging = true; seekByEvent(e); }, { passive: true });
document.addEventListener('touchmove', (e) => { if (dragging) seekByEvent(e); }, { passive: true });
document.addEventListener('touchend', () => { dragging = false; applySeek(); });
btnFull.addEventListener('click', () => {
if (!document.fullscreenElement) {papa.requestFullscreen().catch(() => {});}
else {document.exitFullscreen();}
});
document.addEventListener('fullscreenchange', () => {
if (document.fullscreenElement) {
btnFull.style.background = 'url(https://pic1.imgdb.cn/item/6774df8bd0e0a243d4ed4fd9.png) no-repeat center/cover';
btnFull.title = '退出';
} else {
btnFull.style.background ='url(https://pic1.imgdb.cn/item/6774df83d0e0a243d4ed4fd7.png) no-repeat center/cover';
btnFull.title = '全屏';
}
});
btnMute.addEventListener('click', () => {
if(isAudioPaused) return;
aud.muted = !aud.muted;
});
function updateMuteUI() {
if(aud.muted){
btnMute.style.background = 'url(https://pic1.imgdb.cn/item/68e9c0c2c5157e1a886337ae.png) no-repeat center/cover';
btnMute.title = isAudioPaused ? '已暂停' : '取消';
}else{
btnMute.style.background = 'url(https://pic1.imgdb.cn/item/6a03cf00c05e72d91720910b.gif) no-repeat center/cover';
btnMute.title = '静音';
}
}
aud.addEventListener('volumechange', updateMuteUI);
aud.addEventListener('timeupdate', () => {
if (dragging) return;
let pct = aud.duration > 0 ? aud.currentTime / aud.duration * 100 : 0;
progBar.style.width = pct + '%';
progDot.style.left= pct + '%';
timeEl.textContent= formatTime(aud.currentTime) + ' / ' + formatTime(aud.duration);
});
(function() {
aud.play();aud.muted = false;
})();
['contextmenu', 'dragstart', 'selectstart'].forEach(type =>
papa.addEventListener(type, e => e.preventDefault())
);
document.addEventListener('visibilitychange', () => {
if (document.hidden) {
if (!aud.paused) {
aud.pause();
}
} else {
if (aud.paused) {
aud.play().catch(()=>{});
}
}
});
</script>
</body>
</html>
这图好看!音画合一完美! 欣赏这样简单又复合主题的音画!
页:
[1]