js下拉框选择头像图片
<select name="avatarsel" onchange="document.images.avatarpic.src = this[this.selectedIndex].value;">
<option value="images/clear.gif"> </option>
<option value='images/avatars/icone0.gif'>icone0</option>
<option value='images/avatars/icone1.gif'>icone1</option>
<option value='images/avatars/icone10.gif'>icone10</option>
<option value='images/avatars/icone11.gif'>icone11</option>
<option value='images/avatars/icone12.gif'>icone12</option>
<option value='images/avatars/icone13.gif'>icone13</option>
</select>
<img src='images/clear_avatar.gif' name='avatarpic' align='absmiddle' border=0>