Algo así:
Código PHP:
<?php
if(isset($_GET['f'])){
//proxy:
echo '<base href="http://giss.tv:8000/" />';
echo file_get_contents('http://giss.tv:8000/');
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test</title>
<script>
function $(id){return document.getElementById(id);}
var guardar;
function buscar(p){
var ifr=$('ifra').contentDocument || $('ifra').contentWindow.document;
ifr.body.innerHTML=guardar;
var c=ifr.body.innerHTML;
var ini=c.indexOf(p);
var b=c.substring(0,ini);
var d=c.substr(ini+p.length);
ifr.body.innerHTML=b+'<span id="'+p+'" style="background-color: #CCC; color:#F00">'+p+'</span>'+d;
var offsetTrail = ifr.getElementById(p);
var offsetLeft = 0;
var offsetTop = 0;
while (offsetTrail) {
offsetLeft += offsetTrail.offsetLeft;
offsetTop += offsetTrail.offsetTop;
offsetTrail = offsetTrail.offsetParent;
}
if (navigator.userAgent.indexOf("Mac") != -1 && typeof ifr.body.leftMargin != "undefined" && navigator.appName=="Microsoft Internet Explorer" ) {
offsetLeft += parseInt(ifr.body.leftMargin);
offsetTop += parseInt(ifr.body.topMargin);
}
window.frames['ifra'].scrollTo(offsetLeft,offsetTop);
}
</script>
</head>
<body>
<iframe src="?f" scrolling="auto" height="350" width="750" marginheight="0" marginwidth="0" name="ifra" id="ifra" onload="$('buscador').disabled=0;ifr=$('ifra').contentDocument || $('ifra').contentWindow.document;guardar=ifr.body.innerHTML"></iframe>
<form id="form1" name="form1" method="post" action="" target="ifra">
Buscar: <input name="palabra" value="LaRadiola">
<input disabled="disabled" type="button" id="buscador" name="buscador" value="Buscar" onclick="buscar(palabra.value)">
</form>
</body>
</html>