28,391
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="javascript">
function aa(x)
{
if(x==1)
document.getElementById('aa').innerHTML='新'
if(x==2)
document.getElementById('aa').innerHTML='闻'
if(x==3)
document.getElementById('aa').innerHTML='联'
if(x==4)
document.getElementById('aa').innerHTML='播'
}
</script>
<body>
<form id="form1" name="form1" method="post" action="">
<select name="select" id="select" onchange="aa(this.value)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<span id="aa"></span>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="javascript">
function aa(x)
{
document.getElementById('aa').innerHTML=x
}
</script>
<body>
<form id="form1" name="form1" method="post" action="">
<select name="select" id="select" onchange="aa(this.value)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<span id="aa"></span>
</form>
</body>
</html>