|
本帖最后由 lluxury 于 2011-4-22 13:09 编辑
这个网页有3个form但都没有名字,我用查找的方式,选中了第二个表单,可以提交,都不能操作此表单上的selType 控件,类型是 select-one
我写的是,就是操作地点选择哪一段
$oQuery = _IEFormElementGetObjByName ($oForm, "id")
_IEFormElementOptionSelect ($oQuery , 3, 1, "byIndex") 失败
请问如何操作selType 控件
源码附下
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="inc/style.css">
<title>Web武侠世界</title>
<link href="color/color1.css" type="text/css" />
<script type="text/javascript" src="Ajax.js"></script>
</head>
<body>
<center>
<div id="header">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><font class="font_map" size="5"><b>位置:龙门客栈</b></font>
</td>
</tr>
<tr><td height="10"></td></tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<a href="index.asp"><font class="font_menu" size="3"><b>〖首页〗</b></font></a>
<a href="game.htm" target="_blank"><font class="font_menu" size="3"><b>〖说明〗</b></font></a>
<a href="rank.asp" target="_blank"><font class="font_menu" size="3"><b>〖本期成员〗</b></font></a>
<a href="news.asp?page=2" target="_blank"><font class="font_menu" size="3"><b>〖江湖传闻〗</b></font></a>
<a href="member.asp" target="_blank"><font class="font_menu" size="3"><b>〖恶人榜〗</b></font></a>
<a href="change.asp" target="_blank"><font class="font_menu" size="3"><b>〖隐姓埋名〗</b></font></a>
<a href="http://219.141.190.104/park/index.asp?assortid=2&forumid=2" target="_blank"><font class="font_menu" size="3"><b>〖论坛〗</b></font></a>
</td>
</tr>
<tr><td height="5"></td></tr>
</table>
</div>
<div id="body">
<div id="user">
<div id="info">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="mytable">
<tr>
<td width="100%" colspan="4" class="tdtitle"><b>江湖通缉令</b>
</td>
</tr>
<tr>
<td width="100%" colspan="4" height="82" class="tdbody">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="70" align="center" rowspan="2">
<img src="images/1.gif">
</td><td width="*" align="center" colspan="4"><b>[江湖绰号]</b><br>小鱼儿
</td>
</tr>
<tr>
<td width="25%" align="center"><b>[门派]</b><br>八卦门
</td><td width="25%" align="center"><b>[生命]</b><br>1
</td><td width="25%" align="center"><b>[等级]</b><br>24
</td><td width="25%" align="center"><b>[经验]</b><br>17/21
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="tdtitle"><b>伤口</b></td>
<td class="tdbody" colspan="3"> </td>
</tr>
<tr>
<td class="tdtitle"><b>耐力</b></td>
<td class="tdbody" colspan="3"><div class="graph"><strong class="bar" style="width:36%"></strong></div>73/200/4797</td>
</tr>
<tr>
<td width="72" class="tdtitle"><b>体力</b></td>
<td width="72" class="tdbody"><div class="graph"><strong class="bar" style="width:100%"></strong></div>1929/1929</td>
<td width="72" class="tdtitle"><b>内力</b></td>
<td width="82" class="tdbody"><div class="graph"><strong class="bar" style="width:100%"></strong></div>135/135</td>
</tr>
<tr>
<td class="tdtitle"><b>攻击</b></td>
<td class="tdbody">157+138</td>
<td class="tdtitle"><b>防御</b></td>
<td class="tdbody">176+5</td>
</tr>
<tr>
<td rowspan="2" class="tdtitle"><b>武器</b>
</td><td width="*" colspan="3" class="tdbody"><a title="刀系武器">短刀/∞</a>
</td>
</tr>
<tr>
<td align="left" colspan="3" class="tdbody">
<a href="main.asp?mode=action&method=wcan">[武器解除]</a>
</td>
</tr>
<tr>
<td rowspan="2" class="tdtitle"><b>防具</b>
</td><td width="*" colspan="3" class="tdbody"><a title="">布衣/∞</a>
</td>
</tr>
<tr>
<td align="left" colspan="3" class="tdbody">
<a href="main.asp?mode=action&method=fcan">[防具解除]</a>
</td>
</tr>
<tr>
<td class="tdtitle"><b>饰物</b>
</td><td width="*" colspan="3" class="tdbody"><a title=""> </a>
</td>
</tr>
<tr>
<td class="tdtitle"><b>宝物</b>
</td><td width="*" colspan="3" class="tdbody">
<a title=""> </a>
</td>
</tr>
<tr>
<td class="tdtitle"><b>宠物</b>
</td><td width="*" colspan="3" class="tdbody"><a title=""> </a>
</td>
</tr>
</table>
</div>
<div id="item">
<table width="100%" height="328" border="0" align="center" cellpadding="2" cellspacing="1" class="mytable">
<tr>
<td width="100%" colspan="2" class="tdtitle"><b>物品(0/6) [银两 382]</b>
</td>
</tr>
<tr>
<td width="100%" height="263" valign="top" colspan="2" class="tdbody">
</td>
</tr>
<tr>
<td width="72" class="tdtitle"><b>队伍</b></td>
<td width="128" class="tdbody"> </td>
</tr>
<tr>
<td class="tdtitle"><b>队友</b></td>
<td class="tdbody"> </td>
</tr>
</table>
</div>
</div>
<div id="action">
<table width="100%" height="328" border="0" align="center" cellpadding="2" cellspacing="1" class="mytable">
<tr>
<td width="100%" class="tdtitle"><b>选择项目</b>
</td>
</tr>
<tr>
<td width="100%" valign="top" class="tdbody">
<form method="post" action="main.asp">
<input type="hidden" name="mode" value="action">
<input type="hidden" name="method" value="move">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td width="60%"><select name="id"><option value="0">〖 地点选择 〗</option>
<option value="1">★铁掌山</option>
<option value="2">★金蛇山洞</option>
<option value="3">★蜘蛛山洞</option>
<option value="4">★破庙</option>
<option value="5">★古墓</option>
<option value="6">★黑木崖</option>
<option value="7">★思过崖</option>
<option value="0"><--当前位置--></option>
<option value="31">○小二赌馆儿</option>
<option value="32">○天龙寺</option>
<option value="33">○有间店铺</option>
<option value="34">○当铺</option>
<option value="36">○武馆</option>
</select></td>
<td width="40%"><input type="submit" name="Enter" value="移动">
</td>
</tr>
</table>
</form>
<form method="post" action="main.asp">
<input type="hidden" name="mode" value="action">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td width="60%"><select name="method"><option value="">〖 状态选择 〗</option>
<option value="healstart">沐浴回春</option>
<option value="innstart">闭目养神</option>
</select></td>
<td width="40%"><input type="submit" name="Enter" value="决定">
</td>
</tr>
</table>
</form>
<form method="post" action="main.asp">
<input type="hidden" name="mode" value="action">
<input type="hidden" name="method" value="hotel">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<td width="100%"><img src="images/npc/15.gif" border="0" align="middle">
</td>
</tr>
<tr>
<td width="100%">花费:10文<br>说明:体力补满、内力补满<br><font color=#7CFC00>可能还有特殊服务哦~</font>
</td>
</tr>
<tr><td><input type="submit" name="Enter" value="那就住一晚">
</td></tr>
</table>
</form>
</td>
</tr>
</table>
</div>
</div>
<div>
<div class="log1">
<table width="100%" valign="top" height="100%" border="0" cellpadding="2" cellspacing="1" class="mytable">
<tr>
<td width="100%" height="19" class="tdtitle"><b>行动描述</b>
</td>
</tr>
<tr>
<td width="100%" valign="top" class="tdbody" height=193>选择要进行的行动。。。<br>
</td>
</tr>
</table>
</div>
<div class="log">
<table width=100% height="100%" border="0" cellpadding="2" cellspacing="1" class="mytable">
<tr>
<td width="100%" height="19" class="tdtitle"><b>千里传音</b>
</td>
</tr>
<tr>
<td width="100%" class="tdbody">
<input type="hidden" id="username" name="username" value="小鱼儿">
留言:<input size="49" type="text" id="content" maxlength="60" name="content" >
<input type="button" onclick="sendJS();" value="发送" class="button" id="submit" />
<div id="bookList" style="height: 160px;"></div>
</td>
</tr>
</table>
</div>
</div>
</center>
</body>
</html> |
|