Zend - The PHP Company




Miscellaneous

Add Code


External Frame  

Type: code fragment
Added by: goliche
Entered: 04/02/2001
Last modified: 02/12/2000
Rating: - (fewer than 3 votes)
Views: 5381
Whit this lines of code, you can link to external servers whit a frame of your site...


<?
//////////////////////////////////////////////////////////////////////////////
////////                       EDICION DE MARCOS                       ///////
//////////////////////////////////////////////////////////////////////////////
////      Version 1.0  Desarrollado por Jorge Alberto Becerra Jr.         ////
////           www.goliche.org  goliche@goliche.org                       ////
//////////////////////////////////////////////////////////////////////////////
/////////////////////  COMO FUNCIONA EL SCRIPT??  ////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//// 1�) Para utilizar el frame se hace lo siguiente :                    ////
//// 2�) sobre el url se escribe frame.php?x=frame&url=direccion del link ////
//////////////////////////////////////////////////////////////////////////////
?>
<?
switch($x){
case 
"frame":
?>
<html>

<head>
<title><? echo $title?></title>
</head>

<frameset rows="10%,*" border="0">
  <frame name="arriba" src="frame.php" scrolling="no">
  <frame name="main" src="<? echo $url?>">
  <noframes>
  <body>
  <p><? echo $noframe?></p>
  </body>
  </noframes>
</frameset>
</html>
<?
break;
}
?>


Usage Example


See the example


Rate This Script





Search



This Category All Categories