电脑技术学习

你自己选择发信给谁,可以加入很多个信箱

dn001

<!-- 把下面代码放到<body>区域中: -->

<form name="addresses">
请选择给谁发信<select name="list" onChange="update()">
<option value="mailto:webmaster@knowsky.com">email webmaster@knowsky.com
<option value="mailto:support@knowsky.com">email support@knowsky.com
<option value="mailto:info@knowsky.com">email info@knowsky.com
</select>
<a href="updatelink">发信啦!</a>
</form>
<script language="javascript">

<!--; begin
pos = 9999;
for(num=0;num<document.links.length;num++) {
if (document.links[
num].href.indexOf("updatelink") != -1) {
pos = num;
num = 5000;
}
}
function update() {
if (pos!=9999) {
sel = document.addresses.list.selectedIndex;
document.links[
pos].href = document.addresses.list[
sel].value;
}
}
update();
// end -->
</script>