<script type="text/javascript" laugnage="javascript">
var sum=$distance;
var str;
var newstimer;
function cDate(oSum)
{
var min=Math.floor(oSum/60);
if(min<1)
{
min==0
}
var sec=oSum%60;
str=min*60+sec;
// if(str=="0"){
// window.setTimeout("window.parent.location.reload()",1000);
// }
str="(距离第"+$max_term_id+"期开奖还有"+str+"秒)"
return str ;
}
function submitForm()
{
if(sum<=0)
{
setTimeout('Reload()',1000);
}
else
{
sum=sum-1 ;
cDate(sum) ;
//document.getElementById("STime").value=str;
document.getElementById('oTime').innerHTML = str;
}
}
function Reload()
{
//clearInterval(newstimer)
// location.href=('clock_server.php')
window.location.reload(true);
}
newstimer=setInterval("submitForm()",1000)
</script>
------------------------------------------------------------------
怎么把 str="(距离第"+$max_term_id+"期开奖还有"+str+"秒)"里面的改成白色显示?