|
|
|
|
<HTML>
|
|
|
|
|
<HEAD>
|
|
|
|
|
<TITLE>eWebEditor <EFBFBD><EFBFBD> <EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD>APIʾ<EFBFBD><EFBFBD></TITLE>
|
|
|
|
|
<META http-equiv=Content-Type content="text/html; charset=gb2312">
|
|
|
|
|
<link rel='stylesheet' type='text/css' href='example.css'>
|
|
|
|
|
</HEAD>
|
|
|
|
|
<BODY>
|
|
|
|
|
|
|
|
|
|
<p><b><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <a href="default.htm">ʾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ</a> > <EFBFBD>ͻ<EFBFBD><EFBFBD><EFBFBD>APIʾ<EFBFBD><EFBFBD></b></p>
|
|
|
|
|
<p><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>eWebEditor<EFBFBD>ṩ<EFBFBD>Ŀͻ<EFBFBD><EFBFBD><EFBFBD>API<EFBFBD><EFBFBD><EFBFBD>Ա༭<EFBFBD><EFBFBD>ִ<EFBFBD>и<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>API<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֲᡣ</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<FORM method="post" name="myform" action="retrieve.asp">
|
|
|
|
|
<TABLE border="0" cellpadding="2" cellspacing="1">
|
|
|
|
|
<TR>
|
|
|
|
|
<TD><EFBFBD>༭<EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD></TD>
|
|
|
|
|
<TD>
|
|
|
|
|
<div>
|
|
|
|
|
<INPUT type="hidden" name="content1" value="<font style='color:red'>adfadf</font>">
|
|
|
|
|
<IFRAME ID="eWebEditor" onblur='myTextArea.value=eWebEditor.getHTML()' src="../ewebeditor.htm?id=content1&style=coolblue" frameborder="0" scrolling="no" width="550" height="350"></IFRAME>
|
|
|
|
|
</div>
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD colspan=2 align=right>
|
|
|
|
|
<INPUT type=submit value="<EFBFBD>ύ">
|
|
|
|
|
<INPUT type=reset value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>">
|
|
|
|
|
<INPUT type=button value="<EFBFBD>鿴Դ<EFBFBD>ļ<EFBFBD>" onclick="location.replace('view-source:'+location)">
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD>HTML<EFBFBD><EFBFBD><EFBFBD>룺</TD>
|
|
|
|
|
<TD><TEXTAREA cols=50 rows=5 id=myTextArea style="width:550px"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ť<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>Ч<EFBFBD><EFBFBD><EFBFBD><EFBFBD></TEXTAREA></TD>
|
|
|
|
|
</TR>
|
|
|
|
|
<TR>
|
|
|
|
|
<TD colspan=2 align=right>
|
|
|
|
|
<INPUT type=button value="ȡֵ(HTML)" onclick="myTextArea.value=eWebEditor1.getHTML()">
|
|
|
|
|
<INPUT type=button value="ȡֵ(<EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>)" onclick="myTextArea.value=eWebEditor1.getText()">
|
|
|
|
|
<INPUT type=button value="<EFBFBD><EFBFBD>ֵ" onclick="eWebEditor1.setHTML('<b>Hello My World!</b>')">
|
|
|
|
|
<INPUT type=button value="<EFBFBD><EFBFBD>ǰλ<EFBFBD>ò<EFBFBD><EFBFBD><EFBFBD>" onclick="eWebEditor1.insertHTML('This is insertHTML function!')">
|
|
|
|
|
<INPUT type=button value="β<EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="eWebEditor1.appendHTML('This is appendHTML function!')">
|
|
|
|
|
<br>
|
|
|
|
|
<INPUT type=button value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬" onclick="eWebEditor1.setMode('CODE')">
|
|
|
|
|
<INPUT type=button value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD>״̬" onclick="eWebEditor1.setMode('EDIT')">
|
|
|
|
|
<INPUT type=button value="<EFBFBD>ı<EFBFBD>״̬" onclick="eWebEditor1.setMode('TEXT')">
|
|
|
|
|
<INPUT type=button value="Ԥ<EFBFBD><EFBFBD>״̬" onclick="eWebEditor1.setMode('VIEW')">
|
|
|
|
|
<br>
|
|
|
|
|
<INPUT type=button value="Ӣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="alert(eWebEditor1.getCount(0))">
|
|
|
|
|
<INPUT type=button value="<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" onclick="alert(eWebEditor1.getCount(1))">
|
|
|
|
|
<INPUT type=button value="<EFBFBD><EFBFBD>Ӣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>1)" onclick="alert(eWebEditor1.getCount(2))">
|
|
|
|
|
<INPUT type=button value="<EFBFBD><EFBFBD>Ӣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>2)" onclick="alert(eWebEditor1.getCount(3))">
|
|
|
|
|
</TD>
|
|
|
|
|
</TR>
|
|
|
|
|
</TABLE>
|
|
|
|
|
</FORM>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</BODY>
|
|
|
|
|
</HTML>
|