马黑黑 发表于 2021-12-6 22:20

加林森 发表于 2021-12-6 22:19
是《高山流水》啊

高山流水,曲高和寡

加林森 发表于 2021-12-6 22:24

本帖最后由 加林森 于 2022-1-21 21:26 编辑 <br /><br />马黑黑 发表于 2021-12-6 22:20
高山流水,曲高和寡
嗯嗯,看了吗?

<style type="text/css">
#btn-box { position: relative; background: transparent; width: 32px; height: 32px; }
#btn-box div { position: absolute; left: 0; top: 0; width: 32px; height: 32px; outline: none; border: none; border-radius: 50%; background: #fff; box-shadow: 2px 2px 4px 1px rgba(0,0,0,.8); opacity: .5; cursor: pointer; }
#btn-box div:hover { opacity: .8; box-shadow: 2px 2px 4px 1px rgba(0,0,0,.7); }
#btn-box div:active { opacity: .8; box-shadow: 1px 1px 1px 1px rgba(0,0,0,.9); }
#btn-play::before { content: ""; position: absolute; width: 0; height: 0; left: 13px; top: 8px; border: 8px solid transparent; border-left-color: #000; background: #fff; }
#btn-pause { display: none; }
#btn-pause::before { content: ""; position: absolute; width: 2px; height: 10px; left: 10px; top: 10px;border: 0;border-left: 4px solid #000; border-right: 4px solid #000; background: #fff; }
</style>

<div style="position:relative; text-align:center; left: -240px;">
      <div id="btn-box"style="left:-1800px; top:650px;"><div id="btn-play"></div><div id="btn-pause"></div>
       <div id="btn-box"   <img src="<img src="https://pic.imgdb.cn/item/61eab2b62ab3f51d91e751f6.jpg">" alt="" />
      <audio id="ymusic" src=""//music.163.com/outchain/player?type=2&id=1839548188&auto=1&height=66"></iframe>
</div>

<script language="javascript">
var btn = document.getElementById('btn-box');
var mu = document.getElementById('ymusic');
var playbtn = document.getElementById('btn-play');
var pausebtn = document.getElementById('btn-pause');
mu.autoplay ? (playbtn.style.display="none", pausebtn.style.display="block") : (playbtn.style.display="block", pausebtn.style.display="none");
btn.onclick = function(){ iplay(1); }
mu.addEventListener("ended", function(){ iplay(0); })
function iplay(flag){
      if(flag==1){
                mu.paused ? (mu.play(), playbtn.style.display="none", pausebtn.style.display="block") : (mu.pause(), playbtn.style.display="block", pausebtn.style.display="none");
      }else{
                playbtn.style.display = "block";
                pausebtn.style.display = "none";
      }

</script>

马黑黑 发表于 2021-12-6 22:25

加林森 发表于 2021-12-6 22:24
嗯嗯,看了吗?

还没,忙着

加林森 发表于 2021-12-6 22:34

本帖最后由 加林森 于 2022-2-2 11:39 编辑 <br /><br />马黑黑 发表于 2021-12-6 22:25
还没,忙着
好的好的

<style type="text/css">

.mnBox {
        margin: auto;
        margin-top: 20px;
        position: relative;
        background: #333 url('https://pic.imgdb.cn/item/61f9fcae2ab3f51d91b0fada.jpg') no-repeat center/cover;
        height: 400px;
        width: 720px;
        border: 1px solid;
        box-shadow: 0px 0px 0px 8px tan;
}
.mnBox iframe {
        position: absolute;
        left: -248px;;
        top: calc(100% - 50px);
        clip-path: circle(16px at 271px);
        opacity: 0.8;
}
.rain {
        width: 1px;
        height: 8px;
        top: -5px;
        left: 100px;
        background: #eee;
        position: relative;
        display: block;
        animation: rain 0.5s linear infinite;
}

.rain::before, .rain::after{
        content: "";
        position: absolute;
        left: 10px;
        top: -120px;
        width: 1px;
        height: 10px;
        background: #eee;
}

.rain::after { height: 12px; left: -70px; top: 50px; }

.circle {
        position:absolute;
        width: 3px;
        height: 1px;
        left: 85px;
        top: 90%;
        background:none;
        border: 1px solid #FFF;
        border-radius: 50%;
        animation:circle 2s ease-out infinite;
}

@keyframes circle {
        0% { width:0; height:0; }
        50% { opacity:0.1; width:2%; height:2%; }
        60% { opacity:0.2; width:2%; height:2%; }
        100% { opacity:0; width:2%; height:2%; }
}

@keyframes rain {
        0% { opacity:0.5; }
        100% { opacity:0.5; top:40%;}
}

</style>

<div id="mnBox" class="mnBox">
        <span class="rain"></span>
        <span class="circle"></span>
        <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=298 height=52 src="https://music.163.com/outchain/player?type=2&id=1914211561&auto=1&height=32"></iframe>
</div>


<script language="javascript">
function rain() {
        var str = "";
        for(i=0; i<20; i++) {
                var l = Math.ceil(Math.random()*800);
                str += "<span class='rain' style='left:" + l +"px;'></span>";
        }
        for(j=0;j<10; j++){
                var k1 = Math.ceil(Math.random()*100);
                var k2 = Math.round(Math.random()*20+80);
                str += "<span class='circle' style='left:" + k1 +"%;top:" + k2 +"%;'></span>";
        }
        document.getElementById('mnBox').innerHTML += str;
}
rain();
</script>

马黑黑 发表于 2021-12-6 22:34

加林森 发表于 2021-12-6 22:34
好的好的

客气客气

加林森 发表于 2021-12-6 22:38

马黑黑 发表于 2021-12-6 22:34
客气客气

不客气不客气
页: 1 2 3 [4]
查看完整版本: 红马 (女版) - 一颗狼星_许篮心 送大家!