|
En este script veremos como colocar un frame superior en los enlaces exteriores a nuestra web. Para ello, necesitamos tres páginas:
arriba.php
Esta es la página que se verá arriba de la web enlazada.
<html>
<head>
<title>Arriba.php</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="77%">
<div align="center"><font size="2" color="#000000"><b>Está visitando
un enlace fuera de Recursos-Web</b></font></div>
</td>
<td width="23%"><font size="2" color="#FFFFFF"><a href="http://www.recursos-web.com" target="_parent">Volver
a Recursos-Web</a></font></td>
</tr>
<tr>
<td width="77%">
<div align="center"> <font color="#FFFFFF">
<? echo '<font size="2">'.$url.' </font>';?>
</font></div>
</td>
<td width="23%"><a href="<? echo $url; ?>" target="_parent">Cerrar
marco</a></td>
</tr>
</table>
</body>
</html>
página.php
Esta es la página dónde está el enlace a una web.
<html>
<head>
<title>Enlace externo</title>
</head>
<body>
<p align="center"><A HREF="enlace.php?url=http://www.recursos-web.com">www.recursos-web.com</A> </p>
</body>
</html>
enlace.php
Esta es la página que contiene los dos frames.
<FRAMESET ROWS="100,*">
<FRAME NAME="arriba" SRC="arriba.php" MARGINWIDTH="10" MARGINHEIGHT="10" SCROLLING="no" FRAMEBORDER="0">
<FRAME NAME="abajo" SRC="<?php echo $url ?>" MARGINWIDTH="10" MARGINHEIGHT="10" SCROLLING="auto" FRAMEBORDER="0">
</FRAMESET>
pertenece a http://www.recursos-web.com
|