把那个页面的代码贴上来。
是啊,我也奇怪。更有意思的是我保存的东西,读出来的竟然每个开始处都有这么个符号%>,谁能帮帮我们呢
这个问题为什么没有人理睬呢?每个开始处都有这么个符号%>?
把
<IFRAME ID="eWebEditor1" name="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=artbody&style=s_blue" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>
<input type="hidden" name="artbody">
改成
<IFRAME ID="eWebEditor1" name="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=artbody&style=s_blue" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>
<input type="hidden" name="artbody">
阳光白雪帮我解决了!
谢谢大家
[此贴子已经被作者于2007-4-12 10:07:41编辑过]
<!--#include file="conn.asp" -->
<%
'if session("user_name")="" or session ("id")="" then
'response.write "<script language=JavaScript>" & chr(13) & "alert('对不起,你无权查看此页!');" & "window.location.href = 'ht_dl.asp'"&" </script>"
'end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style type="text/css">TD {
COLOR: #365885; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-WEIGHT: normal
}
A:link {
COLOR: #365885; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; line-height:150%; FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none
}
A:visited {
COLOR: #365885; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none
}
A:hover {
COLOR: #365885; FONT-FAMILY: "宋体"; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: underline
}
</style>
<title>WELCOME</title>
<script language="javascript" >
function Page_Submit()
{
if(document.news.news_type.value=="")
{
alert('文章类别不能为空');
return false;
}
if(document.news.title.value=="")
{
alert('文章标题不能为空');
return false;
}
if(document.news.name.value=="")
{
alert('发布者不能为空');
return false;
}
var artbody;//文章标题变量
artbody=document.eWebEditor1.getHTML();//获得文章的内容
if(artbody=="")
{
alert('文章内容不能为空');
return false;
}
//将数据给隐藏表单
document.news.artbody.value=artbody;
document.news.submit();//提交表单
}
function Show(){
if(document.news.news_type.value=="")
{
alert('文章类别不能为空');
return false;
}
if(document.news.title.value=="")
{
alert('文章标题不能为空');
return false;
}
if(document.news.name.value=="")
{
alert('发布者不能为空');
return false;
}
var artbody;//文章标题变量
artbody=document.eWebEditor1.getHTML();//获得文章的内容
if(artbody=="")
{
alert('文章内容不能为空');
return false;
}
//将数据给隐藏表单
document.news.artbody.value=artbody;
document.news.action = "show.asp";
document.news.target = "_blank";
document.news.submit();//提交表单
}
function Page_Load()
{
eWebEditor1.setMode('EDIT');
}
</script>
</head>
<body topmargin="0" onLoad="Page_Load();">
<!--#include file="ht_top.asp" -->
<table cellpadding="0" cellspacing="0" border="0" align="center" width="1000">
<tr>
<td width="125" valign="top" background="image2/a14.gif" height="550">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="21" background="image2/a15.gif">
<p align="center"><font color="#365885">
新闻系统
</font></td>
</tr>
<tr>
<td width="100%"><img border="0" src="image2/a16.gif"></td>
</tr>
<tr>
<td width="100%">
<table border="0" width="100%" cellpadding="5">
<%
sql1="select * from ht_small_class where ht_big_class='新闻系统' order by id"
set rs1=server.createobject("ADODB.Recordset")
rs1.open sql1,conn,1,1
if rs1.eof or rs1.bof then
%>
<tr>
<td align="center"><span style="font-size:9.0pt;mso-bidi-font-size:12.0pt;font-family:宋体;mso-ascii-font-family:
"Times New Roman";mso-hansi-font-family:"Times New Roman";mso-bidi-font-weight:
bold">暂时没有开通<br>此功能!</span></td>
</tr>
<tr>
<%
end if
do while not rs1.eof
%>
<tr>
<td width="32%" align="center">
<p align="right"><img border="0" src="image2/a17.gif"></td>
<td width="68%" align="left"><span style="font-size:9.0pt;mso-bidi-font-size:12.0pt;font-family:宋体;mso-ascii-font-family:
"Times New Roman";mso-hansi-font-family:"Times New Roman";mso-bidi-font-weight:
bold"><a href="<%=rs1("url")%>"><%=rs1("ht_small_class")%></a></span></td>
</tr>
<%
rs1.movenext
loop
rs1.close
set rs1=nothing
%>
</table>
</td>
</tr>
<tr>
<td width="100%" background="image2/a23.gif" height="34">
<p align="center"><font color="#365885"><a href="exit.asp" >退出登陆</a></font>
</td>
</tr>
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" width="78%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<hr size="1" color="#FFFFFF">
</td>
</tr>
</center>
<tr>
<td width="100%">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="29%">
<p align="right"><img border="0" src="image2/a22.gif"></td>
<center>
<td width="71%" valign="bottom"><font color="#365885"><b> 新闻发布
</b></font></td>
</tr>
</table>
</center>
</td>
</tr>
<tr>
<td width="100%"></td>
</tr>
<tr>
<td width="100%"></td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td width="100%"></td>
</tr>
<tr>
<td width="100%"></td>
</tr>
</table>
</td>
<td width="865" valign="top" align="center" bgcolor="F7F7F7">
<table border="0" cellpadding="3" cellspacing="0" align="center" width="95%">
<form action="p_new_upload.asp" onSubmit="Page_Submit();return false;" enctype="multipart/form-data" method="post" name="news">
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr>
<td></td>
<td ><font size="+1" color="#FF0000"> <p> 新闻上传</font></p></td>
</tr>
<tr>
<td align="right" width="10%">新闻类别: </td>
<td>
<select name="news_type">
<%
set rs1=server.CreateObject("ADODB.Recordset")
sql1="select * from news_type where news_number=1 order by id"
rs1.open sql1,conn,1,1
if not rs1.bof or rs1.eof then
do while not rs1.eof
%>
<option value="1<%=rs1("news_type")%>">
+ <%=rs1("news_type")%>
</option>
<%
set rs2=server.CreateObject("ADODB.Recordset")
sql2="select * from news_type where news_number=2 and news_dy1='" & rs1("news_dy1") & "' order by id"
rs2.open sql2,conn,1,1
if not rs2.bof or rs2.eof then
do while not rs2.eof
%>
<option value="2<%=rs2("news_type")%>">
|- <%=rs2("news_type")%>
</option>
<%
set rs3=server.CreateObject("ADODB.Recordset")
sql3="select * from news_type where news_number=3 and news_dy2='" & rs2("news_dy2") & "' order by id"
rs3.open sql3,conn,1,1
if not rs3.bof or rs3.eof then
do while not rs3.eof
%>
<option value="3<%=rs3("news_type")%>">
|- <%=rs3("news_type")%>
</option>
<%
rs3.movenext
loop
rs3.close
set rs3=nothing
end if
rs2.movenext
loop
rs2.close
set rs2=nothing
end if
rs1.movenext
loop
else
%>
<option value='0'>暂时没有分类</option>
<%
end if
rs1.close
set rs1=nothing
%>
</select>
</td>
</tr>
<tr>
<td align="right" width="10%">新闻标题: </td>
<td><input type="text" name="title" maxlength="30" size="30"> (不大于30个字符)</td>
</tr>
<tr>
<td align="right">发布者: </td>
<td><input type="text" name="name" maxlength="15" size="30"> (不大于15个字符)</td>
</tr>
<tr>
<td valign="top" align="right">新闻内容: </td>
<td><!--textarea name="news" cols="100" rows="20"></textarea-->
<IFRAME ID="eWebEditor1" name="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=XXX&style=s_blue" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>
<input type="hidden" name="artbody">
</td>
</tr>
<tr>
<td align="right">图片上传: </td>
<td><input type="file" name="img">(上传图片由此处,编辑器不提供上传功能 [图片大小:800*600;文件大小:不大于300K])</td>
</tr>
<tr>
<td align="right">图片说明: </td>
<td><input type="text" name="content" maxlength="20" size="30"> (不大于20个字符)[选填]</td>
</tr>
<tr>
<td> </td>
<td colspan="2"> <input type=submit name=button1 value="提交"> <input type="button" name="Submit2" value="预览" onClick="Show()"/>
<input type="reset" value="重置">
</td></tr>
</form>
</table>
</td>
</tr>
</table>
</body>
</html>
这样呢?
把
<IFRAME ID="eWebEditor1" name="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=artbody&style=s_blue" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>
<input type="hidden" name="artbody">
改成
<IFRAME ID="eWebEditor1" name="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=artbody&style=s_blue" FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME>
<input type="hidden" name="artbody">
阳光白雪帮我解决了!
谢谢大家
没看出啥区别来(除了颜色变了)