请问我想在一个页面中显示另外一个页面的内容怎样实现???

我做了一个在线统计的页面A(该页面要不停刷新),要将其放在另外一个页面B中,其实目的就是让B页面的部分区域不停刷新,而不影响整个B页面的刷新
---------------------------------------------------------------

1<iframe height="0" src="a.asp" width="0"></iframe>

---------------------------------------------------------------

 1<html>
 2<head>
 3<title>Untitled Document</title>
 4<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
 5</head>
 6<frameset rows="436,36">
 7<frame src="b.asp"/>
 8<frame src="a.asp"/>
 9</frameset>
10<noframes><body bgcolor="#FFFFFF" text="#000000">
11</body></noframes>
12</html>

---------------------------------------------------------------

用一个

1<iframe></iframe>

就行了,

1<iframe border="0" frameborder="0" height="1" marginheight="1" marginwidth="1" name="a" scrolling="no" src="filename.htm" width="1">
2</iframe>

其中的filename.htm是刷新的页面名,
marginwidth="1"是页面边距

height="1" width="1"是页面的长宽,设小的一点好,以刷新了别人也不知道。
scrolling="no"是指没有滚动条

Published At
Categories with Web编程
Tagged with
comments powered by Disqus