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

📄 indexsort_edit.asp

📁 个人网站模板
💻 ASP
📖 第 1 页 / 共 4 页
字号:
		} 
	} else if(what == "FontSize"){
    if(arguments[1] != 1){
      eb._editor.execCommand(what, arguments[1]);
      document.all.size.selectedIndex = 0;
    } 
	} else {
	   eb._editor.execCommand(what, arguments[1]);
	}
}

function swapMode() {

	var eb = document.all.editbar._editor;
  eb.swapModes();
}

function create() {

    var eb = document.all.editbar;
    eb._editor.newDocument();
}

function newFile(){

	create();
}

function makeUrl(){

	sUrl = document.all.what.value + document.all.url.value;
	doFormat('CreateLink',sUrl);
}

function copyValue() {

	var theHtml = "" + document.frames("myEditor").document.frames("textEdit").document.body.innerHTML + "";
	document.all.EditorValue.value = theHtml;
}

function SwapView_OnClick(){

  if(document.all.btnSwapView.value == "显示页面"){
		var sMes = "显示代码";
    var sStatusBarMes = "当前窗口:页面模式";
	} else {
		var sMes = "显示页面"
    var sStatusBarMes = "当前窗口:代码模式";
  }
	
	document.all.btnSwapView.value = sMes;
  window.status  = sStatusBarMes;
	swapMode();
}

function Help_OnClick(){
  window.open("images/help_document.htm","wHelp", "toolbar=0, scrollbars=yes, width=640, height=480");
}

function OnFormSubmit(){

  if(confirm("该页面确定保存并在本站页面上显示吗?")){
    copyValue();
    document.fHtmlEditor.submit();
  }
}
</script> </p> 
        <table border="1" cellspacing="0" cellpadding="0" bgcolor="#EEFFEE" width="60%" height="40%" bordercolor="#EEFFEE">
          <tr valign="top"> 
            <td> <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
                <tr valign="top"> 
                  <td valign="top"> <div id=editbar > 
                      <table width="100%" border="0" cellpadding="0" cellspacing="0" align="left">
                        <tr> 
                          <td> <table border="0" cellpadding="0" cellspacing="0">
                              <tr> 
                                <td> <table border="0">
                                    <tr valign="baseline"> 
                                      <td nowrap> <img class='clsCursor' src="images/new.gif" width="16" height="16" border="0" alt="新建页面" onClick="newFile();">&nbsp 
                                        <img class='clsCursor' src="images/Cut.gif" width="16" height="16" border="0" alt="剪切" onClick="doFormat('Cut')">&nbsp 
                                        <img class='clsCursor' src="images/Copy.gif" width="16" height="16" border="0" alt="复制" onClick="doFormat('Copy')">&nbsp 
                                        <img class='clsCursor' src="images/Paste.gif" border="0" alt="粘贴" onClick="doFormat('Paste')" width="16" height="16">&nbsp 
                                      </td>
                                    </tr>
                                  </table></td>
                                <td> <table border="0">
                                    <tr valign="baseline"> 
                                      <td nowrap> <img class='clsCursor' src="images/para_bul.gif" width="16" height="16" border="0" alt="方框列表" onClick="doFormat('InsertUnorderedList');" >&nbsp 
                                        <img class='clsCursor' src="images/para_num.gif" width="16" height="16" border="0" alt="数字列表" onClick="doFormat('InsertOrderedList');" >&nbsp 
                                        <img class='clsCursor' src="images/indent.gif" width="20" height="16" alt="向里靠齐" onClick="doFormat('Indent')">&nbsp 
                                        <img class='clsCursor' src="images/outdent.gif" width="20" height="16" alt="向外靠齐" onClick="doFormat('Outdent')">&nbsp 
                                        <img class='clsCursor' src="images/hr.gif" width="16" height="18" alt="横线" onClick="doFormat('InsertHorizontalRule')">&nbsp 
                                      </td>
                                    </tr>
                                  </table></td>
                                <td> <table border="0">
                                    <tr valign="baseline"> 
                                      <td nowrap><img src="images/link.gif" border="0" alt="链接地址"></td>
                                      <td nowrap> <select name="what" style="font: 8pt verdana;">
                                          <option value="http://" selected>http://</option>
                                          <option value="mailto:">mailto:</option>
                                          <option value="ftp://">ftp://</option>
                                          <option value="https://">https://</option>
                                        </select> </td>
                                      <td> <input type="text" name="url" size="35" style="font: 8pt verdana;"> 
                                      </td>
                                      <td> <input type="button" name="button2" value="Add" onClick="makeUrl();" style="font: 8pt verdana;"> 
                                      </td>
                                    </tr>
                                  </table></td>
                                <td><img class='clsCursor' src="images/help.gif" width="20" height="20" align="middle" alt="Help" onClick="Help_OnClick();"> 
                                </td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr> 
                          <td height="41"> <table border="0">
                              <tr> 
                                <td nowrap valign="baseline"> <div align="left"> 
                                    <select name="font" onChange=" doFormat('FontName',document.all.font.value);" style="font: 8pt verdana;">
                                      <option value="1" selected >Select Font...</option>
                                      <option value="arial">Arial, Helvetica, 
                                      sans-serif</option>
                                      <option value="times" >Times New Roman, 
                                      Times, serif</option>
                                      <option value="courier">Courier New, Courier, 
                                      mono</option>
                                      <option value="georgia">Georgia, Times New 
                                      Roman</option>
                                      <option value="verdana">Verdana, Arial, 
                                      Helvetica</option>
                                    </select>
                                    <select name="size" onChange="doFormat('FontSize',document.all.size.value);" style="font: 8pt verdana;">
                                      <option value="None" selected>Size</option>
                                      <option value="1">1</option>
                                      <option value="2">2</option>
                                      <option value="3">3</option>
                                      <option value="4">4</option>
                                      <option value="5">5</option>
                                      <option value="6">6</option>
                                      <option value="7">7</option>
                                      <option value="+1">+1</option>
                                      <option value="+2">+2</option>
                                      <option value="+3">+3</option>
                                      <option value="+4">+4</option>
                                      <option value="+5">+5</option>
                                      <option value="+6">+6</option>
                                      <option value="+7">+7</option>
                                    </select>
                                    <img class='clsCursor' src="images/Bold.gif" width="18" height="16" border="0" align="absmiddle" alt="粗体" onClick="doFormat('Bold')">&nbsp 
                                    <img class='clsCursor' src="images/Italics.gif" width="16" height="16" border="0" align="absmiddle" alt="斜体" onClick="doFormat('Italic')">&nbsp 
                                    <img class='clsCursor' src="images/underline.gif" width="16" height="16" border="0" align="absmiddle" alt="下划线" onClick="doFormat('Underline')" >&nbsp 
                                    <img class='clsCursor' src="images/left.gif" width="16" height="16" border="0" alt="向左对齐" align="absmiddle"  onClick="doFormat('JustifyLeft')"> 
                                    <img class='clsCursor' src="images/centre.gif" width="16" height="16" border="0" alt="居中对齐" align="absmiddle" onClick="doFormat('JustifyCenter')">&nbsp 
                                    <img class='clsCursor' src="images/right.gif" width="16" height="16" border="0" alt="向右对齐" align="absmiddle"  onClick="doFormat('JustifyRight')">&nbsp 
                                  </div></td>
                                <td align="left" nowrap valign="baseline"> <input type="button" name="btnSwapView" value="显示页面" onClick="SwapView_OnClick();" style="width:100px; font: 8pt verdana;"> 
                                </td>

⌨️ 快捷键说明

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