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

📄 quick_address.htm

📁 webmail系统 php + mysql
💻 HTM
字号:
<title>Address Book</title>
<body bgcolor="#004080" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<link rel="stylesheet" href="themes/english/webmail.css" type="text/css">
<script language=javascript>

function addItem(obj,strText,strValue,blSel,intPos){
	var newOpt,i,ArTemp,selIndex;
	selIndex = (blSel)?intPos:obj.selectedIndex;
	newOpt = new Option(strText,strValue);
	Len = obj.options.length+1
	if (intPos > Len) return
	obj.options.length = Len
	if (intPos != Len) {
		ArTemp = new Array();
		for(i=intPos;i<obj.options.length-1;i++)
			ArTemp[i] = Array(obj.options[i].text,obj.options[i].value);
		for(i=intPos+1;i<Len;i++)
			obj.options[i] = new Option(ArTemp[i-1][0],ArTemp[i-1][1]);
	}
	obj.options[intPos] = newOpt;
	if (selIndex > intPos)
		obj.selectedIndex = selIndex+1;
	else if (selIndex == intPos) 
		obj.selectedIndex = intPos;
}
function delItem(obj,intPos){
	if(intPos > obj.length) return;
	obj.options[intPos] = null
}

function Add(sTipo) {
	frm = document.forms[0];
	dest = eval("frm."+sTipo)
	orig = frm.contacts;
	if(orig.selectedIndex == -1) {
		alert('Please select one contact');
		return
	}
	addItem(dest,orig.options[orig.selectedIndex].text,orig.options[orig.selectedIndex].text,false,dest.length)
	if(navigator.appName == "Netscape") history.go(0)
}

function Dele(sTipo) {
	frm = document.forms[0];
	orig = eval("frm."+sTipo)
	if(orig.selectedIndex == -1) {
		alert('Please select one contact');
		return
	}
	delItem(orig,orig.selectedIndex)
	if(navigator.appName == "Netscape") history.go(0)
}

function AddAndExit() {
	frm = document.forms[0];
	typs = new Array("to","cc","bcc");
	for(i=0;i<typs.length;i++) {
		orig = eval("frm."+typs[i]);
		for(n=0;n<orig.length;n++)
			window.opener.AddAddress(typs[i],orig.options[n].value);
	}
	self.close();
}
</script>
<table width="450" border="0" cellspacing="0" cellpadding="0">
	<form name=form1>
	<tr>
		<td width="225" valign=top>
			<!--%UM_CONTACTS%-->
			<br><br>
			<input type=button value=" &nbsp;OK &nbsp;" onClick="AddAndExit()" class=button>
		</td>
		
		<td valign=top bgcolor=white width="225">
			<table width="100%" border="0" cellspacing="1" cellpadding="0">
				<tr>
					<td colspan=2 class="headers"><b>To</b></td>
				</tr>
				<tr>
					<td width="5%" valign=top class=default>
						<input type="button" value=">>" class="button" onClick="Add('to')"><br>
						<input type="button" value="<<" class="button" onClick="Dele('to')"><br>
					</td>
					<td valign=top class=default>
						<select name=to size=3>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan=2 class="headers"><b>CC</b></td>
				</tr>
				<tr>
					<td width="5%" valign=top class=default>
						<input type="button" value=">>" class="button" onClick="Add('cc')"><br>
						<input type="button" value="<<" class="button" onClick="Dele('cc')"><br>
					</td>
					<td valign=top class=default>
						<select name=cc size=3>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan=2 class="headers"><b>BCC</b></td>
				</tr>
				<tr>
					<td width="5%" valign=top class=default>
						<input type="button" value=">>" class="button" onClick="Add('bcc')"><br>
						<input type="button" value="<<" class="button" onClick="Dele('bcc')"><br>
					</td>
					<td valign=top class=default>
						<select name=bcc size=3>
						</select>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	</form>
</table>
	

⌨️ 快捷键说明

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