网站安全运行多少天js代码【随机颜色变换】

本站已安全运行:
<span id="momk"></span>
<script language=javascript>
function show_date_time()
{
    window.setTimeout("show_date_time()", 1000);
    BirthDay = new Date("09-09-2018 12:12:24"); //建站日期
    today = new Date();
    timeold = (today.getTime()-BirthDay.getTime());
    sectimeold = timeold/1000
    secondsold = Math.floor(sectimeold);
    msPerDay = 24*60*60*1000
    e_daysold = timeold/msPerDay
    daysold = Math.floor(e_daysold);
    e_hrsold = (daysold-e_daysold)*-24;
    hrsold = Math.floor(e_hrsold);
    e_minsold = (hrsold-e_hrsold)*-60;
    minsold = Math.floor((hrsold-e_hrsold)*-60);
    seconds = Math.floor((minsold-e_minsold)*-60);
    momk.innerHTML = daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒" ;
}
show_date_time();
</script>
<style>
#momk{animation:change 10s infinite;font-weight:800; }
@keyframes change{0%{color:#5cb85c;}25%{color:#556bd8;}50%{color:#e40707;}75%{color:#66e616;}100% 
{color:#67bd31;}}
</style>

本文原创地址:https://www.ecshop.cx/article-736.html
版权所有 © 转载时必须以链接形式注明出处!

觉得本文对您有用,想收藏下来!方法很简单:请点击-〉
我们一直坚持白天工作、晚上熬夜更新资源,付出了巨大的精力和时间,其中的辛酸难以言述。

充值有惊喜