请马上登录,朋友们都在花潮里等着你哦:)
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 小九 于 2022-3-15 09:09 编辑
<style tpye="text/css"> body { overflow-x: hidden; } /*禁用横向滚动条 */ #baiBox { margin: auto; width: 360px; text-align: center; font-size: 5rem; font-weight: bold; color: #EEEE00; transform-origin: top; animation: yao 0.8s linear infinite alternate; }
@keyframes yao { from{ transform: perspective(800px) rotatex(30deg); } to { transform: perspective(800px) rotatex(-30deg); } } .picBtn {
width: 120px; height: 120px; border: none; outline: none; border-radius: 8px; background: transparent url('https://pic.imgdb.cn/item/622db6215baa1a80ab3dff55.gif') no-repeat; cursor: pointer; </style> <div id="xq" > <div id="baiBox" style="position: absolute; left:120px; top: 40px; ">人世间</div>
<div style="position: absolute; left:120px; top: 150px; width:400px;text-align:center;"> <img alt="" src="http://image.hnol.net/c/2021-01/10/10/202101101019478794-5088534.gif"/>
<div style="position:absolute; width:160px; left:560px; top: 60px; text-align:center;">
<center > <p ><font color="#ffffff" size="4" >
<div style="color:#ffffff;margin:0px;padding:10px;font-size:5px;font-family:微软雅黑;text-shadow:1px 1px 1px #000000;">
<marquee scrollamount="5" direction="left" >祝你踏过千层浪,不忘少年样,也无惧白发苍苍 </marquee> <audio style="width:600px; height:64px;" controls="controls" autoplay="autoplay" loop="loop" src="http://music.163.com/song/media/outer/url?id=488664116.mp3" type="audio/mpeg" hidden="true"></audio> <br></p>
<div style="position:absolute; width:120px; left:110px; top: 250px; text-align:center;">
<button id="picBtn" class="picBtn"></button> </div> </div> </div> </div> </div>
<script language="javascript">
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/622db6215baa1a80ab3dff55.gif')") : (mu.pause(), btn.style.background="url('https://pic.imgdb.cn/item/622db73d5baa1a80ab3e783b.gif')"); }
mu.addEventListener("ended", function(){ btn.style.background="url('https://pic.imgdb.cn/item/622db73d5baa1a80ab3e783b.gif')"; })
</script></div> <br><br><br><br><br><br><br><br>
1、用了人世间的图片,是在论坛上传的,图片地址放进代码, 最后结果是图片显示不出来 2、用了羽儿的音乐代码,但不知道代码是否有误,羽儿帮忙看看
代码太多,看着就晕了
|