加林森 发表于 2021-10-15 21:24
习惯了习惯了
{:4_204:}
本帖最后由 加林森 于 2022-3-31 00:00 编辑 <br /><br />红影 发表于 2021-10-15 22:03
你该休息了吧!去休息吧!祝晚安、好梦!{:4_171:}
<style type="text/css">
/* 帖子容器 */
#tzDiv {
position: relative;
left: -214px;
width: 1024px;
height: 600px;
top: 80px;
background: #eee url('https://pic.imgdb.cn/item/6242d37a27f86abb2a22eada.jpg') no-repeat center/cover;
opacity: 0.8;
}
/* 音乐控制按钮 */
.picBtn {
position: absolute;
width: 100px;
height: 100px;
left: 180px;
bottom: 60px;
border: none;
outline: none;
border-radius: 8px;
background: transparent url('https://pic.imgdb.cn/item/622a00ea5baa1a80ab412ada.gif') no-repeat;
cursor: pointer;
}
/* 文本时钟 */
#textClock {
position: absolute;
top: 180px;
right: 200px;
width: 300px;
height: 30px;
font: 20px / 30px Sans-Serif;
text-align: center;
}
/* 走马灯父框 */
.txtFly {
position: absolute;
width: 260px;
height: 30px;
right: 100px;
bottom: 100px;
overflow: hidden;
}
/* 走马灯文本 */
.txtFly div {
position: absolute;
left: 260px;
font: normal 18px /20px Sans-Serif;
word-break: keep-all;
white-space:nowrap;
}
/* 变色文本 */
.txtBg {
position: absolute;
top: 80px;
right: 100px;
font-size: 4rem;
color: transparent;
width: 500px;
height: 100px;
line-height: 100px;
text-align: center;
background-image: linear-gradient(90deg, green, olive, transparent, tomato, green);
background-size: 500px 100px;
background-position: 500px 0;
border: 1px solid;
background-clip: text;
-webkit-background-clip: text;
animation: chgc 2s linear infinite;
}
/* 文本变色动画 */
@keyframes chgc {
from { background-position: -500px 0; }
to { background-position: 0 0; }
}
</style>
<div id="tzDiv">
<div class="txtBg">醉红颜(DJ散人版)</div>
<div id="textClock"></div>
<div class="txtFly">
<div id="ziFly">醉红颜(DJ散人版) - 冷漠 爱亦难别亦难忘记太难
回忆总在夜里放肆纠缠
在这深夜里辗转难眠
一切仿佛就在昨天
爱难断愁难断恨了不断
前尘往事如云烟弥漫
深深埋下那段未尽的情缘
一杯祝酒醉红颜。。。。。。</div>
</div>
<button id="picBtn" class="picBtn"></button>
<audio id="music" src="http://www.kumeiwp.com/sub/filestores/2022/03/29/1a18a228d799015d6256e8be452a56dc.mp3" loop="loop" autoplay="autoplay" ></audio>
</div>
<script language="javascript">
fly(); //运行走马灯
showTime(); //显示时间
setInterval(showTime, 1000); //运行时钟
//文本时钟函数
function showTime(){
var now = new Date();
var year = now.getFullYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var day = now.getDay();
var hour = now.getHours();
if(hour < 10) hour = "0" + hour;
var minute = now.getMinutes();
if(minute < 10) minute = "0" + minute;
var second = now.getSeconds();
if(second < 10) second = "0" + second;
document.getElementById("textClock").innerHTML = year + "年" + month + "月" + date + "日 星期" + toHz(day) + "" + hour + ":" + minute + ":" + second;
}
function toHz(num) { var hz = "日一二三四五六九"; return(hz.charAt(num)); }
//音乐控制代码
var mu = document.getElementById('music');
var btn = document.getElementById('picBtn');
btn.onclick = function(){
mu.paused ? (mu.play(), btn.style.background="url('https://pic.imgdb.cn/item/622a00ea5baa1a80ab412ada.gif')") : (mu.pause(), btn.style.background="url('https://pic.imgdb.cn/item/622a01115baa1a80ab414665.png')");
}
mu.addEventListener("ended", function(){
btn.style.background="url('https://pic.imgdb.cn/item/622a01115baa1a80ab414665.png')";
});
//创建走马灯
function fly() {
var ziFly = document.getElementById('ziFly');
var width = ziFly.clientWidth;
var style = document.createElement('style');
style.type = 'text/css';
var flyStr = '@keyframes fly {to { left: -' + width + 'px; } }';
style.innerHTML = flyStr;
ziFly.appendChild(style);
ziFly.style.animation = 'fly 40s linear infinite';
}
</script>
加林森 发表于 2021-10-15 22:30
你该休息了吧!去休息吧!祝晚安、好梦!
谢谢队长,队长周六快乐{:4_204:}
红影 发表于 2021-10-16 11:50
谢谢队长,队长周六快乐
晚上好,红影!{:4_204:}
加林森 发表于 2021-10-16 20:14
晚上好,红影!
队长好{:4_204:}
红影 发表于 2021-10-16 21:07
队长好
听音乐
加林森 发表于 2021-10-16 21:08
听音乐
嗯嗯。
红影 发表于 2021-10-17 10:15
嗯嗯。
我等会再去做2个上来给大家听听。
加林森 发表于 2021-10-17 18:52
我等会再去做2个上来给大家听听。
队长辛苦{:4_204:}
很好听的歌
队长灌水灌寂寞了吗 {:5_106:}
来看你 发表于 2021-10-17 22:23
很好听的歌
队长灌水灌寂寞了吗
怎么会啊!大家开心啊!
红影 发表于 2021-10-17 22:21
队长辛苦
现在没有时间了
冷漠云菲菲
马黑黑 发表于 2021-10-18 07:02
冷漠云菲菲
是啊
加林森 发表于 2021-10-18 13:20
是啊
不熟悉
加林森 发表于 2021-10-17 23:45
现在没有时间了
已经很晚了{:4_204:}
红影 发表于 2021-10-18 15:13
已经很晚了
是的
马黑黑 发表于 2021-10-18 13:34
不熟悉
多听听就熟悉了
加林森 发表于 2021-10-18 17:34
多听听就熟悉了
也许吧,俺就是不太接受新的歌手
马黑黑 发表于 2021-10-18 19:18
也许吧,俺就是不太接受新的歌手
你个老家伙,听听多舒服啊。