可以用于预约数据;
网站底部;
各种数据按时间进行出现不同数据;
<SCRIPT type="text/javascript">
function skrand(skif){
var text="";
day = new Date( ); time = day.getHours( );
if (( time>=8) && (time < 10 ))
text="1"
if (( time >= 10 ) && (time < 12))
text="21"
if (( time >= 12) && (time < 14))
text="33"
if (( time >=14) && (time < 18))
text="38 "
if ((time >= 18) && (time <= 20))
text="51"
if ((time >= 20) && (time <= 23))
text="72"
if ((time >= 23) && (time < 24))
text="预约己满"
var sk1,sk2;
sk1=text;
sk2=text*7;
if (skif==1){
document.write(sk2) ;
}else{
document.write(sk1) ;
}
}
skrand(2)
</SCRIPT>