<body style="overflow:hidden">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td width="171" id=frmTitle noWrap name="fmTitle" align="center" valign="top"><table width="171" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td bgcolor="#1873aa" style="width:6px;"> </td>
<td width="165"><iframe name="I1" height="100%" width="165" src="left.html" border="0" frameborder="0" scrolling="no"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table> </td>
<td width="6" style="width:6px;"valign="middle" bgcolor="1873aa" onclick=switchSysBar()><SPAN class=navPoint
id=switchPoint title=关闭/打开左栏><img src="images/main_55.gif" name="img1" width=6 height=40 id=img1></SPAN></td>
<td width="100%" align="center" valign="top"><iframe name="I2" height="100%" width="100%" border="0" frameborder="0" src="tab.html"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table>
</body>以上框架代码。
左框I1是一个下拉菜单,我想做一个链接或JS代码点击后新页面能在I2显示。
请各位高手帮忙写一个,谢了。
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td width="171" id=frmTitle noWrap name="fmTitle" align="center" valign="top"><table width="171" height="100%" border="0" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
<tr>
<td bgcolor="#1873aa" style="width:6px;"> </td>
<td width="165"><iframe name="I1" height="100%" width="165" src="left.html" border="0" frameborder="0" scrolling="no"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table> </td>
<td width="6" style="width:6px;"valign="middle" bgcolor="1873aa" onclick=switchSysBar()><SPAN class=navPoint
id=switchPoint title=关闭/打开左栏><img src="images/main_55.gif" name="img1" width=6 height=40 id=img1></SPAN></td>
<td width="100%" align="center" valign="top"><iframe name="I2" height="100%" width="100%" border="0" frameborder="0" src="tab.html"> 浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</iframe></td>
</tr>
</table>
</body>以上框架代码。
左框I1是一个下拉菜单,我想做一个链接或JS代码点击后新页面能在I2显示。
请各位高手帮忙写一个,谢了。
<a href="......" target="I2">在I2中显示</a>
<a href="......" target="I1">在I1中显示</a>
<a href="......" target="_self">在I1中显示</a>
<a href="......" target="_top">在整个框架中显示</a>
....
lz可以查下target属性的用法
<a href="......" target="I1">在I1中显示 </a>
I1中显示这个成功。
可是
<a href="......" target="I2">在I2中显示 </a>
这个不成功,在整个页面中显示这是为什么呢?