怎么赋值不到id哪里去呢
<strong style=\"width: 34px; line-height: 48px; font-size: 28px; height: 50px; display: block; color: #fff; text-align: center; margin: 0 auto;-webkit-animation: change 1s infinite;animation: change 1s infinite;-moz-animation: change 1s infinite;\" id=\"syhw\">10<\/strong>
怎么赋值不到id哪里去呢
var hours = (new Date()).getHours();这个hours已经定义了
var syhw1 = document.getElementById("syhw");
if(10>hours>=8){
syhw1.innerHTML="13"
}
else if(12>hours>=10)
{//预约剩余10
syhw1.innerHTML="10"
}
else if(14>hours>=12)
{//预约剩余7
document.write()) syhw1.innerHTML="7"
}
else
{
syhw1.innerHtml="5"
}
请教一下哪里出错了