网页添加精灵代码

<style>
.spig {
display:block;
width:175px;
height:246px;
position:absolute;
bottom: 300px;
left:180px;
z-index:9999;
}

#message{
color :#191919;
border: 1px solid #c4c4c4;
background:#ddd;
-moz-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;
min-height:1em;
padding:5px;
top:-45px;
position:absolute;
text-align:center;
width:auto !important;
z-index:10000;
-moz-box-shadow:0 0 15px #eeeeee;
-webkit-box-shadow:0 0 15px #eeeeee;
border-color:#eeeeee;
box-shadow:0 0 15px #eeeeee;
outline:none;
}
.mumu{
width:175px;
height:246px;
cursor:move;
background:url(http://files.cnblogs.com/files/flipped/spig.gif) no-repeat;
}
</style>


<script src="https://blog-static.cnblogs.com/files/ambitionutil/spig.js"></script>
<script src="http://files.cnblogs.com/files/flipped/spig.js"></script>
<!--博客精灵 start*-->
<div id="spig" class="spig">
<div id="message">……</div>
<div id="mumu" class="mumu"></div>
</div>

<script type="text/javascript">
var isindex=true;
var title="";
var visitor="这位客官";
</script>
<!--精灵end*-->

 

如果想修改精灵图标,只需要找一个gif将代码中的gif换一下即可

posted @ 2021-10-12 16:58  驰网飞飞  阅读(110)  评论(0编辑  收藏  举报
……