注册时间2015-8-30
在线时间 小时
- 最后登录
- 1970-1-1
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2022-4-29 17:37
|
显示全部楼层
- <style type="text/css">.itemm {z-index: 1;width: 710px;
- height: 420px;position: relative;
- box-shadow: 0px 0px 0px 2px #CCCCCC, 0px 0px 0px 4px #222222;MARGIN-LEFT:120px;margin-top:38px;
- ox-sizing: border-box;background: url(http://chuangshicdn.data.mvbox.cn/album/22/03/14/22031417263445440463.gif)0 0/50% 50%,linear-gradient(30deg, #0f9b0f, #000000, #eb0000,
- #cc5333, #23074d);
- overflow:hidden;border-radius:0%;
- transform-origin: center;}
- </style >
- <div style="z-index: 5;width: 940px; height:490px;position: relative; margin-top:30px; margin-left:-80px; overflow: hidden;
- background: url(http://pan.yinhuabbs.cn/view.php/df1d340970056b10537389b3dd607c2f.png)0 0/100% 100%; text-align: center;">
- <div class="itemm">
- <video autoplay="autoplay" height="420" loop="loop" muted="true" src="http://chuangshicdn.data.mvbox.cn/music/yc/21/09/25/21092509085202141701.mp4"
- style="width:710px;height:420px; filter:contrast(120%);-webkit-mask-image: radial-gradient(black 100% ,transparent 100%);z-index: 15;transform: scale(1, 1)"
- width="710"> </video>
- <audio autoplay="" class="audio" id="MusicPlayer" src="https://www.qqmc.com/up/kwlink.php?id=215618825&.mp3" controls loop style="width: 0%; height: 0%;z-index: 1;"></audio>
- <span class="items" style="color:#ff0000;position:absolute;top:10px;left:20px;width:400px;height:42px;z-index: 100;"><span style="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 -1px 0);"><span style="font-size:30px;">《蚕花姑娘》-石头 </span></span></span>
- <div class="container">
- <div class="btn">
- <div id="bf"onclick="bf();"style="width: 600px; height: 80px;z-index: 300;position: absolute;top:-70px; left:90px;"></div>
- </div>
- <div class="img_border"><img src="http://image.hnol.net/c/2022-01/08/22/202201082235389221-5769293.png" id="aplay"style="width: 100%; height: 100%;position: absolute;top:-90px;
- left:30px;z-index: 10;" ></div>
- <div class="items" >
- <div class="lrc"style="z-index: 200;width: 600px; height: 80px;position: absolute;top:-70px; left:90px;">
- <ul id="ullrc">
- </ul>
- </div></div>
- </div>
- </div></div>
- <style type="text/css">
- .container{width: 1px;
- position: absolute;top:400px; left:-20px;
- }
- .container #MusicPlayer{
- width: 250px;
- display: block;
- margin: 0 auto;
- }
- .container .btn{
- display: block;
- margin: 0;
- }
- .container .lrc{
- width: 600px;
- height: 120px;
- overflow: hidden;filter:drop-shadow(#ffffff 1px 0 0)drop-shadow(#ffffff 0 1px 0)drop-shadow(#ffffff -1px 0 0) drop-shadow(#ffffff 0 -1px 0);
- display: block;
- margin: 0 auto;
- }
- .container .lrc #ullrc{
- width: 100%;
- padding: 0;
- list-style: none;
- transition: 0.3s all ease;
- margin: 0;
- }
- /*歌词普通样式*/
- .container .lrc #ullrc li{
- height: 70px;
- line-height: 70px;
- font-family:悟空大字库;
- font-size: 0px;
- color: #000078;
- font-weight: normal;
- transition: .3s all ease;/*一定要加上不然看着突兀*/
- list-style-type: none;
- text-align: center;
- display: block;
- width: 100%;
- margin: 0 auto;
- }
- /*动态歌词样式*/
- .container .lrc #ullrc li.active{
- font-size: 30px;
- color: #ff0000;
- font-weight: bold;
- }
- /*光碟动画*/
- .container .img_border{display:inline-block;width:80px;height:80px;margin:0px ;position: absolute;top:0px; left:0px;transform: scale(1,1);transform: rotateX(45deg) rotateY(-20deg)
- ; }
- .container .img_border #aplay{border:2px solid #000000;border-radius:50%;}
- .container .z360z{-webkit-animation:rotating 10s linear infinite;}@-webkit-keyframes rotating{0% {transform:rotateZ(-360deg);}}
- </style>
- <style type="text/css">.items { animation: slider 0.26s linear infinite ;}
- @keyframes slider {from {opacity: 1;filter:hue-rotate(360deg)contrast(180%)brightness(200%);}
- 50% {opacity: 1;}to {opacity: 1;filter:hue-rotate(0deg)contrast(140%)brightness(100%);}}
- </style>
- <script >var lrc = `[00:03.73]《蚕花姑娘》-石头
- [00:04.53]素材来自网络
- [00:05.44]作词 Lyries:罗志强
- [00:06.97]作曲 Composer:杨昊东
- [00:08.28]监制 Executive Producer:向益江
- [00:09.88]编曲 Music Arrangement:杨昊东
- [00:11.60]和声 Backing Vocals:北京女童合唱团
- [00:13.64]吉他 Guitar:Derek Yang
- [00:14.84]笛子bamboo flute:朱炜
- [00:16.59]统筹 Associate Producer:周川源
- [00:17.90]录音工程师 Recording Engineer:Derek Yang
- [00:19.15]录音室 Recording Studio:莫干山INT音乐工作室
- [00:20.35]混音工程师 Mixing Engineer:Derek Yang、AlexM
- [00:21.41]制作人 亚伦
- [00:22.61]出品:亚伦影音
- [00:23.75]制作/宣传/发行:亚伦影音工作室
- [00:24.88]【欢迎使用克隆代码】
- [00:26.40]
- [00:27.56]
- [00:28.03]烟雨空濛状元桥
- [00:30.94]清明落雨桑树如常
- [00:34.20]千年古镇落落大方
- [00:37.42]挽袖织蚕屋檐下的姑娘
- [00:43.85]苕溪河畔鼓声响
- [00:46.90]身骑白马蚕花抛洒
- [00:50.07]拂袖起舞浅吟低唱
- [00:53.15]岸边琴声勾勒着你的模样
- [01:00.32]
- [01:01.93]你发戴蚕花笑靥浅浅
- [01:08.20]化身为福 留守人间
- [01:14.51]如风如雨 灌溉桑田
- [01:20.91]画一卷丹青阅读千年
- [01:28.53]
- [01:43.58]烟雨空濛状元桥
- [01:46.79]清明落雨桑树如常
- [01:50.04]千年古镇落落大方
- [01:53.11]挽袖织蚕屋檐下的姑娘
- [01:59.60]苕溪河畔鼓声响
- [02:02.60]身骑白马蚕花抛洒
- [02:05.86]拂袖起舞浅吟低唱
- [02:09.03]岸边琴声勾勒着你的模样
- [02:16.24]
- [02:17.75]你发戴蚕花笑靥浅浅
- [02:23.63]化身为福 留守人间
- [02:30.35]如风如雨 灌溉桑田
- [02:36.69]画一卷丹青阅读千年
- [02:42.66]
- [02:44.54]你发戴蚕花笑靥浅浅
- [02:50.62]化身为福 留守人间
- [02:57.20]你摇曳轻舟泊游故里
- [03:03.43]指尖年轮 孜孜不倦
- [03:09.88]如诗如画 墨染万家
- [03:16.19]这位姑娘,取名蚕花
- [03:24.07]这位姑娘,取名蚕花
- [03:37.12]欢迎欣赏
- [04:37.12]打造完美音画`;
- </script>
- <script type="text/javascript">
- function $(id) {return document.getElementById(id);
- }//这样写以后getid方便
- function getLrcArray() {
- var parts = lrc.split("\n");
- for (let index = 0; index < parts.length; index++) {
- parts[index] = getLrcObj(parts[index]);
- }
- return parts;
- function getLrcObj(content) {
- var twoParts = content.split("]");
- var time = twoParts[0].substr(1);
- var timeParts = time.split(":");
- var seconds = +timeParts[1];
- var min = +timeParts[0];
- seconds = min * 60 + seconds;
- var words = twoParts[1];
- return{
- seconds: seconds,
- words: words,
- };
- }
- }
- var lrcArray = getLrcArray();
- function inputLrc() {
- for (let index = 0; index < lrcArray.length; index++) {
- var li = document.createElement("li");
- li.innerText = lrcArray[index].words;
- $("ullrc").appendChild(li);
- }
- }
- inputLrc();
- function setPosition() {
- var index = getLrcIndex();
- if (index == -1) {
- return;
- }
- var lrc_li_height = 70, lrc_ul_height = 50;
- var top = index * lrc_li_height + lrc_li_height / 2 - lrc_ul_height / 2;
- if (top < 0) {
- top = 0;
- }
- $("ullrc").style.marginTop = -top + "px";
- var activeLi = $("ullrc").querySelector(".active");
- if(activeLi){
- activeLi.classList.remove("active");
- }
- $("ullrc").children[index].classList.add("active");
- }
- var turn = 0;
- function getLrcIndex(){
- var time = $("MusicPlayer").currentTime + turn;
- for (var index = 0; index < lrcArray.length; index++) {
- if (lrcArray[index].seconds > time) {
- return index - 1;
- }
- }
- }
- $("MusicPlayer").ontimeupdate = setPosition;
- function bf() {
- var audio = document.getElementById('MusicPlayer');
- var bf=document.getElementById("bf");
- if (audio !== null) {
- if (audio.paused) {
- audio.play(); //audio.play();// 这个就是播放
- bf.innerText="";
- } else {
- audio.pause(); // 这个就是暂停
- bf.innerText="";
- }
- }
- }
- var my_audio =document.getElementById("MusicPlayer");my_audio.onended = function(){document.getElementById("aplay").className="";};my_audio.onplaying = function()
- {document.getElementById("aplay").className="z360z";};my_audio.onpause = function(){document.getElementById("aplay").className="";};var lyric = parseLyric(songkrc);
- </script>
复制代码 |
|