跪求:网页分成三部分如何得到HTML元素 我初学,想问一下各位大侠,网页分成top,left,right三个部分怎么取left上面的元素?我用tags,再用item取不来,各位帮帮忙,不知道我还有没有分,有分的话都散给大家! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head runat="server"><meta http-equiv="Content-Type" content="text/html; charset=GB18030"><title>管理员操作界面</title><style type="text/css"> body { background:#BED393; margin:0px; font:normal 12px 宋体; } table { border:0px; } td { font:normal 12px 宋体; } img { vertical-align:bottom; border:0px; } a { font:normal 12px 宋体; color:#215DC6; text-decoration:none; } a:hover { color:#428EFF } .sec_menu { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; background:#D6DFF7; padding:5px 2px;} .menu_title { } .menu_title span { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; } .menu_title2 { } .menu_title2 span { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; } </style> <script type="text/javascript" language="javascript">function menuChange(obj,menu){ if(menu.style.display=="") { obj.background="images/admin_title_bg_show.gif"; menu.style.display="none"; }else{ obj.background="images/admin_title_bg_hide.gif"; menu.style.display=""; }}function proLoadimg(){ var i=new Image; i.src='images/admin_title_bg_hide.gif';}proLoadimg();</script></head><body> <form id="form1" runat="server"> <table cellpadding="0" cellspacing="0" width="150px" align="center" bgcolor="#000000"> <tr style="CURSOR:hand"> <td height="25" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu10);" bgcolor="#000000"> <span>系统菜单</span> </td> </tr> <tr> <td> <div class="sec_menu" style="WIDTH:150px" id="menu10"> <table cellpadding="0" cellspacing="0" align="center" width="135" bgcolor="#000000"> <tr height="70"> <td> <table cellpadding="0" cellspacing="0" width="100%" align="center"> <tr height="60"> <td> <a href="login.jsp" target="_top"><b><font color="#999999">退出管理</font></b></a> <a href="register.jsp" target="Main"><b><font color="#999999">注册用户</font></b></a> </td> </tr> </table> </td> </tr> </table> </div> </td> </tr> </table> <!-- <div align="center" runat="server" id="allstaff"> <table cellpadding="0" cellspacing="0" width="150" align="center" bgcolor="#000000"> <tr style="CURSOR:hand"> <td align="left" height="25" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu5);"> <span>订阅业务</span></td> </tr> <tr> <td> <div class="sec_menu" style="WIDTH:150px" id="menu5"> <table cellpadding="0" cellspacing="0" align="center" height="60" width="135" runat="server" id="admin_staff" bgcolor="#000000"> <tr height="20"> <td> <a href="servlet/SMSTypeServlet?type=1&op=browse" target="mainFrame"><font color="#999999">查看</font></a></td><td valign="top"><br></td> </tr> <tr height="20"> <td> <a href="indexorder.jsp" target="mainFrame"><font color="#999999">查询在线</font></a></td><td valign="top"><br></td> </tr> </table> </div></td> </tr> </table> </div> --> <div align="center" runat="server" id="setwork"> <table cellpadding="0" cellspacing="0" width="150" align="center" bgcolor="#000000"> <tr style="CURSOR:hand"> <td align="left" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu3);" style="height: 25px"> <span>查询在线主机</span></td> </tr> <tr> <td> <div class="sec_menu" style="WIDTH:150px" id="menu3"> <table cellpadding="0" cellspacing="0" align="center" width="135" height="60" bgcolor="#000000"> <tr height="20"> <td> <a href="servlet/SMSTypeServlet?type=2&op=gettypename" target="mainFrame"><font color="#999999">添加在线主机</font></a></td> </tr> <tr height="20"> <td> <a href="servlet/SMSTypeServlet?type=2&op=browse" target="mainFrame"><font color="#999999">查看在线主机</font></a></td> </tr> <tr height="20"> <td> <a href="indexdb.jsp" target="mainFrame"><font color="#999999">查询在线主机</font></a></td> </tr> </table> </div></td> </tr> </table> </div> <div align="center" runat="server" id="admin_role"> <table cellpadding="0" cellspacing="0" width="150" align="center" bgcolor="#000000"> <tr style="CURSOR:hand"> <td align="left" height="25" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu4);"> <span>用户管理</span> </td> </tr> <tr> <td> <div class="sec_menu" style="WIDTH:150px" id="menu4"> <table cellpadding="0" cellspacing="0" align="center" width="135" height="60" bgcolor="#000000"> <!-- <tr height="20"> <td> <a href="servlet/OrderSMSServlet?op=show" target="mainFrame"><font color="#999999">查看订阅</font></a> </td> </tr> <tr height="20"> <td> <a href="showcharge.jsp" target="mainFrame"><font color="#999999">查看</font></a> </td> </tr>--> <tr height="20"> <td> <a href="servlet/SMSContentServlet?op=browse" target="mainFrame"><font color="#999999">查询指令</font></a></td> </tr> </table> </div> </td> </tr> </table> </div> <!-- <div align="center" runat="server" id="message"> <table cellpadding="0" cellspacing="0" width="150" align="center" bgcolor="#000000"> <tr style="CURSOR:hand"> <td align="left" height="25" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu9);"> <span>管理短信</span> </td> </tr> <tr> <td> <div class="sec_menu" style="WIDTH:150px" id="menu9"> <table cellpadding="0" cellspacing="0" align="center" width="135" height="60" bgcolor="#000000"> <tr height="20"> <td> <a href="servlet/SMSTypeServlet?type=2&op=gettypename&page=addmessage" target="mainFrame"><font color="#999999">添加</font></a></td> </tr> <tr height="20"> <td> <a href="servlet/SMSContentServlet?op=browse&page=showmessage" target="mainFrame"><font color="#999999">查看</font></a></td> </tr> <tr height="20"> <td> <a href="indexmanage.jsp" target="mainFrame"><font color="#999999">查询</font></a></td> </tr> <tr height="20"> <td> <a href="servlet/UserUploadServlet?op=browse" target="mainFrame"><font color="#999999">发布</font></a></td> </tr> </table> </div> </td> </tr> </table> </div> --> <table cellpadding="0" cellspacing="0" width="150" align="center" id="TABLE1" bgcolor="#000000"> <tr style="CURSOR:hand"> <td align="left" height="25" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu6);"> <span>版权信息</span> </td> </tr> <tr> <td> <div class="sec_menu" style="WIDTH:150px" id="menu6"> <table cellpadding="0" cellspacing="0" align="center" width="135" height="60"> <tr height="20"> <td style="height: 20px" bgcolor="#000000"> <font color="#999999">版权所有:WZ</font></td> </tr> </table> </div> </td> </tr> </table> </form></body></html> 框架类的?document.frames['left'] 理清了一下,网页代码是这样的<HTML><HEAD><TITLE>My JSP 'index.jsp' starting page</TITLE><META http-equiv=Content-Type content="text/html; charset=gb2312"><META http-equiv=pragma content=no-cache><META http-equiv=cache-control content=no-cache><META http-equiv=expires content=0><META http-equiv=keywords content=keyword1,keyword2,keyword3><META http-equiv=description content="This is my page"><META content="MSHTML 6.00.2900.5726" name=GENERATOR></HEAD><FRAMESET border=0 frameSpacing=0 rows=80,* frameBorder=no cols=*><FRAME id=topFrame title=topFrame name=topFrame src="My JSP 'index_jsp' starting page.files/top.htm" noResize scrolling=no><FRAMESET border=0 frameSpacing=0 rows=* frameBorder=no cols=180,*><FRAME id=leftFrame title=leftFrame name=leftFrame src="My JSP 'index_jsp' starting page.files/left.htm" noResize scrolling=yes><FRAME id=mainFrame title=mainFrame name=mainFrame src="My JSP 'index_jsp' starting page.files/right.htm"></FRAMESET></FRAMESET></HTML>我要取的是FRAME id=leftFrame中的元素,应该怎么取?有没有人帮帮忙! 编译错误 关于MFC中使用sniffer的问题 对话框初始化问题?? 我的Combo 控件怎么了? 串口阻塞问题 请问怎样注册那种自动隐藏的窗口 哪里有VC数据库编程的电子书籍,请告诉我能下载的地址! 在对话框设计时碰到的问题 请教有关SetEvent的问题 如何显示一个16位的BITMAP 急急急!!!!关于c++程序中调用用c#写的dll文件,该怎么调用? 求VC制作ISO镜像文件方法
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>管理员操作界面</title>
<style type="text/css">
body { background:#BED393; margin:0px; font:normal 12px 宋体; }
table { border:0px; }
td { font:normal 12px 宋体; }
img { vertical-align:bottom; border:0px; }
a { font:normal 12px 宋体; color:#215DC6; text-decoration:none; }
a:hover { color:#428EFF }
.sec_menu { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; background:#D6DFF7; padding:5px 2px;}
.menu_title { }
.menu_title span { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
.menu_title2 { }
.menu_title2 span { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style>
<script type="text/javascript" language="javascript">
function menuChange(obj,menu)
{
if(menu.style.display=="")
{
obj.background="images/admin_title_bg_show.gif";
menu.style.display="none";
}else{
obj.background="images/admin_title_bg_hide.gif";
menu.style.display="";
}
}function proLoadimg()
{
var i=new Image;
i.src='images/admin_title_bg_hide.gif';
}
proLoadimg();
</script>
</head>
<body>
<form id="form1" runat="server">
<table cellpadding="0" cellspacing="0" width="150px" align="center" bgcolor="#000000">
<tr style="CURSOR:hand">
<td height="25" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu10);" bgcolor="#000000">
<span>系统菜单</span>
</td>
</tr>
<tr>
<td>
<div class="sec_menu" style="WIDTH:150px" id="menu10">
<table cellpadding="0" cellspacing="0" align="center" width="135" bgcolor="#000000">
<tr height="70">
<td>
<table cellpadding="0" cellspacing="0" width="100%" align="center">
<tr height="60">
<td>
<a href="login.jsp" target="_top"><b><font color="#999999">退出管理</font></b></a> <a href="register.jsp" target="Main"><b><font color="#999999">注册用户</font></b></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<!--
<div align="center" runat="server" id="allstaff">
<table cellpadding="0" cellspacing="0" width="150" align="center" bgcolor="#000000">
<tr style="CURSOR:hand">
<td align="left" height="25" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu5);">
<span>订阅业务</span></td>
</tr>
<tr>
<td>
<div class="sec_menu" style="WIDTH:150px" id="menu5">
<table cellpadding="0" cellspacing="0" align="center" height="60" width="135" runat="server" id="admin_staff" bgcolor="#000000">
<tr height="20">
<td> <a href="servlet/SMSTypeServlet?type=1&op=browse" target="mainFrame"><font color="#999999">查看</font></a></td><td valign="top"><br></td>
</tr>
<tr height="20">
<td> <a href="indexorder.jsp" target="mainFrame"><font color="#999999">查询在线</font></a></td><td valign="top"><br></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div>
-->
<div align="center" runat="server" id="setwork">
<table cellpadding="0" cellspacing="0" width="150" align="center" bgcolor="#000000">
<tr style="CURSOR:hand">
<td align="left" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu3);" style="height: 25px">
<span>查询在线主机</span></td>
</tr>
<tr>
<td>
<div class="sec_menu" style="WIDTH:150px" id="menu3">
<table cellpadding="0" cellspacing="0" align="center" width="135" height="60" bgcolor="#000000">
<tr height="20">
<td> <a href="servlet/SMSTypeServlet?type=2&op=gettypename" target="mainFrame"><font color="#999999">添加在线主机</font></a></td>
</tr>
<tr height="20">
<td> <a href="servlet/SMSTypeServlet?type=2&op=browse" target="mainFrame"><font color="#999999">查看在线主机</font></a></td>
</tr>
<tr height="20">
<td> <a href="indexdb.jsp" target="mainFrame"><font color="#999999">查询在线主机</font></a></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div>
<div align="center" runat="server" id="admin_role">
<table cellpadding="0" cellspacing="0" width="150" align="center" bgcolor="#000000">
<tr style="CURSOR:hand">
<td align="left" height="25" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu4);">
<span>用户管理</span>
</td>
</tr>
<tr>
<td>
<div class="sec_menu" style="WIDTH:150px" id="menu4">
<table cellpadding="0" cellspacing="0" align="center" width="135" height="60" bgcolor="#000000">
<!-- <tr height="20">
<td> <a href="servlet/OrderSMSServlet?op=show" target="mainFrame"><font color="#999999">查看订阅</font></a> </td>
</tr>
<tr height="20">
<td> <a href="showcharge.jsp" target="mainFrame"><font color="#999999">查看</font></a> </td>
</tr>-->
<tr height="20">
<td> <a href="servlet/SMSContentServlet?op=browse" target="mainFrame"><font color="#999999">查询指令</font></a></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<!--
<div align="center" runat="server" id="message">
<table cellpadding="0" cellspacing="0" width="150" align="center" bgcolor="#000000">
<tr style="CURSOR:hand">
<td align="left" height="25" class="menu_title" background="images/admin_title_bg_hide.gif" onclick="menuChange(this,menu9);">
<span>管理短信</span>
</td>
</tr>
<tr>
<td>
<div class="sec_menu" style="WIDTH:150px" id="menu9">
<table cellpadding="0" cellspacing="0" align="center" width="135" height="60" bgcolor="#000000">
<tr height="20">
<td> <a href="servlet/SMSTypeServlet?type=2&op=gettypename&page=addmessage" target="mainFrame"><font color="#999999">添加</font></a></td>
</tr>
<tr height="20">
<td> <a href="servlet/SMSContentServlet?op=browse&page=showmessage" target="mainFrame"><font color="#999999">查看</font></a></td>
</tr>
<tr height="20">
<td> <a href="indexmanage.jsp" target="mainFrame"><font color="#999999">查询</font></a></td>
</tr>
<tr height="20">
<td> <a href="servlet/UserUploadServlet?op=browse" target="mainFrame"><font color="#999999">发布</font></a></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
-->
<table cellpadding="0" cellspacing="0" width="150" align="center" id="TABLE1" bgcolor="#000000">
<tr style="CURSOR:hand">
<td align="left" height="25" class="menu_title" background="images/admin_title_bg_hide.gif"
onclick="menuChange(this,menu6);">
<span>版权信息</span>
</td>
</tr>
<tr>
<td>
<div class="sec_menu" style="WIDTH:150px" id="menu6">
<table cellpadding="0" cellspacing="0" align="center" width="135" height="60">
<tr height="20">
<td style="height: 20px" bgcolor="#000000"> <font color="#999999">版权所有:WZ</font></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</form>
</body></html>
<HTML><HEAD><TITLE>My JSP 'index.jsp' starting page</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META http-equiv=pragma content=no-cache>
<META http-equiv=cache-control content=no-cache>
<META http-equiv=expires content=0>
<META http-equiv=keywords content=keyword1,keyword2,keyword3>
<META http-equiv=description content="This is my page">
<META content="MSHTML 6.00.2900.5726" name=GENERATOR></HEAD><FRAMESET border=0
frameSpacing=0 rows=80,* frameBorder=no cols=*><FRAME id=topFrame title=topFrame
name=topFrame src="My JSP 'index_jsp' starting page.files/top.htm" noResize
scrolling=no><FRAMESET border=0 frameSpacing=0 rows=* frameBorder=no
cols=180,*><FRAME id=leftFrame title=leftFrame name=leftFrame
src="My JSP 'index_jsp' starting page.files/left.htm" noResize
scrolling=yes><FRAME id=mainFrame title=mainFrame name=mainFrame
src="My JSP 'index_jsp' starting page.files/right.htm"></FRAMESET></FRAMESET></HTML>我要取的是FRAME id=leftFrame中的元素,应该怎么取?有没有人帮帮忙!