This is a method used by "lazy people". You don't have time to update the homepage, but you can't let the update three months ago still be marked with "new", so using this js can help you a lot!
This picture will automatically disappear on January 1, 2000.
Copy the following code into your html file between
and :
<script> <br><!-- <BR>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) } <BR>// --> <br></script>
<script> <br>expireat("january 1, 2000") <br></script>
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn