有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>
<!--# 特效来源:http://www.webjx.com/js -->
<!-- 把下面代码放到<body>区域中: -->
<form name="addresses">
请选择给谁发信<select name="list" onChange="update()">
<option value="mailto:webmaster@webjx.com">email webmaster@webjx.com
<option value="mailto:support@webjx.com">email support@webjx.com
<option value="mailto:info@webjx.com">email info@webjx.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>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]