好多人可能见过别人网站下面都有一个会跳舞的小人,但是不知道怎么弄,我刚开始也不知道,但是我朋友的博客里面有这个教程,所以我就搬砖搬过来了,嘿嘿。
但是我的网站里面没有,因为我不喜欢花里胡哨的,所以说,我就没有要,但是我不要不代表你们不要,所以我就搬砖搬过来了,
咱们废话不多说,直接给你们帮代码打出来
<!--初音未来开始-->
<style>
.music {
position: fixed!important;
position: absolute;
width: 90px;
height: 95px;
z-index: 9;
right: 0;
bottom: 0;
top: expression(offsetParent.scrollTop+offsetParent.clientHeight-150);
cursor: pointer;
}
</style>
<div id="audio" class="music">
<img src="https://ku.oioweb.cn/img/weimusic1.gif"
width="100px" height="100px" id="d" onclick="c();">
</div>
<!--初音未来结束-->
<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=0
height=0 src="http://fs.open.kugou.com/bad19d4e5e707cef72ced78e37743ec4/5d4463ee/G088/M00/1D/08/-IYBAFtYV-eAb0yhABpph4OyHVM420.mp3"> <center>
</div>
代码中第38行的:https://fs.open.kugou.com/bad19d4e5e707cef72ced78e37743ec4/5d4463ee/G088/M00/1D/08/-IYBAFtYV-eAb0yhABpph4OyHVM420.mp3 为播放的音乐外链,大家可以把它换成自己想要的音乐外链。最后把完整的代码复制下来,如果你是代刷网就直接放到底部代码就可以了,如果你是其他网站,我就不知道了,如果需要我帮忙,可以联系我,我帮你一起找。
音乐外链如果不会弄的话,我给大家找一个外链地址:https//music.xf1433.com/
这个音乐外链获取是我在百度上找的,不知道会不会凉,反正凑合着用吧。
评论