<!-- 把下面代码放到<body>区域中: -->
<form name="addresses">
请选择给谁发信<select name="list" onChange="update()">
<option value="email'mailto:webmaster@knowsky.com">email webmaster@knowsky.com
<option value="email'mailto:support@knowsky.com">email support@knowsky.com
<option value="email'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>