解决后马上散分 在线等!
.......
<SCRIPT LANGUAGE= "JavaScript ">
<!--
........
function set_cele_date(year,month)
{
var i,j,p,k
var nd=new Date(year,month-1,1);
event.cancelBubble=true;
cele_date_year.value=year;
cele_date_month.value=month;
k=nd.getDay()-1
var temp;
for (i=1;i <=6;i++)
for(j=1;j <=7;j++)
{
eval( "c "+i+ "_ "+j+ ".innerHTML=\ "\ " ");
eval( "c "+i+ "_ "+j+ ".bgColor=\ "#4682b4\ " ");
eval( "c "+i+ "_ "+j+ ".style.cursor=\ "hand\ " ");
}
while(month-1==nd.getMonth())
{ j=(nd.getDay() +1);
p=parseInt((nd.getDate()+k) / 7)+1;
eval( "c "+p+ "_ "+j+ ".innerHTML= "+ "\ " "+nd.getDate()+ "\ " ");
if ((nd.getDate()==today.getDate())&&(cele_date_month.value==today.getMonth()+1)&&(cele_date_year.value==today.getYear())){
eval( "c "+p+ "_ "+j+ ".bgColor=\ "#EFFB64\ " ");
}
if (nd> date_end || nd <date_start)
{
eval( "c "+p+ "_ "+j+ ".bgColor=\ "#FF9999\ " ");
eval( "c "+p+ "_ "+j+ ".style.cursor=\ "text\ " ");
}
nd=new Date(nd.valueOf() + 86400000)
}
}
//s_object:点击的对象;d_start-d_end有效的时间区段;需要存放值的控件;
function show_cele_date(eP,d_start,d_end,t_object)
{
window.cele_date.style.display= " ";
window.cele_date.style.zIndex=99
var s,cur_d
var eT = eP.offsetTop;
var eH = eP.offsetHeight+eT;
var dH = window.cele_date.style.pixelHeight;
var sT = document.body.scrollTop;
var sL = document.body.scrollLeft;
event.cancelBubble=true;
window.cele_date.style.posLeft = event.clientX-event.offsetX+sL-5;
window.cele_date.style.posTop = event.clientY-event.offsetY+eH+sT-5;
if (window.cele_date.style.posLeft+window.cele_date.clientWidth> document.body.clientWidth) window.cele_date.style.posLeft+=eP.offsetWidth-window.cele_date.clientWidth;
//if (window.cele_date.style.posTop+window.cele_date.clientHeight> document.body.clientHeight) window.cele_date.style.posTop-=(eP.offsetHeight+window.cele_date.clientHeight+5);
if (d_star