📄 ad.asp
字号:
<html>
<head>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function areyousure() {
return check();
}
function check()
{
var yjform=document.addnews;
if(yjform.leibie.options[yjform.leibie.selectedIndex].value=='Z')
{
alert("请选择类别!");
yjform.leibie.focus();
return false;
}
if(yjform.biaoti.value.length<=0)
{
alert("请录入文章的标题!^_^");
yjform.biaoti.focus();
return false;
}
if(yjform.gjz1.value.length<=0)
{
alert("请录入关键字1!");
yjform.gjz1.focus();
return false;
}
if(yjform.gjz2.value.length<=0)
{
alert("请录入关键字2!");
yjform.gjz2.focus();
return false;
}
if(yjform.neirong.value.length<=0)
{
alert("请录入新闻的具体内容?");
yjform.neirong.focus();
return false;
}
if(yjform.neirong.value.length>=8000)
{
alert("录入内容太长,请更正!");
yjform.neirong.focus();
return false;
}
}
//-->
</SCRIPT>
<title>新闻提交后台管理程序</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../html/3508.css">
<style type="text/css">
<!--
.newstype { font-size: 12px; color: #003366; background-color: #FFFFEF}
.title { font-size: 16px; font-weight: bold; color: #003366; background-color: #FFFFF8}
.botton { font-size: 12px; color: #000000; background-color: #FFFFF8}
-->
</style>
</head>
<body bgcolor="#CCFFFF">
<div align="center"><font size="5">新闻提交单<br>
(实际使用时,请不要对后台页面做链接) <br>
</font></div>
<div align="right"> <a href="admrevise0.htm">修改新闻</a></div>
<form method="post" action="addnews.asp" name="addnews" onsubmit="return areyousure()">
<table width="580" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="80">类别</td>
<td width="517">
<select name="leibie" class="newstype">
<option value="Z">类别</option>
<option value="A">职业</option>
<option value="B">旅游</option>
<option value="C">奇闻</option>
<option value="D">明星</option>
<option value="E">健康</option>
<option value="F">性爱</option>
<option value="G">美食</option>
<option value="H">电器</option>
<option value="I">美丽</option>
<option value="J">汽车</option>
<option value="K">家居</option>
<option value="L">理财</option>
</select>
</td>
</tr>
<tr>
<td width="80">标题</td>
<td width="517">
<input type="text" name="biaoti" size="60" class="newstype" maxlength="60">
</td>
</tr>
<tr>
<td width="80">附标题</td>
<td width="517">
<input type="text" name="fubiaoti" size="60" class="newstype" maxlength="60">
</td>
</tr>
<tr>
<td width="80">关键字1:</td>
<td width="517">
<input type="text" name="gjz1" size="15" class="newstype" maxlength="10">
</td>
</tr>
<tr>
<td width="80">关键字2:</td>
<td width="517">
<input type="text" name="gjz2" size="15" class="newstype" maxlength="10">
</td>
</tr>
<tr>
<td width="80">摘自:</td>
<td width="517">
<input type="text" name="zhaizi" size="30" class="newstype" maxlength="20">
</td>
</tr>
<tr>
<td width="80">作者:</td>
<td width="517">
<input type="text" name="zuozhe" size="16" class="newstype" maxlength="8">
</td>
</tr>
<tr>
<td colspan="2">具体内容:</td>
</tr>
<tr align="center">
<td colspan="2">
<textarea name="neirong" cols="80" rows="20" class="newstype"></textarea>
</td>
</tr>
<tr align="center" bgcolor="#006600">
<td colspan="2" height="1"></td>
</tr>
<tr align="center" valign="bottom">
<td colspan="2" height="40">
<input type="submit" name="Submit" value="新闻提交" class="botton">
<input type="reset" name="Submit2" value="内容清除" class="botton">
<br>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -