迅雷7 幸福树:在线编辑器如何读取数据库中的html代码并编辑呢?

来源:百度文库 编辑:高校问答 时间:2024/05/01 08:44:21
是这样的.我后台用
<script>
function sub(obj){
obj.form_content_name.value=Composition.document.body.innerHTML;
return true;
}
</script>

<form method="post" onSubmit="return sub(this);">
<iframe class="Composition" ID="Composition" MARGINHEIGHT="1" MARGINWIDTH="1" width="90%" src="div.htm" height="240" name="Composition">
</iframe>
<script>Composition.document.designMode='ON';Composition.focus();</script>

<input type=hidden name="form_content_name" id="form_content_name">

<input type=submit>
</form>
这一个做为一个可视的编辑文本框,并在可视的环境下把其html代码保存到数据库中了.

-----------------现在问题是
我如何再使用上面的文本编辑框从数据库中读取出html代码并对其进行编辑呢?

网页其实是由html代码编的,高手们一般都直接用记事本来进行html代码编辑。一般人还是会使用工具的如dm,frontpage