📄 input9.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
body,table{font-size:13px;line-height:22px;}
</style>
<title>根据需要输入一项或多项,回车可以确定</title>
<script language="Javascript1.2">
function SaveRecord(sYear,sMonth,sDay,hvalue)
{
ret=0;
if(hvalue.length>0){
cname=parent.getname(sYear,sMonth,sDay);
ret=parent.setCookie(cname,hvalue);
}
else{
parent.delCookie(parent.getname(sYear,sMonth,sDay));
}
return ret;
}
var cobj;
function sethint()
{
cobj.hint1=document.theform.hint1.value;
cobj.hint2=document.theform.hint2.value;
cobj.hint3=document.theform.hint3.value;
ret=SaveRecord(cobj.sYear,cobj.sMonth,cobj.sDay,document.theform.hint1.value);
if(ret==0) ret=SaveRecord("yl",cobj.sMonth,cobj.sDay,document.theform.hint2.value);
if(ret==0) ret=SaveRecord("nl",cobj.lMonth,cobj.lDay,document.theform.hint3.value);
if(ret<0){
rs="保存失败!可能未打开cookie,或者记事已经太多";
document.getElementById("result").innerHTML=rs;
}
else{
parent.closeinput();
document.theform.hint1.value="";
document.theform.hint2.value="";
document.theform.hint3.value="";
parent.drawhint(cobj);
}
}
function cancelset()
{
parent.closeinput();
document.theform.hint1.value="";
document.theform.hint2.value="";
document.theform.hint3.value="";
}
function focuson()
{
if(parent.curd!=null){
cobj=parent.cldObj[parent.curd];
document.theform.hint1.value=cobj.hint1;
document.theform.hint2.value=cobj.hint2;
document.theform.hint3.value=cobj.hint3;
document.theform.hint1.focus();
document.getElementById("dangri").innerHTML=cobj.sYear+"年"+cobj.sMonth+"月"+cobj.sDay+"日:";
document.getElementById("yangli").innerHTML="公历每年"+cobj.sMonth+"月"+cobj.sDay+"日:";
document.getElementById("nongli").innerHTML="农历每年"+cobj.lMonth+"月"+parent.GetcDay(cobj.lDay)+":";
document.getElementById("result").innerHTML="";
}
}
</script>
</head>
<body bgcolor=CFDFEA topmargin=10 leftmargin=15>
<form name=theform onsubmit='javascript:return false'>
<table cellspacing=0 cellpadding=0 align=left border=0>
<tr>
<td align="right" valign=top>
<b><span id=dangri></span></b>
<span id=result style="color:f00000"></span>
<br>
<textarea cols=40 rows=3 name=hint1></textarea>
<tr><td height=5>
<tr>
<td align="right" valign=top>
<i><span id=yangli></span></i>
<input size=23 name=hint2>
<tr><td height=5>
<tr>
<td align="right" valign=top>
<i><span id=nongli></span></i>
<input size=23 name=hint3>
<tr><td height=5>
<tr>
<td align=center >
<input type=submit value=" 确 定 " onclick=javascript:sethint()>
<input type=button value="取 消" onclick=javascript:cancelset()>
<tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -