在<input type="hidden" name="data" value="">中
value是javascript中的值.请高手指点一下具体怎么做???
<div id="time" align="center">time</div>
<script language="javascript">
function time1()
{
var now,n,y,r,h,m,s;
now=new Date();
n = now.getYear();
y = now.getMonth()+1;
r = now.getDate();
h = now.getHours();
m =now.getMinutes();
s = now.getSeconds();
nn=0;
if(y==3||y==4||y==5||y==6||y==7) {n=n-1; nn=n+1;y="上半学期";}
else if(y==9||y==10||y==11||y==12){nn=n;n=n-1;y="下半学期";}
else if(y==1){nn=n-1;n=n-2;y="下半学期";}
else if(y==2||y==8){nn=y;y="系统维护中.............";}
if(r<10) r="0"+r;
if(h<10) h="0"+h;
if(m<10) m="0"+m;
if(s<10) s="0"+s;
document.getElementById("time").innerHTML=n + "-" +nn+"-"+y;
setTimeout("time1();", 1000);
}
time1();
</script>