图片的定时自动消失

<script>
<!--var imagetag='<img src="news.gif" alt="1">'var today=new Date()function expireat(expiredate){var expire=new Date(expiredate)if (today.getTime()<=expire.getTime())document.write(imagetag)}//-->
</script> <script>
expireat("january 1, 2000")
</script>  

你可能感兴趣的:(Date,function)