?? test2.asp
字號:
<HTML>
<HEAD>
<TITLE>eWebEditor在線編輯器 - 使用例子</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style>
body,td,input,textarea {font-size:9pt}
</style>
</HEAD>
<BODY>
<script language=JavaScript>
// 表單提交檢測
function doCheck(){
// 檢測表單的有效性
// 如:標題不能為空,內容不能為空,等等....
if (eWebEditor1.getHTML()=="") {
alert("內容不能為空!");
return false;
}
// 表單有效性檢測完后,自動上傳遠程文件
// 函數:remoteUpload(strEventUploadAfter)
// 參數:strEventUploadAfter ; 上傳完后,觸發的函數名,如果上傳完后不需動作可不填參數
eWebEditor1.remoteUpload("doSubmit()");
// 當一個表單中有多個編輯區時,你可以指定上傳某個編輯區,如:
// eWebEditor1.remoteUpload();
// eWebEditor2.remoteUpload();
// eWebEditor4.remoteUpload("doSubmit()"); 這是最后一個,執行完后提交表單
return false;
}
// 表單提交(當遠程上傳完成后,觸發此函數)
function doSubmit(){
document.myform1.submit();
}
</script>
<p><b>eWebEditor 遠程文件上傳示例:</b></p>
<FORM method="POST" name="myform1" action="submit.asp" onsubmit="return doCheck();">
<TABLE border="0" cellpadding="2" cellspacing="1">
<TR>
<TD>編輯內容:</TD>
<TD>
<INPUT type="hidden" name="content1" value="<P><IMG src="http://ewebeditor.webasp.net/images/ewebeditor.gif" border=0></P><P>以上圖片地址為:<A href="http://ewebeditor.webasp.net/images/ewebeditor.gif">http://ewebeditor.webasp.net/images/ewebeditor.gif</A></P><P>1。點擊<IMG src="http://ewebeditor.webasp.net/ewebeditor/buttonimage/standard/remoteupload.gif" border=0>按鈕,然后轉到“代碼”狀態看一下,以上圖片的地址已經到本地服務器了;</P><P>2。或點此表單的“提交”,提交后查看源文件看一下,圖片的地址也到本地服務器了;</P><P>要看其使用說明,請見壓縮包中,example/test2.asp 中的注釋。</P>">
<IFRAME ID="eWebEditor1" src="../ewebeditor.asp?id=content1&style=s_exampleremote" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
</TD>
</TR>
<TR>
<TD colspan=2 align=right>
<INPUT type=submit name=b1 value="提交">
<INPUT type=reset name=b2 value="重填">
<INPUT type=button name=b3 value="查看源文件" onclick="location.replace('view-source:'+location)">
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -