主题:  求救~~~~~~~~~~~~~~~~~~~

zyxw520

职务:普通成员
等级:1
金币:0.0
发贴:3
#12004/11/16 4:23:21
我这个有点错误,大家看能不能该一下

我这个有点错误,大家看能不能该一下

[quote]rs("top")=request.Form("top")
rs.update
rs.close
set rs=nothing
response.write"<script>location.href='admin_article.asp';</script>"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=lz8(1)%></title>
<link rel="STYLESHEET" type="text/css" href="images/edit.css">
<link href="css.css" rel="stylesheet" type="text/css">
<script language="javascript">
function chk(){
document.all("content").value=IframeID.document.body.innerHTML;
    if(document.form.name.value=="")
	{
	alert("文章标题不能为空");
	document.form.name.focus();
	return false;
	}
	if(document.form.lookup.value=="")
  {
	alert("搜索关键字不能为空");
	document.form.lookup.focus();
	return false;
	}
	if(document.form.content.value=="")
	{
	alert("文章内容不能为空");
	document.form.content.focus();
	return false;
	}
	if(document.form.ren.value=="")
	{
	alert("文章作者不能为空");
	document.form.ren.focus();
	return false;
	}
	return true;
}
</Script>
</head>
<body>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="24" background="images/skin/bg1.gif">&nbsp;<span class="style1">文章管理</span></td>
  </tr>
  <tr>
    <td height="24" bgcolor="f3f3f3"><div align="left">&nbsp;<a href="admin_article.asp">文章管理首页</a>&nbsp;|&nbsp;<a href="admin_article.asp">添加文章</a>&nbsp;|&nbsp;<a href="admin_article.asp?action=type">文章栏目管理</a>&nbsp;|&nbsp;<a href="admin_article.asp?action=addtype">文章栏目添加</a></div></td>
  </tr>
</table>
<br>
<Script Src="images/DhtmlEdit.js"></Script>
<form method="post" name="form" id="form" onsubmit="return chk();">
  <table width="100%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="f3f3f3" frame="below" id="f">
    <tr>
      <td height="24" colspan="2" background="images/skin/bg1.gif">&nbsp;<span class="style1">发布文章</span></td>
    </tr>
    <tr>
      <td height="40">&nbsp;文章类型:</td>
      <td height="40"><%call selecttype("article_type")%>
      &nbsp;<span class="style3">不能选择一级菜单做为文章类型!</span></td>
    </tr>	
    <tr>
      <td height="40"><div align="left">&nbsp;文章标题:
      </div></td>
      <td height="40"><input name="name" type="text" id="name" size="50"></td>
    </tr>
	    <tr>
      <td height="40"><div align="left">&nbsp;搜索关键字:
      </div></td>
      <td height="40"><input name="lookup" type="text" id="lookup" size="50"></td>
    </tr>
    <tr>
      <td height="40">&nbsp;文章分类:
          
	  </td>
      <td height="40">
&nbsp;版权所有
<input name="lb" type="radio" value="原创" checked>
原创
<input name="lb" type="radio" value="转载">
转载&nbsp;作者
<input name="ren" type="text" id="ren" size="10"></td>
    </tr>
    <tr>
      <td width="99" height="40">&nbsp;文章图片:
      </td>
      <td width="638" height="30"><input type="hidden" name="photo">
<iframe frameborder=0 width=290 height=24 scrolling=no src="upfile.asp?action=article"></iframe>
      </td>
    </tr>
    <tr>
      <td height="30" valign="top"><div align="left"><br>&nbsp;文章内容:</div></td>
      <td height="30"><%adminhtml()%></td>
    </tr>
    <tr valign="middle">
      <td height="25" colspan="2">        <div align="left">&nbsp;是否通过审核:
        <input name="yn" type="radio" value="1" checked>
        是
        <input type="radio" name="yn" value="0">
        否
      </div></td></tr>
    <tr valign="middle">
      <td height="25" colspan="2">&nbsp;是否设为推荐:
        <input type="radio" name="hot" value="1">
是
<input name="hot" type="radio" value="0" checked>
否</td>
    </tr>
    <tr valign="middle">
      <td height="25" colspan="2">&nbsp;是否设为固顶:
        <input type="radio" name="top" value="1">
是
<input name="top" type="radio" value="0" checked>
否</td>
    </tr>
    <tr valign="middle">
      <td height="50" colspan="2"><div align="center">
  <input name="Submit" type="submit" class="tx1" id="Submit" value="确认发布">
&nbsp;
  <input name="Submit2" type="reset" class="tx1" value="取消重填">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
    </tr>
   <div id="Layer1" style="position:absolute; left:554px; top:1594px; width:31px; height:30px; z-index:1">
      <textarea name="content" cols="50" rows="50" id="content"></textarea>
    </div>
  </table> 
</form>
<Script language="javascript">
var Dvbbs_bIsIE5=document.all;
var canusehtml='1';
var PostType=1;

if (Dvbbs_bIsIE5){
	var IframeID=frames["Dvbbs_Composition"];
}
else{
	var IframeID=document.getElementById("Dvbbs_Composition").contentWindow;
	var Dvbbs_bIsNC=true;
}

if (Dvbbs_bLoad==false)
{
	Dvbbs_InitDocument("Body","GB2312");
}
</Script>
<Script Src="images/DhtmlEdit1.js"></Script>
<Script Src="images/post.js"></Script>
<!--#include file="bq.asp"-->
</body>
</html>[/quote]



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
#22004/11/16 8:14:55
下次请先申明是什么错误,再贴代码



zyxw520

职务:普通成员
等级:1
金币:0.0
发贴:3
#32004/11/16 15:40:49
行: 26
字符: 2
错误:’iframeID.DOCument'为空或不是对象

代码:0

URL:file://D:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\Content.IE5\I99YZA14\[1].htm



缺缺

职务:管理员
等级:8
金币:41.0
发贴:9620
#42004/11/16 15:43:30
document
注意js区分大小写

另外,好像不是这个页面的错误?



zyxw520

职务:普通成员
等级:1
金币:0.0
发贴:3
#52004/11/17 0:20:36
哦谢谢,我不知道哪个错误了
你有QQ吗?加我好吗?
我的407208