ไม่รอละสั่ง countdown เลย - TopicsExpress



          

ไม่รอละสั่ง countdown เลย function countdown(){ date1 = new Date(); date2 = new Date(2015-01-01 00:00:00); var defDate = (date2.getTime() - date1.getTime()) ; return defDate; } function happyNewYear(){ alert(Happy new Year! \nMay you get succeed in the year 2015 and achieve all your goals you have set.); } function setCountdown(){ setTimeout(happyNewYear,countdown()); } $( document ).ready(function() { setCountdown(); });
Posted on: Wed, 31 Dec 2014 08:00:08 +0000

Trending Topics



Recently Viewed Topics




© 2015