答案 0 :(得分:0)
我的工作正常here。谢谢大家。
function update() {
var wB = 600;
var wA = 0;
var hours = new Date().getHours();
var d = 20;
var total_d = 20
pos_rad = ((d)*24 + hours) / ((total_d)*24.00);
xCoord = (wA) + wB*pos_rad;
$(".Box").css({
"left": xCoord
});
setTimeout(function(){ update(); }, 1000);
}
$(function(){
var today=new Date();
var dd = today.getDate();
var mm = today.getMonth()+1;
if ( dd==14 && mm==6) {
update();
}
});