关于FRAME
我用一个窗口显示两个frame 怎样在右边frame里的下拉列表中控制要在左边frame里显示的内容.
------解决方案--------------------在你的那个下拉框中加入一个id = "st "
function show()
{
var a = document.getElementbyId( "st ").value;
window.open( "***.htm ", "左边的frame的名字 ");
}
------解决方案--------------------给个这样的例子
mainFrame.jsp
<frameset cols=15%,86% id= "parentFrame ">
<frame src= "leftMenu.jsp " name= "left " >
<frameset rows=4%,* frameborder= "0 " framespacing= "0 ">
<frame src= "top.jsp " name= "top " frameborder= "0 " marginheight= "0 " marginwidth= "0 " scrolling= "no " >
<frame src= "../resolutionView.jsp " name= "main ">
</frameset>
</frameset> <noframes> </noframes>
leftMenu.jsp
<a href= "javascript:doUrl( 'Resolution.jsp ') "> <strong> <span class= "STYLE3 "> 政协提案 </span> </strong> </href>
function doUrl(url)
{
parent.parent.frames[ "main "].location.href=url;
//document.main.url.value=url;
//document.main.action= "main.jsp ";
//document.main.submit();
}
应该很明白了