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

📄 memo[1].htm

📁 javascript编码总结
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<HTML>
<!-- Lotus-Domino (Release 5.0.8 - June 18, 2001 on Windows NT/Intel) -->
<HEAD>
<TITLE>新建便笺</TITLE> <link rel="stylesheet" href="/css/form.css" type="text/css"><style>.mailbody{height:280px}</style><style>.sendto{height:20px}</style><style>.outline{width:778px;text-align:center;border:1px solid #000000}</style><style>.inputwidth{width:150px}</style><script language='Javascript' src='/js/searchinit1.js'></script><div style='display:none'>
<SCRIPT LANGUAGE="JavaScript">
<!-- 
document._domino_target = "_self";
function _doClick(v, o, t, h) {
  var form = document._Memo;
  if (form.onsubmit) {
     var retVal = form.onsubmit();
     if (typeof retVal == "boolean" && retVal == false)
       return false;
  }
  var target = document._domino_target;
  if (o.href != null) {
    if (o.target != null)
       target = o.target;
  } else {
    if (t != null)
      target = t;
  }
  form.target = target;
  form.__Click.value = v;
  if (h != null)
    form.action += h;
  form.submit();
  return false;
}
// -->
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">
<!-- 
window.onerror=null;

function setEditAppletState()
{
		var strLocation = new String(window.location);
		var str1 = new String(window.location.protocol + "//" + window.location.host + "/");
		var str2 = new String(strLocation.substring(str1.length, (strLocation.indexOf("nsf")+3)));
		var str3 = new String("/($Inbox)/" + document.forms[0].docID.value + "?EditDocument&useApplet");

		strLocation = str1 + str2 + str3;
		window.location = strLocation;
}

function setReplyAppletState()
{
	var msg = "\n              		  警告             \n\n" +
				  "您将要切换到 Rich Text Applet.\n" +
				  "如果您按下面的[确定]按钮,您正在书写的\n" +
				  "回函的正文将会丢失。\n\n" +
				  "您要继续吗?";
	if (confirm(msg))
	{
		var strLocation = new String(window.location);
		var str1 = new String(window.location.protocol + "//" + window.location.host + "/");
		var str2 = new String(strLocation.substring(str1.length, (strLocation.indexOf("nsf")+3)));
		
		if (strLocation.indexOf("&All") != -1) {
			var str3 = new String("/reply?OpenForm&ParentUNID=" + document.forms[0].pdocID.value + "&All&useApplet");
		}
		else {
			var str3 = new String("/reply?OpenForm&ParentUNID=" + document.forms[0].pdocID.value + "&useApplet");
		}

		strLocation = str1 + str2 + str3;
		window.location = strLocation;
	}
}

function setAppletState()
{
	var msg = "\n              		  警告             \n\n" +
				  "您将要切换到 Rich Text Applet.\n" +
				  "如果按下面的[确定]按钮会产生一个新信件\n" +
				  "并且您正在使用的信件上所有数据将会丢失。\n\n" +
				  "您要继续吗?";
	if (confirm(msg))
	{
		var strLocation = new String(window.location);
		var str1 = new String(window.location.protocol + "//" + window.location.host + "/");
		var str2 = new String(strLocation.substring(str1.length, (strLocation.indexOf("nsf")+3)));
		var str3 = new String("/Memo?OpenForm&From=($Inbox)&useApplet");
		
		strLocation = str1 + str2 + str3;
		window.location = strLocation;
	}
}

function submitDocument()
{
	thisform = document.forms[0];
	if (verifyPreSend()) {
		if (thisform.onsubmit && (false == thisform.onsubmit()))
			{
			return false;
			}
		thisform.submit();
		return true;
	}
	else  {
		return false;	
	}
}	

function verifyPreSend()
{
	thisform = document.forms[0];
	if (thisform.SendTo.value == "") { // && thisform.CopyTo.value == "" && thisform.BlindCopyTo.value == "") {
		alert("请指定此消息的接收人");
		return false;
	} 
	return true;
}// -->
</SCRIPT>
</HEAD>
<BODY TEXT="000000" BGCOLOR="FFFFFF" onLoad="var num=document.all.tags('table').length;
var strs=document.all.tags('table')[num-1].innerHTML;
if(strs.indexOf(&quot;$FILE&quot;)&gt;0 | strs.indexOf(&quot;$file&quot;)&gt;0)
{
strs=strs.replace(&quot;TBODY&quot;,&quot;TABLE&quot;);
strs=strs.replace(&quot;/TBODY&quot;,&quot;/TABLE&quot;);
document.all.fujian.innerHTML=strs;
}

SearchInit1();
if (window.location.protocol.indexOf('Notes:')==-1)
{
var e = window.location.search.search(/EditDocument/);
var e2 = window.location.search.search(/OpenForm/);
if ((e + e2) != -2 &amp;&amp; screen.width&gt;640) document.forms[0].SendTo.focus();
}
if(window.opener!=null)
{
window.opener.location.reload()
}">

<FORM onSubmit="document.all['isreaden'].value=&quot;&quot;" METHOD=post ACTION="/mail/ydk.nsf/Memo?OpenForm&Seq=1" ENCTYPE="multipart/form-data" NAME="_Memo">
<INPUT TYPE=hidden NAME="__Click" VALUE="0">
<TABLE BORDER=1 CELLSPACING=2 CELLPADDING=2>
<TR VALIGN=middle BGCOLOR="#C0C0C0"><TD><A onClick="thisform = document.forms[0];
if (thisform.tmpAlreadySent.value != &quot;1&quot;) {
	thisform.tmpSendOptions.value = &quot;1&quot;;
	if (submitDocument() == true) {
	thisform.tmpAlreadySent.value = &quot;1&quot;;
	}
	
}
return false;" HREF="">发送</A></TD><TD><A onClick="thisform = document.forms[0];
if (thisform.tmpAlreadySent.value != &quot;1&quot;) {
	thisform.tmpSendOptions.value = &quot;2&quot;;
	submitDocument();
	thisform.tmpAlreadySent.value = &quot;1&quot;;
}

return false;" HREF="">发送并保存</A></TD><TD><A HREF="" onClick="return _doClick('5aba1ee72183b31185256608006478ff/$V5ACTIONS/0.7746', this, null)" TARGET="_self">保存为草稿</A></TD><TD><A onClick="window.showModalDialog(&quot;/oasystemep/showaddress.nsf/waddress?openagent&amp;SendTo,&quot;,window,&quot;status:no;dialogWidth:554px;dialogHeight:306px;scroll:no;help:no;&quot;)
return false;" HREF="">地址</A></TD></TR>
</TABLE>

⌨️ 快捷键说明

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