?? addcategory.htm
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>添加類別</title>
</head>
<script language="JavaScript">
function ChangeCategory()
{
CategoryName=document.form1.CategoryName.value;
if(CategoryName.length < 2){alert("類別名稱不能小于2個字符!");return false;}
if(CategoryName.length > 20){alert("類別名稱不能大于20個字符!");return false;}
this.focus();
i=parent.document.form.Category.length;
parent.document.form.Category.options[i]=new Option(CategoryName,CategoryName);
parent.document.form.Category.options[i].selected=true;
parent.Wo_Modal.Close();
}
</script>
<body>
<body style="FONT-SIZE:9pt;">
<form name=form1 onsubmit="return ChangeCategory()">
輸入類別名稱,然后單擊“添加”。類別名稱會顯示在列表的底部。<br><br>
<input size="30" name="CategoryName" > <input type="submit" value=" 添加 ">
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -