<img src="" width=100 height=100 id=myimg>
<script>
function hide(obj){
obj.width=obj.width-1
obj.height=obj.height-1
if(obj.width==0||obj.height==0){
obj.style.display='none';
t=null;
return;
}
t=setTimeout("hide(document.getElementById('myimg'))",1000)
}
t=setTimeout("hide(document.getElementById('myimg'))",1000);
</script>
这个是1秒后开始缩小然后直到消失的,你可以改下参数到你的需求。
<script>
function hide(obj){
obj.width=obj.width-1
obj.height=obj.height-1
if(obj.width==0||obj.height==0){
obj.style.display='none';
t=null;
return;
}
t=setTimeout("hide(document.getElementById('myimg'))",1000)
}
t=setTimeout("hide(document.getElementById('myimg'))",1000);
</script>
这个是1秒后开始缩小然后直到消失的,你可以改下参数到你的需求。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货