⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.jsp

📁 本系统是一个在线考试系统
💻 JSP
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文件在线编辑器</title>
<script language="JavaScript" type="text/JavaScript">
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function check()
{
	var strFileName=form1.FileName.value;
	var FileType;
	var ImgWH;
	if (strFileName=="")
	{
    	alert("请选择要上传的文件");
    	return false;
	}
        return true;
}
function loadForm()
{
  editor.HtmlEdit.document.body.innerHTML=document.myform.Content.value;
  return true
}
function subchk()
{
document.form1.content.value= window.editor.getHTML();
}

function insertHtml(HtmlCode)
{
var win=window.editor.Composition.document;//其中编辑区域是gledit.jsp中的一个iframe,id是idEditbox
window.editor.Composition.focus();//是编辑器获得焦点,防止代码插入在编辑器外地方
win.selection.createRange().pasteHTML(HtmlCode)//在光标的位置插入html代码
}
function tempfun(msg)
{
  insertHtml("<img src='/test/editor/pic/20030915170559718.gif' border=0>");
}
</SCRIPT>

</head>


<body>
<p><a href="http://www.cnmaya.org" target="_blank"><img src="images/mayalogo.gif" width="88" height="31" border="0"></a></p>
<p>&nbsp;</p>
<form name="form1" method="post" action=""  onsubmit=" subchk()">
<table width="760" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr>
    <td>主题:</td>
    <td><input name="title" type="text" id="title" size="68">
    </td>
  </tr>
  <tr>
    <td>内容:</td>
    <td colspan="2">
      <!--object id=doc_html style="LEFT: 0px; TOP: 0px" data=edit.jsp width=544 height=320 type=text/x-scriptlet  viewastext>
      </object-->
      <IFRAME SRC="edit.jsp" id='editor' frameborder=0 scrolling=0 width=544 height=321>
      </IFRAME>
<textarea name="Content" style="display:none"></textarea>
    </td>
  </tr>
  <tr>
    <td colspan="2">
      <div align="center">
        <input name="Submit" type="submit" value="提交">
&nbsp;
        <input type="reset" name="Submit2" value="重置">
        <input name="temp" type="button" id="temp"  onClick="tempfun('asdd')" value="temp" >
        <input name="btn" type="button" id="btn" onClick="MM_popupMsg('tef')" value="按钮">
        </div>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</form>
<div align="center">
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td><div align="center"><font size="-1">Copyright (C) 2003 <a href="http://www.itmaya.com/bbs" target="_blank">www.cnmaya.org</a> </font></div></td>
    </tr>
  </table>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -