如何实现论坛程序的贴图功能,象西祠胡同那样即时排版上传的?
西祠的页面是在POST界面的Form中加了一个
<OBJECT id=doc_html style="LEFT: 0px; TOP: 0px" data=/js/editor.html width=544 height=374
type=text/x-scriptlet></OBJECT>
而在editor.html中则用了
<IFRAME class="Composition" ID="Composition"
MARGINHEIGHT="1" MARGINWIDTH="1" width="100%" height="320">
</IFRAME>
用JavaScript实现
Composition.document.open()
Composition.document.write("<head><style type=\"text/css\">body {font-size: 10.8pt}</style><meta http-equiv=Content-Type content=\"text/html; charset=gb2312\"></head><BODY bgcolor=\"#FFFFFF\" MONOSPACE></body>");
Composition.document.close()
Composition.document.designMode="On"
这样就可以在IFRAME中进行页面设计了,问题是设计完在POST中提交后,图片和文字是怎么传给服务器的,服务端的CGI或ASP程序是该如何处理呢?