不讲理的人打一字谜:为什么使用eWeb编辑器后文字可以正常显示而图片显示源代码??

来源:百度文库 编辑:高考问答 时间:2024/05/04 12:51:29
我把代码放在下面了希望高手给予解答
急啊!
<!--#include file="admin.asp"-->
<!--#include file="conn.asp"-->
<%if Request.QueryString("no")="eshop" then%>
<%
title=server.htmlencode(Trim(Request("title")))
content=server.htmlencode(Trim(Request("content")))
%>
<%

If title="" Then
response.write "SORRY <br>"
response.write "请输入更新内容的标题!!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
If content="" Then
response.write "SORRY <br>"
response.write "内容不能为空!!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from nuoli "
rs.open sql,conn,1,3
rs.addnew
rs("title")=title
rs("content")=content
rs("counter")=0
rs.update
rs.close
response.redirect "Manage_nuoli.asp"
end if
%>
<!-- #include file="Inc/Head.asp" -->
< <form method="post" action="Manage_nuoliAdd.asp?no=eshop"><td><div align="center">
<table width="100%" border="0" cellspacing="2" cellpadding="3">
<tr>
<td width="8%" height="25" bgcolor="#C0C0C0"> <div align="center">标  题</div></td>
<td width="62%" bgcolor="#C0C0C0"><input type="text" name="title" class="inputtext" maxlength="30" size="25"></td>
</tr>
<tr>
<td height="22" bgcolor="#E3E3E3">
<div align="center">UBB代码</div></td>
<td bgcolor="#E3E3E3"><script src=../Inc/eshopcode.js></script>
<!--#include file=../Inc/Ubb.inc -->
</td>
</tr>
<tr>
<td height="25" bgcolor="#C0C0C0"><div align="center">内  容</div></td>
<td height="25" bgcolor="#C0C0C0">
<textarea name="content" cols="57" rows="12" style="display:none" wrap="PHYSICAL"></textarea>
<iframe src="../ewb/ewebeditor.asp?id=content&style=xg" frameborder="0" scrolling="no" width="550" HEIGHT="350"></iframe> </tr>

</td>
<tr>
<td height="25" colspan="2" bgcolor="#E3E3E3">
<div align="center">
<input type="submit" value="确定">
 
<input type="reset" value="取消">

</table>
</div></td></form>
</tr>
</table>
<br>
<br>
</td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->

ewebeditor已经完全够用了,不必再加什么ubb了,你再用ubb过滤一遍的话就会显示源代码了