//css
<scrpit>
div.huojian{
width: 0px;
height: 0px;
position: fixed;
text-align: center;
animation: huojian 24s;
-webkit-animation:myfirst 24s; /* Safari and Chrome */
animation-direction:alternate; /*动画正向播放完一次后接着反方向播放一次*/
-webkit-animation-direction:alternate; /* Safari 和 Chrome */
animation-iteration-count:100;
}
@keyframes myfirst{
0% {background:red; left:960px; top:700px;}
50% {background:red; left:10px; top:200px;}
75% {background:red; left:800px; top:0px;}
100% {background:red; left:1060px; top:600px;}
}
@-webkit-keyframes myfirst /* Safari and Chrome */{
0% {background:red; left:960px; top:700px;}
50% {background:red; left:10px; top:200px;}
75% {background:red; left:800px; top:0px;}
100% {background:red; left:1060px; top:600px;}
}
img.shadow{
opacity:0.4;
filter:alpha(opacity=40); /* 针对 IE8 以及更早的版本 */
}
img.shadow:hover{
opacity:1.0;
filter:alpha(opacity=100); /* 针对 IE8 以及更早的版本 */
}
</script>
//html
<div class="huojian">
<a href="https://www.quarkblockchain.com/register?invite_uid=2440&lang=zh-cn#utm_source=invite" target="_blank"><img class="shadow" src="huojian.gif" border="0" /></a>
</div>
网页上运动的广告、通知、二维码等处理方法
最新推荐文章于 2024-07-24 16:18:16 发布