php中集中调用,在speedPHP框架下
<?php
class main extends spController
{
function index(){
$this->display("newhtml.html");
}
function top(){
$this->display("newhtml2.html");
}
function bottom(){
$this->display("newhtml3.html");
}
}
显示,src要存在,name可以没有
<html>
<head>
<title>test</title>
</head>
<frameset rows="100,*,100">
<frame src="top.html" name="top">
<frame src="main.html" name="main">
<frame src="bottom.html" name="bottom">
</frameset>
<body>
</body>
</html>
<?php
class main extends spController
{
function index(){
$this->display("newhtml.html");
}
function top(){
$this->display("newhtml2.html");
}
function bottom(){
$this->display("newhtml3.html");
}
}
显示,src要存在,name可以没有
<html>
<head>
<title>test</title>
</head>
<frameset rows="100,*,100">
<frame src="top.html" name="top">
<frame src="main.html" name="main">
<frame src="bottom.html" name="bottom">
</frameset>
<body>
</body>
</html>