JUMP.PHP<?php
class Jump_Controller extends Base_Controller {
public function __construct() {
parent::__construct();
}
public function index() {
$url = $this->input->get('url');
$this->assignData();
$this->output->set('url', $url);
$this->output->display('jump.html');
}
public function top() {
$this->assignData();
$this->output->display('jump-top.html');
}
}跳转时候,浏览器分成两栏,上面是原网站的LOGO和BANNER,下面是跳转的网站是不是把这段去掉
public function top() {
$this->assignData();
$this->output->display('jump-top.html');
}
但好像也没什么变化实例网站 www.yangyanb.com 上的推荐图集的那个杜蕾斯的广告,点击后跳到淘宝页面了,但只有一半,上面还是原网站的。
class Jump_Controller extends Base_Controller {
public function __construct() {
parent::__construct();
}
public function index() {
$url = $this->input->get('url');
$this->assignData();
$this->output->set('url', $url);
$this->output->display('jump.html');
}
public function top() {
$this->assignData();
$this->output->display('jump-top.html');
}
}跳转时候,浏览器分成两栏,上面是原网站的LOGO和BANNER,下面是跳转的网站是不是把这段去掉
public function top() {
$this->assignData();
$this->output->display('jump-top.html');
}
但好像也没什么变化实例网站 www.yangyanb.com 上的推荐图集的那个杜蕾斯的广告,点击后跳到淘宝页面了,但只有一半,上面还是原网站的。
你是通过输出抓取到的相关页面来实现“跳转”的吧?
淘宝页面是一个框架结构,你把它的 HTML 代码直接放在你的页面中时就会产生冲突。处理这个冲突的方式,对于不同的浏览器时不同的。所以看到的表现也不同如果你是想离开 www.yangyanb.com 进入淘宝
应在进入 index.php 后发 loction 头跳转。记住 header 后要有 exit如果你是想把对方的内容嵌入在你的页面中
应在你的页面中放一个 iframe 作为载体