
20/05/2003, 06:19
|
 | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 2 meses Puntos: 61 | |
Mira, he modificado un poco este codigo de Kaopectate a ver si te sirve: Código PHP: <html>
<head>
<script languaje="JavaScript">
var destino;
function valParam(url, prmName){
var prmUpper = prmName.toUpperCase();
var prmPosic = url.indexOf(prmUpper);
var sepPos;
if (prmPosic != -1){
var sepPos = url.indexOf("&", prmPosic);
if (sepPos != -1){
return url.substring(prmPosic + prmUpper.length + 1, sepPos);
} else {
return url.substring(prmPosic + prmUpper.length + 1, url.length);
}
} else {
return "";
}
}
function getParameters(){
var remplaza = /+/gi;
var url = window.location.href;
var variable;
url = unescape(url);
url = url.replace(remplaza, " ");
url = url.toUpperCase();
destino = valParam(url, "ruta");
}
</script>
</head>
<body><frameset cols="150,*">
<frame name="menu" src="3.html" scrolling="auto" frameborder="0" noresize>
<script language="JavaScript">
getParameters();
document.write("<frame name="header" scrolling="no" noresize src="'+destino+'">
</script>
</frameset>
</body>
</html>
la forma de ponerlo es
frames.html?ruta=http://www.ya.com
Dime si te funciona!!
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |