如要使这个函数通用啊?!急,在线等待!
itfly 2003-05-18 08:37:02 function getDate(writey) {
var sDate;
//这段代码处理鼠标点击的情况
if ("TD" == event.srcElement.tagName)
if ("" != event.srcElement.innerText)
{
sDate = document.all.year.value + "年" + document.all.month.value + "月" + event.srcElement.innerText + "日";
'opener.document.myform.'+writey+'.value=sDate';
javascript:window.close();
}
}
</SCRIPT>
传那一个文本框名就把这个时间写到那个文本框中!急!