选择头像- ASP教程-
时间:2010-08-28 来源:深圳的天空
<SCRIPT LANGUAGE="JavaScript">
function changeimage()
{
document.form1.showimages.src=document.form1.u_face.value;
}
</SCRIPT>
<td valign="top">
<select name="u_face" id="u_face" onChange="changeimage();">
<option value="images/face/1.gif">头像1</option>
<option value="images/face/2.gif" selected="selected">头像2</option>
<option value="images/face/3.gif">头像3</option>
<option value="images/face/4.gif">头像4</option>
<option value="images/face/5.gif">头像5</option>
<option value="images/face/6.gif">头像6</option>
</select>
<br />
<img src="images/face/2.gif" name="showimages" width="100" height="100" id="showimages" /></td>
function changeimage()
{
document.form1.showimages.src=document.form1.u_face.value;
}
</SCRIPT>
<td valign="top">
<select name="u_face" id="u_face" onChange="changeimage();">
<option value="images/face/1.gif">头像1</option>
<option value="images/face/2.gif" selected="selected">头像2</option>
<option value="images/face/3.gif">头像3</option>
<option value="images/face/4.gif">头像4</option>
<option value="images/face/5.gif">头像5</option>
<option value="images/face/6.gif">头像6</option>
</select>
<br />
<img src="images/face/2.gif" name="showimages" width="100" height="100" id="showimages" /></td>
相关阅读 更多 +