|
|

楼主 |
发表于 2022-3-13 11:33
|
显示全部楼层
<DIV align=center color=#ff0000 >
<table style="position: relative; LEFT: -320px; width:1200px;TOP: 180px" border="0" cellspacing="0" cellpadding="0">
<TBODY><TR><TD height=800 background=https://pic.imgdb.cn/item/622d62445baa1a80ab130218.jpg>
<DIV style="MARGIN: 5px; position: relative; LEFT:950px; width:100px;TOP: 360px">
<IMG border=0 src="https://pic.imgdb.cn/item/622d62825baa1a80ab131d25.gif" width=100_height="100"></DIV>
<DIV style="MARGIN: 5px; position: relative; LEFT:550px; width:400px;TOP: 180px">
<IMG border=0 src="https://pic.imgdb.cn/item/622d63ca5baa1a80ab13b313.gif" width=400_height="400"></DIV>
</TD></TR>
</table></div><BR><BR><BR><BR><BR><BR><BR>
<style type="text/css">
#paDiv {
margin: auto;
width: 220px;
display: flex;
align-items: center;
border: 1px solid olive;
border-radius: 8px 0px 8px 0px;
background: rgba(255, 255, 255, 0);
box-shadow: 1px 1px 2px #000;
}
#jindu {
position: relative;
width: 200px;
height: 8px;
line-height: 8px;
font-size: 10px;
color: #000;
text-align: center;
background: linear-gradient(90deg, olive, tan, gold) no-repeat;
background-size: 20px 0px;
}
#btn-ro {
width: 20px; height: 20px;
line-height: 20px; font-size: 12px;
background: linear-gradient(blue, silver, red);
outline:none;
color: white;
border-radius: 50%;
text-align: center;
cursor: pointer;
animation: rol linear 2s infinite;
}
#btn-ro:hover { opacity: 0.8; }
#btn-ro:active { opacity: 1; }
@keyframes rol { to { transform:rotate(360deg); } }
</style>
<DIV style="position: relative; LEFT: -100px; TOP: -80px">
<div id="paDiv">
<div id="btn-ro">·</div>
<div id="jindu">
<div id="jd-go"></div>
</div>
</div>
</div>
<script language="javascript">
var btn = document.getElementById('btn-ro');
var jindu = document.getElementById('jindu');
var tips = document.getElementById('au-tips');
var aud = document.createElement('audio');
aud.src ="https://www.kumeiwp.com/sub/filestores/2022/03/13/86544817ce41945e609ed7843e60fe53.mp3";
aud.addEventListener('ended', function() { btn.style.animationPlayState="paused"; }, true);
aud.addEventListener('timeupdate', tmMsg, true);
aud.play();
function tmMsg(){ //进度条
var jd = (100*aud.currentTime)/aud.duration;
jindu.innerHTML = Math.ceil(jd) + "%";
jindu.style.backgroundSize = jd+ "% 20px";
}
btn.onclick = function(){
aud.paused ? (aud.play(), btn.style.animationPlayState="running") : (aud.pause(), btn.style.animationPlayState="paused");
}
</script> |
|