php中使用frameset框架局部刷新问题 php中使用frameset框架局部刷新问题,当我操纵右边主页时怎么即使刷新左边菜单栏? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 使用target修改或使用js修改即可index.html<html><head><title>综合示例</title></head><frameset cols="25%,*"><frame src="menu.html" scrolling="no" name="Left"><frame src="page1.html" scrolling="auto" name="Main"><noframes><body><p>对不起,您的浏览器不支持“框架”!</p></body></noframes></frameset></html>menu.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title> menu </title> <script type="text/javascript"> function show(){ parent.Main.location.href="page2.html"; } </script> </head> <body>menu<a href="page1.html" target="Main">page1</a><a href="page2.html" target="Main">page2</a><a href="#" onclick="show()">page2 js刷新</a> </body></html>page1.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <title> page1 </title> </head> <body>page1 </body></html>page2.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <script src="//code.jquery.com/jquery-1.11.0.min.js"></script> <title> page2 </title> </head> <body>page2 </body></html> php中分页代码 急招PHP程序员一名,待遇从优! php上传加入flash进度条 有个问题没有解决... Warning 如何统计论坛的当天发贴和回帖量 关于繁体问题? PHP搜索关键字问题!谢谢回答. sybase如何何php相连呢? php 请问大家 怎么能获取报错页面 WAMP3.0.6 & wordpress4.7 – 更改最大上传文件大小 php用密保找回密码
index.html<html>
<head>
<title>综合示例</title>
</head>
<frameset cols="25%,*">
<frame src="menu.html" scrolling="no" name="Left">
<frame src="page1.html" scrolling="auto" name="Main">
<noframes>
<body>
<p>对不起,您的浏览器不支持“框架”!</p>
</body>
</noframes>
</frameset>
</html>
menu.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title> menu </title>
<script type="text/javascript">
function show(){
parent.Main.location.href="page2.html";
}
</script>
</head> <body>
menu
<a href="page1.html" target="Main">page1</a>
<a href="page2.html" target="Main">page2</a>
<a href="#" onclick="show()">page2 js刷新</a> </body>
</html>
page1.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<title> page1 </title>
</head> <body>
page1 </body>
</html>
page2.html<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<title> page2 </title>
</head> <body>
page2 </body>
</html>