ifarme跳转浏览器兼容问题 ?

linwbjlh 2009-11-19 10:19:40
我总共有三个页面, index, top, main 小弟想用 iframe 刷新main ,但是在firefox下,点击链接回弹出新窗口,而ie下不会,怎么样设置,才回让firefox不弹出呢??? 小弟水平太有限,肯求各位大哥帮忙,由于发贴权限只有100,所以最多也就100分了,问题解决,保证结贴。
index:

<html>

<iframe src="top.php" name="top" scrolling="auto" height="15%" width="100%" frameborder="0" border="0" frameborder="no">
<iframe src="main.php" name="main" scrolling="auto" height="85%" width="100%" frameborder="0" border="0" frameborder="no">
</html>

top:

<html>
<body>
<ul id="nav">
<li><a href="#" id="current">首 頁</a></li>
<li><a href="main.php?model=school&action=dis" target="main">school</a></li>
<li><a href="main.php?model=user&action=dis" target="main">user</a></li>
<li><a href="main.php?model=site&action=dis" target="main">site</a></li>

</ul>
</body>
</html>

main
<?php
header("content-type:text/html; charset=utf-8");
include_once("session.php");
?>
<head>


</head>
<body>
<div id="content">

<?php

$action = $_GET["action"];
$model = $_GET["model"];

$_SESSION['action']=$action;
$_SESSION['operateid']=$operateid;

if(isset($action)) {
switch ($model) {
case "school":
include_once("schoolproperties.php");
break;
case "user":
include_once("userproperties.php");
break;
case "site":
include_once("siteproperties.php");
break;
default: include_once("welcome.php");
}
}
?>
</div>
</div>
</body>
</html>
...全文
80 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
shanzi1986 2012-08-28
  • 打赏
  • 举报
回复
学习一下3楼的方法
tony-杨 2009-11-19
  • 打赏
  • 举报
回复
iframe貌似用parent吧
bookmoth 2009-11-19
  • 打赏
  • 举报
回复
一定要iframe么?
试试这个index:

<html>
<frameset rows="15%,85%">
<frame src="top.php" name="top" scrolling="auto" height="15%" width="100%" frameborder="0" border="0" frameborder="no">
<frame src="main.php" name="main" scrolling="auto" height="85%" width="100%" frameborder="0" border="0" frameborder="no">
</frameset>
</html>
阿_布 2009-11-19
  • 打赏
  • 举报
回复
友情帮顶!

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧