首先感谢您的帮助~!
也许有楼上仁兄说的何能,可是在产品编辑页面mgr_update.asp中还有如下代码:
<script language = "JavaScript">
var onecount;
subcat = new Array();
<%#@~^QQAAAA==@#@&P~,P,PP,mK;xDPxPZ@#@&~,PP,~P,NW,A4k^+,xGY~.kRnW6~@#@&P~~,PP~~JQ0AAA==^#~@%>
subcat[<%=#@~^BQAAAA==^KEUDKQIAAA==^#~@%>] = new Array("<%=#@~^GwAAAA==~DDrs`M/`r?sCV^Zslk/HCs+J*bFwkAAA==^#~@%>","<%=#@~^GQAAAA==~DDrs`M/`rAbLZ^ld/glhnr##MAgAAA==^#~@%>","<%=#@~^GwAAAA==~DDrs`M/`r?sCV^Zslk/HCs+J*bFwkAAA==^#~@%>");
<%#@~^ZAAAAA==@#@&P~,P,PP,mK;xDPxP1W;UDP_,q@#@&PP,~~P,PM/ :G-xn6D@#@&,P~~,PP~sKW2@#@&~,P~,P,PDkR1sWk+@#@&,P~~,PP,ShQAAA==^#~@%>
onecount=<%=#@~^BQAAAA==^KEUDKQIAAA==^#~@%>;
function changelocation(locationid)
{
document.form.SmallClassName.length = 1;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.form.SmallClassName.options[document.form.SmallClassName.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
function CheckForm()
{
if (editor.EditMode.checked==true)
document.form.Content.value=editor.HtmlEdit.document.body.innerText;
else
document.form.Content.value=editor.HtmlEdit.document.body.innerHTML;
if (Eneditor.EditMode.checked==true)
document.form.EnContent.value=Eneditor.HtmlEdit.document.body.innerText;
else
document.form.EnContent.value=Eneditor.HtmlEdit.document.body.innerHTML;
if (document.form.Title.value=="")
{
alert("文章标题不能为空!");
document.form.Title.focus();
return false;
}
if (document.form.Key.value=="")
{
alert("关键字不能为空!");
document.form.Key.focus();
return false;
}
if (document.form.Content.value=="")
{
alert("文章内容不能为空!");
editor.HtmlEdit.focus();
return false;
}
return true;
}
function loadForm()
{
editor.HtmlEdit.document.body.innerHTML=document.form.Content.value;
Eneditor.HtmlEdit.document.body.innerHTML=document.form.EnContent.value;
return true
}
</script>
另外我在下面的语句调用了上面的变量:
<textarea name="Content" style="display:none"><%=#@~^FAAAAA==.kb.Dk1V+vJ;GxD+UYr#GQcAAA==^#~@%></textarea>
这里主要是想将数据库中的代码生成的效果(如我添加的图片和文字等...)回显到这个文本域中~!