您的位置:首页 > 其它

Test love machine

2012-10-08 17:22 477 查看
<p>

<script type="text/javascript">// <![CDATA[

function LoveMachine()

{

var sinceILoveYou = new Date(2005, 5-1, 15, 17, 15, 25, 00);//month is range from 0-11

var together = (new Date(new Date() - sinceILoveYou)).valueOf()/1000/60/60/24;

var days = parseInt(together);

together = (together - days) * 24;

var hours = parseInt(together);

together = (together - hours) * 60;

var minutes = parseInt(together);

together = (together - minutes) * 60;

var seconds = parseInt(together);

var lovehome = document.getElementById("defaultCountdown");

lovehome.innerHTML = days + " Days, "

+ hours + " Hours, "

+ minutes + " Minutes, "

+ seconds + " Seconds";

}

var love = setInterval("LoveMachine()",1000);

// ]]></script>

</p>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  love machine
相关文章推荐