心沐春风迎花开
本帖最后由 霜染枫丹 于 2026-3-27 20:27 编辑 <br /><br /><div style="position: relative; max-width: 500px; margin: 0 auto; border-radius: 8px; overflow: hidden;"><img src="http://cccimg.com/view.php/92536d2091bdc6943cad2b91a9112542.jpg" style="width: 100%; height: auto; display: block;" alt="背景图片">
<div style="position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; color: #FFFFFF; text-shadow: 0 2px 4px rgba(0,0,0,0.0);">
<h3 style="margin-bottom: 60px; font-size: 24px;">
<div style="color: #FF0000; text-align: center;">
</div>
</h3>
<p style="font-size: 16px;"></p>
<div style="color: #006400; text-align: center;">
<p></p>
<p class="text-gray-500 text-xs mt-2"></p>
<span style="font-weight: bold; color: #000000;">心沐春风迎花开</span>
</h3>
<div style="text-align: center; color: #000000; line-height: 1.2;">
<br>
霜染枫丹<br>
<br>
春色入怀 春风扑面来<br>
岁月沉淀的从容<br>
都化作眼底的 春暖花开<br>
<br>
心花盛开 不惧鬓边白<br>
走过风雨70余载<br>
终懂简单豁达最自在<br>
<br>
融入风中 轻装向前迈<br>
镜收春花秋月 皆多彩<br>
乐伴欢喜 无畏将来<br>
<br>
桑榆路上 光景更豪迈<br>
夕阳也能映山海<br>
心沐春风 处处皆花开<br>
<br><br>
</div>
</div>
祝古稀之年的朋友健康长寿。 心沐春风,则处处皆花开。
非常好的心态,欣赏枫丹好诗{:4_187:} 红影 发表于 2026-3-27 15:33
心沐春风,则处处皆花开。
非常好的心态,欣赏枫丹好诗
谢红影的鼓励!能在这里想说就说,特别酣畅!{:4_204:}{:4_190:}
梦油 发表于 2026-3-27 10:59
祝古稀之年的朋友健康长寿。
梦老晚上好~~
咱们一起努力,敢于回望,不惧将来!提着油桶优哉游哉多惬意!{:4_204:}{:4_190:}
霜染枫丹 发表于 2026-3-27 20:31
梦老晚上好~~
咱们一起努力,敢于回望,不惧将来!提着油桶优哉游哉多惬意!
是的,我们一起享受晚年的快乐生活。 霜染枫丹 发表于 2026-3-27 20:29
谢红影的鼓励!能在这里想说就说,特别酣畅!
看到枫丹的话,我比你还开心呢,论坛就是个玩的地方,当然是想说就说啊,枫丹能这样,说明心胸很开朗{:4_187:} 本帖最后由 霜染枫丹 于 2026-3-31 12:29 编辑 <br /><br />
<style>
@import 'https://638183.freep.cn/638183/web/tz/tz.v4.css';
.pa {
--offsetX: 80px;
--bg: url('https://ff.xiaoqiaodali.top:5401/i/2026/03/30/69ca90ad3368c.gif') no-repeat center/cover;
--ma-size: 12%;
width: 1500px;
height: 844px;
position: relative;
overflow: hidden;
}
.pa *, .pa *::before, .pa *::after {
content: none !important;
}
/* 【修复全屏问题】改用 bottom 定位,永远贴在底部 */
#custom-lrc-container {
position: absolute;
bottom: 15px; /* 关键:距离底部 50px,全屏不变 */
left: 0;
width: 100%;
text-align: center;
z-index: 9999;
pointer-events: none;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
}
/* 每一句歌词的样式 */
.lrc-line {
position: absolute;
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
color: #fefefe;
font-size: 28px;
font-family: "隶书", "LiSu", serif;
font-weight: normal;
text-shadow: 0 0 10px rgba(0,0,0,0.8);
opacity: 0;
transition: opacity 0.5s ease, transform 0.5s ease;
margin: 0;
top: 0;
}
.lrc-line.active {
opacity: 1;
transform: translateX(-50%) scale(1.1);
z-index: 10;
}
</style>
<div class="pa">
<div id="custom-lrc-container"></div>
</div>
<script type="module">
import TZ from 'https://638183.freep.cn/638183/web/tz/tz.v4.js';
const tz = TZ.TZ('pa');
tz.add('audio', '', '', { src: 'http://cccimg.com/view.php/f83fc4874be4ad557bd79173de922b86.mp3' });
tz.add('video', '', 'pd-vid', {src: 'http://cccimg.com/view.php/30d85f08f6e84acaa27e7201a2f69eba.mp4'}).style('opacity: 0.2;');
tz.add('img', '', 'ma', { src: 'https://ff.xiaoqiaodali.top:5401/i/2026/03/30/69ca96dae054f.png' }).style('bottom: 60px;').playmp3();
tz.bgprog().style('bottom: 20px; color: #fefefe; width: 240px;');
tz.fs().style('left: 20px; top: 20px;');
const lrcString = `
云想衣裳花想容
春风拂槛露华浓
若非群玉山头见
会向瑶台月下逢
一枝秾艳露凝香
云雨巫山枉断肠
借问汉宫谁得似
可怜飞燕倚新妆
名花倾国两相欢
长得君王带笑看
解释春风无限恨
沉香亭北倚阑干
解释春风无限恨
沉香亭北倚阑干
云想衣裳花想容
春风拂槛露华浓
若非群玉山头见
会向瑶台月下逢
一枝秾艳露凝香
云雨巫山枉断肠
借问汉宫谁得似
可怜飞燕倚新妆
名花倾国两相欢
长得君王带笑看
解释春风无限恨
沉香亭北倚阑干
解释春风无限恨
沉香亭北倚阑干
解释春风无限恨
沉香亭北倚阑干`;
function initCustomLrc(lrcText) {
const container = document.getElementById('custom-lrc-container');
const lines = [];
const lineRegex = /\[(\d{2}):(\d{2})\.(\d{2,3})\](.*)/;
const rawLines = lrcText.split('\n');
rawLines.forEach(text => {
const match = text.match(lineRegex);
if (match) {
const minutes = parseInt(match);
const seconds = parseInt(match);
const milliseconds = parseInt(match);
const time = minutes * 60 + seconds + milliseconds / 1000;
let content = match.trim();
// 【关键修复】过滤乱码 等所有 HTML 实体
content = content.replace(/&#\d+;/g, '').trim();
if (content) {
lines.push({ time, content, element: null });
}
}
});
lines.forEach((line) => {
const div = document.createElement('div');
div.className = 'lrc-line';
div.textContent = line.content;
container.appendChild(div);
line.element = div;
});
const audio = document.querySelector('.pa audio');
if (audio) {
audio.addEventListener('timeupdate', () => {
const currentTime = audio.currentTime;
let activeIndex = -1;
for (let i = 0; i < lines.length; i++) {
if (currentTime >= lines.time) {
activeIndex = i;
} else {
break;
}
}
lines.forEach((line, idx) => {
if (idx === activeIndex) {
line.element.classList.add('active');
} else {
line.element.classList.remove('active');
}
});
});
audio.addEventListener('ended', () => {
lines.forEach(line => line.element.classList.remove('active'));
});
}
}
setTimeout(() => {
const audioEl = document.querySelector('.pa audio');
if(audioEl) {
initCustomLrc(lrcString);
} else {
const observer = new MutationObserver(() => {
const aud = document.querySelector('.pa audio');
if(aud) {
initCustomLrc(lrcString);
observer.disconnect();
}
});
observer.observe(document.querySelector('.pa'), { childList: true, subtree: true });
}
}, 500);
</script>
页:
[1]