English 中文(简体)
B. 变化最小
原标题:Change Lowest frame dynamically
  • 时间:2012-01-13 17:49:39
  •  标签:
  • html
  • frames

我的网页有3个框架、顶、中、底,每个框架都有不同页。 在我点击中线时,我想改变第三个框架。

主 席:

<html>
<frameset rows="475,6%,*">
  <frame name="top" scrolling="no" noresize target="middle" src="top.htm">
  <frame name="middle" src="middle.htm" scrolling="no" noresize>
  <frame name="bottom" src="bottom.htm" scrolling="no" noresize>
  <noframes>
  <body>

  <p>This page uses frames, but your browser doesn t support them.</p>

  </body>
  </noframes>
</frameset>

我要做的是,在中.htm网页上建立一个纽州,这样当它被点击下底线时,现在就会出现一个不同的页面。

如何确定这一点?

TIA

不丹

问题回答

Try top.document.getElementsByName (“bottom”) [0].src = “YOUR_NEW_PAGE”

我不建议采用框架,但你可以尝试:

<script>
function changePage(strPage)
{
parent.middle.location.href = strPage; 
}
</script>

<a href="javascript:void(0);" onClick="changePage( page1.htm )">Page 1</a>   
<a href="javascript:void(0);" onClick="changePage( page2.htm )">Page 2</a>   
<a href="javascript:void(0);" onClick="changePage( page3.htm )">Page 3</a>   
<a href="javascript:void(0);" onClick="changePage( body.htm )">Home</a>




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签