Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/10/2008, 15:19
Avatar de webelgrillo
webelgrillo
 
Fecha de Ingreso: marzo-2008
Mensajes: 142
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: Include Dentro de una Variable

Les pongo todo el codigo para qe me ayuden please.

Código HTML:
<!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=utf-8" />
<title>Una Pagina de Mi Dominio</title>
<style type="text/css">
<!--
#cat {
	position:relative;
	left:0px;
	top:0px;
	width:448px;
	height:108px;
	border: 1px solid #BFC4C7;
	background-color: #E3E8EE;
	visibility: visible;
	padding-top: 2px;
	padding-left: 2px;
}
.pest {
	height: 25px;
	width: 100px;
	border: 1px solid #BFC4C7;
	background-color: #C1D3E9;
	font-family: Verdana;
	font-size: 11px;
	padding-top: 6px;
	font-weight: bold;
}
.pest a {
    color: #444;
	text-decoration: none;
}
.pest a:hover {
	color: #444;
	text-decoration: none;
}
.fav {
	float: right;
	width: 248px;
}
.fav a{
	float: right;
	font-family: Arial;
	font-size: 9px;
	text-decoration: none;
	font-weight: bold;
	color: #003300;
	padding-right: 5px;
}
.fav a:hover {
	text-decoration: underline;	
}
-->
</style>
<script type="text/javascript">
<!--
function MM_setTextOfLayer(objId,x,newText) { //v9.0
  with (document) if (getElementById && ((obj=getElementById(objId))!=null))
    with (obj) innerHTML = unescape(newText);
}
//-->
</script>
</head>

<body>

<table width="400px" border="0" cellspacing="0" cellpadding="0">
  <tr>
<?php
$gene = 'generos.php'; 

?>
    <td width="100"><div align="center" class="pest"><a href="javascript:history.go(0)" onclick="MM_setTextOfLayer('cat','','<?php include($gene);?>')">Categorias</a></div></td>
    <td width="100"><div align="center" class="pest"><a href="javascript:void(0);" onclick="MM_setTextOfLayer('cat','','hola soy AYUDA')">Ayuda</a></div></td>
    <td width="248"><div class="fav"><a href="javascript:window.external.AddFavorite('http://www.dominio.com','dominio.com - Descargas gratis');"><img src="images/star.gif" width="22" height="20" border="0" align="absmiddle"> Favoritos</a></div></td>
  </tr>
  <tr>
    <td colspan="3"><div id="cat"><?php include($gene);?></div></td>
  </tr>
</table>


</body>
</html> 
el archivo gene.php solo contiene texto y un aimagen nada mas no hay codigo php lo que no quiero es que en la pestaña Categoria tambien aparezca el include no se como solucionarlo ayudenme porfa.