<body>
<h1></h1>
<div id="form">
<div id="chatpane">
<ul id="chatbuffer" />
</div>
<div id="userpane">在线用户:
<ul id="userlist" />
</div>
<p class="clear" />
<table >
<tr>
<td colspan="4">
<input type="text" class="mytext" id="mytext" onkeydown="captureReturn(event)" ></td>
<td >
<input type="button" class="button" onclick="postText()" value="发言" /></td>
</tr>
<tr>
<td >
对 <select name="msuser" ><option value="大家" selected>大家</option></select>
</td>
<td >
颜色
<select name="mscolor" ><option value="000000" selected> 绝对黑色</select>
</td>
<td >
表情
<select name="msemotion" ><option value="" selected> 请选择 </select>
</td>
<td >
<input type="button" class="button" value="清屏" /></td>
<td >
<input type="button" class="button" value="离开" onclick="parent.location.href='login.aspx'" /></td>
</tr>
</table>
</div>
<script type="text/javascript">
sniffBrowserType();
showLoadScreen();
setTimers();
setFocus('mytext');
</script>
</body>
function postText() //发送消息
{
rnd++;
chatbox = getElement( "mytext" );
selectboxcolor=getElement( "mscolor" );
selectboxemotion=getElement( "msemotion" );
selectboxuser=getElement( "msuser" );
chat = chatbox.value;
userd=selectboxuser.checked;
color=selectboxcolor.checked;
emotion=selectboxemotion.checked;
chatbox.value = "";
userid = location.search.substring( 1, location.search.length );
url = 'Server.aspx?action=PostMsg&u=' + userid + '&t=' + encodeURIComponent(chat) + '&session=' + rnd + '&usd='+encodeURIComponent(userd)+'&c=' + encodeURIComponent(color) + '&e='+encodeURIComponent(emotion);
req = getAjax();
req.onreadystatechange = function(){
if( req.readyState == 4 && req.status == 200 ) {
updateAll();
}
}
req.open( 'GET', url, true );
req.send( null );
}
网页中的text框信息可以传递,但select下拉框中的信息传递不过来,请问下哪里错了?