要使用document.f就要:<form name="f" ... >和id无关window.document.f.Select1.selectIndex -> window.document.f.Select1.selectedIndex<option selected='selected' ... -> <option selected ...window.document.f.Select1.options[window.document.f.Select1.selectedIndex].value改成
window.document.f.Select1.value应该也可以
window.document.f.Select1.value应该也可以
{
document.all.imgFace.src=document.all.Select1.options[document.all.Select1.selectedIndex].value;
}