cambio automático de navegación página
- SB
- Moderator


- Registrado: Nov 16, 2004
- Mensajes: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
¿Es posible el uso de código PHP similar al siguiente para que cada página de recuperar algunos datos de una hoja de estilo en cascada que se utiliza para cambiar el color de fondo de la barra de navegación web?
Si es posible, es posible que alguien me informe sobre cómo iba a ir para lograrlo?
Gracias
Código: [ Select ]
$page_handle = ltrim($_SERVER["PHP_SELF"],'/');
$page_handle = rtrim($page_handle,'.php');
$title_array = array(
'index' => 'Index',
'contact' => 'contact',
'guestbook' => 'guestbook',
'anotherpage1' => 'another1',
'anotherpage2' => 'another2',
);
foreach ( $title_array as $a => $b ) {
if ( $page_handle == $a) {
$page_title = "Welcome!"; }
}
}
if ( !isset($page_title) ) { $page_title = "Welcome!"; }
$page_handle = rtrim($page_handle,'.php');
$title_array = array(
'index' => 'Index',
'contact' => 'contact',
'guestbook' => 'guestbook',
'anotherpage1' => 'another1',
'anotherpage2' => 'another2',
);
foreach ( $title_array as $a => $b ) {
if ( $page_handle == $a) {
$page_title = "Welcome!"; }
}
}
if ( !isset($page_title) ) { $page_title = "Welcome!"; }
- $page_handle = ltrim($_SERVER["PHP_SELF"],'/');
- $page_handle = rtrim($page_handle,'.php');
- $title_array = array(
- 'index' => 'Index',
- 'contact' => 'contact',
- 'guestbook' => 'guestbook',
- 'anotherpage1' => 'another1',
- 'anotherpage2' => 'another2',
- );
- foreach ( $title_array as $a => $b ) {
- if ( $page_handle == $a) {
- $page_title = "Welcome!"; }
- }
- }
- if ( !isset($page_title) ) { $page_title = "Welcome!"; }
Si es posible, es posible que alguien me informe sobre cómo iba a ir para lograrlo?
Gracias
- Anonymous
- Bot


- Registrado: 25 Feb 2008
- Mensajes: ?
- Loc: Ozzuland
- Status: Online
Marzo 8th, 2010, 11:17 am
- SpooF
- ٩๏̯͡๏۶


- Registrado: May 22, 2004
- Mensajes: 3415
- Loc: Richland, WA
- Status: Offline
- SB
- Moderator


- Registrado: Nov 16, 2004
- Mensajes: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
No estoy viendo realmente ningún cambio en eso, pero creo que me entiendes.
El sitio i actualmente estoy trabajando en -- http://www.campbell-james.co.uk/new/template.php - Se construye donde tengo el código PHP, incluyendo 2 páginas en la página de cada uno. La primera página se acumula la primera mitad del código de sitio y la segunda página se acumula la segunda mitad. Pensé que esto hacía mucho sentido para crear un sitio que a la larga tendrá una gran cantidad de páginas.
Debido a la forma en que el sitio ha sido diseñado, la intención era que el área de navegación azul para cambiar el color en cada página se carga arriba. Eso es lo que yo esperaba hacer y pensé que sería posible hacer uso de código similar a la que he publicado anteriormente.
El sitio i actualmente estoy trabajando en -- http://www.campbell-james.co.uk/new/template.php - Se construye donde tengo el código PHP, incluyendo 2 páginas en la página de cada uno. La primera página se acumula la primera mitad del código de sitio y la segunda página se acumula la segunda mitad. Pensé que esto hacía mucho sentido para crear un sitio que a la larga tendrá una gran cantidad de páginas.
Debido a la forma en que el sitio ha sido diseñado, la intención era que el área de navegación azul para cambiar el color en cada página se carga arriba. Eso es lo que yo esperaba hacer y pensé que sería posible hacer uso de código similar a la que he publicado anteriormente.
- SB
- Moderator


- Registrado: Nov 16, 2004
- Mensajes: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
- SpooF
- ٩๏̯͡๏۶


- Registrado: May 22, 2004
- Mensajes: 3415
- Loc: Richland, WA
- Status: Offline
Bueno, por lo que desea la zona azul para cambiar de color dependiendo de qué página es la opinión de ser. ¿Correcto?
El código actual está en el camino correcto. Lo que yo sugiero es crear una matriz de sus páginas.
Entonces sería crear clases de estilo o las identificaciones, si para cada página. Usted podría incluso sólo usar colores.
El código actual está en el camino correcto. Lo que yo sugiero es crear una matriz de sus páginas.
PHP Código: [ Select ]
$page_name = basename($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
$myPages = array(
'pageName'=>'styleClass',
'pageName'=>'styleClass',
'pageName'=>'styleClass',
'pageName'=>'styleClass'
);
$use_style = $myPages[$page_name];
$myPages = array(
'pageName'=>'styleClass',
'pageName'=>'styleClass',
'pageName'=>'styleClass',
'pageName'=>'styleClass'
);
$use_style = $myPages[$page_name];
- $page_name = basename($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
- $myPages = array(
- 'pageName'=>'styleClass',
- 'pageName'=>'styleClass',
- 'pageName'=>'styleClass',
- 'pageName'=>'styleClass'
- );
- $use_style = $myPages[$page_name];
Entonces sería crear clases de estilo o las identificaciones, si para cada página. Usted podría incluso sólo usar colores.
Código: [ Select ]
'pageName'=>'blue',
CSS Código: [ Select ]
.blue {
background-color: #0000FF;
}
background-color: #0000FF;
}
- .blue {
- background-color: #0000FF;
- }
#define NULL (::rand() % 2)
- SB
- Moderator


- Registrado: Nov 16, 2004
- Mensajes: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
- SpooF
- ٩๏̯͡๏۶


- Registrado: May 22, 2004
- Mensajes: 3415
- Loc: Richland, WA
- Status: Offline
Para su menú, me gustaría añadir una clase a la misma.
Use ese estilo para aplicar el color.
Para limitar el estilo de trabajar únicamente con el menú:
PHP Código: [ Select ]
<div id="menu" class="<?=$use_style?>">
Use ese estilo para aplicar el color.
Para limitar el estilo de trabajar únicamente con el menú:
CSS Código: [ Select ]
div#menu.color1
{
background-color:#f00;
}
{
background-color:#f00;
}
- div#menu.color1
- {
- background-color:#f00;
- }
#define NULL (::rand() % 2)
- SpooF
- ٩๏̯͡๏۶


- Registrado: May 22, 2004
- Mensajes: 3415
- Loc: Richland, WA
- Status: Offline
Aquí hay un ejemplo rápido que hice.
Una cosa es que tienes que quitar la background-color atributo de su #menú la clase no sobre el derecho de ella.
Observe también he cambiado la manera puedo obtener el nombre de archivo.
Código: [ Select ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>James Campbell Architects - Welcome!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
<meta name="description" content="www.campbell-james.co.uk - James Campbell Architects" >
<meta name="keywords" content="James Campbell Architects, James, Campbell, Architects, Aberdeen, Scotland, Inverurie, Environmental" >
<meta name="robots" content="index,follow" >
<link rel="shortcut icon" href="http://www.campbell-james.co.uk/new/images/favicon.ico" >
<link rel="stylesheet" href="http://www.campbell-james.co.uk/new/style.css" >
<style type="text/css">
div#menu.style1
{
background-color:#f00;
}
div#menu.style2
{
background-color:#0f0;
}
div#menu.style3
{
background-color:#00f;
}
</style>
</head>
<?php
$page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
$page_name = $page_name['filename'];
$myPages = array(
'pageName1'=>'style1',
'pageName2'=>'style2',
'pageName3'=>'style3'
);
$use_style = $myPages[$page_name];
?>
<body>
<div id="menu" class="<?=$use_style?>">
<ul id="qm0" class="qmmc">
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
</ul>
</div>
</body>
</html>
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>James Campbell Architects - Welcome!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
<meta name="description" content="www.campbell-james.co.uk - James Campbell Architects" >
<meta name="keywords" content="James Campbell Architects, James, Campbell, Architects, Aberdeen, Scotland, Inverurie, Environmental" >
<meta name="robots" content="index,follow" >
<link rel="shortcut icon" href="http://www.campbell-james.co.uk/new/images/favicon.ico" >
<link rel="stylesheet" href="http://www.campbell-james.co.uk/new/style.css" >
<style type="text/css">
div#menu.style1
{
background-color:#f00;
}
div#menu.style2
{
background-color:#0f0;
}
div#menu.style3
{
background-color:#00f;
}
</style>
</head>
<?php
$page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
$page_name = $page_name['filename'];
$myPages = array(
'pageName1'=>'style1',
'pageName2'=>'style2',
'pageName3'=>'style3'
);
$use_style = $myPages[$page_name];
?>
<body>
<div id="menu" class="<?=$use_style?>">
<ul id="qm0" class="qmmc">
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
<li><a class="qmparent" href="index.php">Home</a></li>
</ul>
</div>
</body>
</html>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>James Campbell Architects - Welcome!</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
- <meta name="description" content="www.campbell-james.co.uk - James Campbell Architects" >
- <meta name="keywords" content="James Campbell Architects, James, Campbell, Architects, Aberdeen, Scotland, Inverurie, Environmental" >
- <meta name="robots" content="index,follow" >
- <link rel="shortcut icon" href="http://www.campbell-james.co.uk/new/images/favicon.ico" >
- <link rel="stylesheet" href="http://www.campbell-james.co.uk/new/style.css" >
- <style type="text/css">
- div#menu.style1
- {
- background-color:#f00;
- }
- div#menu.style2
- {
- background-color:#0f0;
- }
- div#menu.style3
- {
- background-color:#00f;
- }
- </style>
- </head>
- <?php
- $page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
- $page_name = $page_name['filename'];
- $myPages = array(
- 'pageName1'=>'style1',
- 'pageName2'=>'style2',
- 'pageName3'=>'style3'
- );
- $use_style = $myPages[$page_name];
- ?>
- <body>
- <div id="menu" class="<?=$use_style?>">
- <ul id="qm0" class="qmmc">
- <li><a class="qmparent" href="index.php">Home</a></li>
- <li><a class="qmparent" href="index.php">Home</a></li>
- <li><a class="qmparent" href="index.php">Home</a></li>
- <li><a class="qmparent" href="index.php">Home</a></li>
- <li><a class="qmparent" href="index.php">Home</a></li>
- <li><a class="qmparent" href="index.php">Home</a></li>
- <li><a class="qmparent" href="index.php">Home</a></li>
- </ul>
- </div>
- </body>
- </html>
Una cosa es que tienes que quitar la background-color atributo de su #menú la clase no sobre el derecho de ella.
Observe también he cambiado la manera puedo obtener el nombre de archivo.
PHP Código: [ Select ]
$page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
$page_name = $page_name['filename'];
$page_name = $page_name['filename'];
- $page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
- $page_name = $page_name['filename'];
#define NULL (::rand() % 2)
- SB
- Moderator


- Registrado: Nov 16, 2004
- Mensajes: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
- SB
- Moderator


- Registrado: Nov 16, 2004
- Mensajes: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
Está bien, aquí es lo que Ive consiguió...
En mi página index.php. Debajo de eso en la navegación que han...
En el i CSS han...
Me quité el color de fondo en la parte del menú.
Parece como si la página PHP no reconoce el código CSS de la hoja CSS que tiene. El código actual de CSS se hace en una página de CSS independiente.
No del todo seguro de lo que realmente anda mal aquí como lo he hecho everthing que usted menciona.
Código: [ Select ]
$page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
$page_name = $page_name['filename'];
$myPages = array(
'new/index'=>'blue',
'pageName2'=>'style2',
'pageName3'=>'style3'
);
$use_style = $myPages[$page_name];
$page_name = $page_name['filename'];
$myPages = array(
'new/index'=>'blue',
'pageName2'=>'style2',
'pageName3'=>'style3'
);
$use_style = $myPages[$page_name];
- $page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
- $page_name = $page_name['filename'];
- $myPages = array(
- 'new/index'=>'blue',
- 'pageName2'=>'style2',
- 'pageName3'=>'style3'
- );
- $use_style = $myPages[$page_name];
En mi página index.php. Debajo de eso en la navegación que han...
Código: [ Select ]
<div id="menu" class="<?=$use_style?>">
<ul id="qm0" class="qmmc">
<li><a class="qmparent" href="index.php">Home</a> <br />
<li><a class="qmparent" href="javascript:void(0)">Architectural Services</a>
<ul>
<li><a href="/community.php">Community</a></li>
<li><a href="residential.php">Residential</a></li>
<li><a href="social.php">Social Housing</a></li>
<li><a href="industrial.php">Industrial</a></li>
<li><a href="leisure.php">Leisure</a></li>
<li><a href="commercial.php">Commercial</a></li>
<li><a href="education.php">Education</a></li>
<li><a href="health.php">Health</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Environmental Services</a>
<ul>
<li><a href="energydesign.php">Energy Design</a></li>
<li><a href="nher.php">NHER, SAP</a></li>
<li><a href="epc.php">EPCs, OCDEA</a></li>
<li><a href="carbontrust.php">Carbon Trust</a></li>
<li><a href="designadvice.php">Design Advice</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Other Services</a>
<ul>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Resources & Links</a>
<ul>
<li><a href="http://www.architecture.com" target="_new">RIBA</a></li>
<li><a href="http://www.rias.org.uk" target="_new">RIAS</a></li>
<li><a href="http://www.carbontrust.co.uk" target="_new">Carbon Trust</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Contact Us</a>
<li class="qmclear"></li>
</ul>
<ul id="qm0" class="qmmc">
<li><a class="qmparent" href="index.php">Home</a> <br />
<li><a class="qmparent" href="javascript:void(0)">Architectural Services</a>
<ul>
<li><a href="/community.php">Community</a></li>
<li><a href="residential.php">Residential</a></li>
<li><a href="social.php">Social Housing</a></li>
<li><a href="industrial.php">Industrial</a></li>
<li><a href="leisure.php">Leisure</a></li>
<li><a href="commercial.php">Commercial</a></li>
<li><a href="education.php">Education</a></li>
<li><a href="health.php">Health</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Environmental Services</a>
<ul>
<li><a href="energydesign.php">Energy Design</a></li>
<li><a href="nher.php">NHER, SAP</a></li>
<li><a href="epc.php">EPCs, OCDEA</a></li>
<li><a href="carbontrust.php">Carbon Trust</a></li>
<li><a href="designadvice.php">Design Advice</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Other Services</a>
<ul>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Resources & Links</a>
<ul>
<li><a href="http://www.architecture.com" target="_new">RIBA</a></li>
<li><a href="http://www.rias.org.uk" target="_new">RIAS</a></li>
<li><a href="http://www.carbontrust.co.uk" target="_new">Carbon Trust</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Contact Us</a>
<li class="qmclear"></li>
</ul>
- <div id="menu" class="<?=$use_style?>">
- <ul id="qm0" class="qmmc">
- <li><a class="qmparent" href="index.php">Home</a> <br />
- <li><a class="qmparent" href="javascript:void(0)">Architectural Services</a>
- <ul>
- <li><a href="/community.php">Community</a></li>
- <li><a href="residential.php">Residential</a></li>
- <li><a href="social.php">Social Housing</a></li>
- <li><a href="industrial.php">Industrial</a></li>
- <li><a href="leisure.php">Leisure</a></li>
- <li><a href="commercial.php">Commercial</a></li>
- <li><a href="education.php">Education</a></li>
- <li><a href="health.php">Health</a></li>
- </ul>
- </li>
- <br />
- <li><a class="qmparent" href="javascript:void(0)">Environmental Services</a>
- <ul>
- <li><a href="energydesign.php">Energy Design</a></li>
- <li><a href="nher.php">NHER, SAP</a></li>
- <li><a href="epc.php">EPCs, OCDEA</a></li>
- <li><a href="carbontrust.php">Carbon Trust</a></li>
- <li><a href="designadvice.php">Design Advice</a></li>
- </ul>
- </li>
- <br />
- <li><a class="qmparent" href="javascript:void(0)">Other Services</a>
- <ul>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- </ul>
- </li>
- <br />
- <li><a class="qmparent" href="javascript:void(0)">Resources & Links</a>
- <ul>
- <li><a href="http://www.architecture.com" target="_new">RIBA</a></li>
- <li><a href="http://www.rias.org.uk" target="_new">RIAS</a></li>
- <li><a href="http://www.carbontrust.co.uk" target="_new">Carbon Trust</a></li>
- </ul>
- </li>
- <br />
- <li><a class="qmparent" href="javascript:void(0)">Contact Us</a>
- <li class="qmclear"></li>
- </ul>
En el i CSS han...
Código: [ Select ]
div#menu.blue
{
background-color:#000000;
}
div#menu.style2
{
background-color:#0f0;
}
div#menu.style3
{
background-color:#00f;
}
{
background-color:#000000;
}
div#menu.style2
{
background-color:#0f0;
}
div#menu.style3
{
background-color:#00f;
}
- div#menu.blue
- {
- background-color:#000000;
- }
- div#menu.style2
- {
- background-color:#0f0;
- }
- div#menu.style3
- {
- background-color:#00f;
- }
Me quité el color de fondo en la parte del menú.
Parece como si la página PHP no reconoce el código CSS de la hoja CSS que tiene. El código actual de CSS se hace en una página de CSS independiente.
No del todo seguro de lo que realmente anda mal aquí como lo he hecho everthing que usted menciona.
- SpooF
- ٩๏̯͡๏۶


- Registrado: May 22, 2004
- Mensajes: 3415
- Loc: Richland, WA
- Status: Offline
En primer lugar, comprobar si $ page_name es lo que tu espera que sea. Añade un eco o de impresión para ver lo que sea establecido. También puede simplemente comprobar la fuente y ver qué nombre del estilo se está imprimiendo para la clase. Si su impresión de la clase correcta, entonces su problema con el CSS.
Solucionar problemas de la CSS que eliminaría el div #menú y hacer que la clase mundial.
Solucionar problemas de la CSS que eliminaría el div #menú y hacer que la clase mundial.
#define NULL (::rand() % 2)
- SB
- Moderator


- Registrado: Nov 16, 2004
- Mensajes: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
Estoy bien y verdaderamente perdido aquí. Manera de salir de mi profundidad.
Estado estudiando este problema por un corto tiempo de hoy y que no tengan suerte en todo.
Su ayuda ha sido grande falsos, por lo que agradezco mucho. Tengo la sensación de que es algo que tiene que ver con la forma en que el sitio se ha construido, aunque no puedo averiguar por qué. Se me está acabando de pelo a sacar!
- SpooF
- ٩๏̯͡๏۶


- Registrado: May 22, 2004
- Mensajes: 3415
- Loc: Richland, WA
- Status: Offline
Su servidor no podría apoyar el código PHP corto. Miré a su fuente y algunos de los PHP no está siendo reconocido.
Puede que tenga que hacer algo como esto:
Código: [ Select ]
<div id="image">
<div align="right"></div>
</div>
<div id="menu" class="<?=$use_style?>">
<ul id="qm0" class="qmmc">
<div align="right"></div>
</div>
<div id="menu" class="<?=$use_style?>">
<ul id="qm0" class="qmmc">
- <div id="image">
- <div align="right"></div>
- </div>
- <div id="menu" class="<?=$use_style?>">
- <ul id="qm0" class="qmmc">
Puede que tenga que hacer algo como esto:
Código: [ Select ]
<div id="image">
<div align="right"></div>
</div>
<div id="menu" class="<?php echo $use_style; ?>">
<ul id="qm0" class="qmmc">
<div align="right"></div>
</div>
<div id="menu" class="<?php echo $use_style; ?>">
<ul id="qm0" class="qmmc">
- <div id="image">
- <div align="right"></div>
- </div>
- <div id="menu" class="<?php echo $use_style; ?>">
- <ul id="qm0" class="qmmc">
#define NULL (::rand() % 2)
- SB
- Moderator


- Registrado: Nov 16, 2004
- Mensajes: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
Gracias. Todavía no hay suerte en todo.
Yo estaba un poco reacio a publicar el código completo, pero si hay alguna forma de que alguien pueda averiguar qué puede estar causando el problema, entonces yo estaría muy agradecido.
Como dije el sitio está construido usando 2 documentos principales para construir el diseño general del sitio. Esta es la primera parte de la página que he cambiado para fines Ozzu sólo a "include1"
Las otras páginas no parecen ser relevantes para el problema en cuestión. Pensé que añadir el CSS completo, aunque dudo que añade mucho más a lo que ya he publicado...
Si alguien sería capaz de descubrir cualquier cosa que pueda ayudar a mí entonces estaría muy agradecido.
Gracias de nuevo parodia.
Yo estaba un poco reacio a publicar el código completo, pero si hay alguna forma de que alguien pueda averiguar qué puede estar causando el problema, entonces yo estaría muy agradecido.
Como dije el sitio está construido usando 2 documentos principales para construir el diseño general del sitio. Esta es la primera parte de la página que he cambiado para fines Ozzu sólo a "include1"
Código: [ Select ]
<?php
// Prevent users from looking at this include file directly
if ( strpos($_SERVER["PHP_SELF"],"include1.php") !== false ) {
header ('Location:index.php');
exit();
}
else {
// Automate page titles
$page_handle = ltrim($_SERVER["PHP_SELF"],'/');
$page_handle = rtrim($page_handle,'.php');
$title_array = array(
'new/index' => 'blablabla',
'contact' => 'contact',
'environmental' => 'environmental',
'anotherpage1' => 'another1',
'anotherpage2' => 'another2',
);
foreach ( $title_array as $a => $b ) {
if ( $page_handle == $a) {
$page_title = $b;
}
}
if ( !isset($page_title) ) { $page_title = "Welcome!"; }
// The following code determines what colour the navigation bar backdrop is depending on each page.
$page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
$page_name = $page_name['filename'];
$myPages = array(
'new/index'=>'color1',
'pageName2'=>'style2',
'pageName3'=>'style3'
);
$use_style = $myPages[$page_name];
// Init the date
$gmttime = time() + (5 * 60 * 60);
echo ('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>James Campbell Architects - '. $page_title .'</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
<meta name="description" content="www.campbell-james.co.uk - James Campbell Architects" >
<meta name="keywords" content="James Campbell Architects, James, Campbell, Architects, Aberdeen, Scotland, Inverurie, Environmental" >
<meta name="robots" content="index,follow" >
<link rel="shortcut icon" href="http://www.campbell-james.co.uk/new/images/favicon.ico" >
<link rel="stylesheet" href="style.css" >
<style type="text/css">
.color1
{
background-color:#f00;
}
.color2
{
background-color:#0f0;
}
.color3
{
background-color:#00f;
}
</style>
</head>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-412299-3";
urchinTracker();
</script>
<script type="text/javascript">
<!--
function delayer(){
window.location = "../index.php"
}
//-->
</script>
<body>
<div id="page_container">
<div id="banner">
<p> </p>
<p> <img src="title3.png" width="1060" height="100" align="bottom" /></p>
</div>
<div id="image">
<div align="right"></div>
</div>
<div id="menu" class="<?php echo $use_style; ?>">
<ul id="qm0" class="qmmc">
<li><a class="qmparent" href="index.php">Home</a> <br />
<li><a class="qmparent" href="javascript:void(0)">Architectural Services</a>
<ul>
<li><a href="/community.php">Community</a></li>
<li><a href="residential.php">Residential</a></li>
<li><a href="social.php">Social Housing</a></li>
<li><a href="industrial.php">Industrial</a></li>
<li><a href="leisure.php">Leisure</a></li>
<li><a href="commercial.php">Commercial</a></li>
<li><a href="education.php">Education</a></li>
<li><a href="health.php">Health</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Environmental Services</a>
<ul>
<li><a href="energydesign.php">Energy Design</a></li>
<li><a href="nher.php">NHER, SAP</a></li>
<li><a href="epc.php">EPCs, OCDEA</a></li>
<li><a href="carbontrust.php">Carbon Trust</a></li>
<li><a href="designadvice.php">Design Advice</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Other Services</a>
<ul>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Resources & Links</a>
<ul>
<li><a href="http://www.architecture.com" target="_new">RIBA</a></li>
<li><a href="http://www.rias.org.uk" target="_new">RIAS</a></li>
<li><a href="http://www.carbontrust.co.uk" target="_new">Carbon Trust</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Contact Us</a>
<li class="qmclear"></li>
</ul>
<p><script type="text/javascript">qm_create(0,true,0,500,false,false,false,false,false);</script>
</p>
</div>
<div id="quote">
<div align="center">
<p><img src="quotation.jpg" align="top" /></p>
</div>
</div>
<div id="content">
');
}
?>
// Prevent users from looking at this include file directly
if ( strpos($_SERVER["PHP_SELF"],"include1.php") !== false ) {
header ('Location:index.php');
exit();
}
else {
// Automate page titles
$page_handle = ltrim($_SERVER["PHP_SELF"],'/');
$page_handle = rtrim($page_handle,'.php');
$title_array = array(
'new/index' => 'blablabla',
'contact' => 'contact',
'environmental' => 'environmental',
'anotherpage1' => 'another1',
'anotherpage2' => 'another2',
);
foreach ( $title_array as $a => $b ) {
if ( $page_handle == $a) {
$page_title = $b;
}
}
if ( !isset($page_title) ) { $page_title = "Welcome!"; }
// The following code determines what colour the navigation bar backdrop is depending on each page.
$page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
$page_name = $page_name['filename'];
$myPages = array(
'new/index'=>'color1',
'pageName2'=>'style2',
'pageName3'=>'style3'
);
$use_style = $myPages[$page_name];
// Init the date
$gmttime = time() + (5 * 60 * 60);
echo ('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>James Campbell Architects - '. $page_title .'</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
<meta name="description" content="www.campbell-james.co.uk - James Campbell Architects" >
<meta name="keywords" content="James Campbell Architects, James, Campbell, Architects, Aberdeen, Scotland, Inverurie, Environmental" >
<meta name="robots" content="index,follow" >
<link rel="shortcut icon" href="http://www.campbell-james.co.uk/new/images/favicon.ico" >
<link rel="stylesheet" href="style.css" >
<style type="text/css">
.color1
{
background-color:#f00;
}
.color2
{
background-color:#0f0;
}
.color3
{
background-color:#00f;
}
</style>
</head>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-412299-3";
urchinTracker();
</script>
<script type="text/javascript">
<!--
function delayer(){
window.location = "../index.php"
}
//-->
</script>
<body>
<div id="page_container">
<div id="banner">
<p> </p>
<p> <img src="title3.png" width="1060" height="100" align="bottom" /></p>
</div>
<div id="image">
<div align="right"></div>
</div>
<div id="menu" class="<?php echo $use_style; ?>">
<ul id="qm0" class="qmmc">
<li><a class="qmparent" href="index.php">Home</a> <br />
<li><a class="qmparent" href="javascript:void(0)">Architectural Services</a>
<ul>
<li><a href="/community.php">Community</a></li>
<li><a href="residential.php">Residential</a></li>
<li><a href="social.php">Social Housing</a></li>
<li><a href="industrial.php">Industrial</a></li>
<li><a href="leisure.php">Leisure</a></li>
<li><a href="commercial.php">Commercial</a></li>
<li><a href="education.php">Education</a></li>
<li><a href="health.php">Health</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Environmental Services</a>
<ul>
<li><a href="energydesign.php">Energy Design</a></li>
<li><a href="nher.php">NHER, SAP</a></li>
<li><a href="epc.php">EPCs, OCDEA</a></li>
<li><a href="carbontrust.php">Carbon Trust</a></li>
<li><a href="designadvice.php">Design Advice</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Other Services</a>
<ul>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
<li><a href="javascript:void(0)">Sub menu</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Resources & Links</a>
<ul>
<li><a href="http://www.architecture.com" target="_new">RIBA</a></li>
<li><a href="http://www.rias.org.uk" target="_new">RIAS</a></li>
<li><a href="http://www.carbontrust.co.uk" target="_new">Carbon Trust</a></li>
</ul>
</li>
<br />
<li><a class="qmparent" href="javascript:void(0)">Contact Us</a>
<li class="qmclear"></li>
</ul>
<p><script type="text/javascript">qm_create(0,true,0,500,false,false,false,false,false);</script>
</p>
</div>
<div id="quote">
<div align="center">
<p><img src="quotation.jpg" align="top" /></p>
</div>
</div>
<div id="content">
');
}
?>
- <?php
- // Prevent users from looking at this include file directly
- if ( strpos($_SERVER["PHP_SELF"],"include1.php") !== false ) {
- header ('Location:index.php');
- exit();
- }
- else {
- // Automate page titles
- $page_handle = ltrim($_SERVER["PHP_SELF"],'/');
- $page_handle = rtrim($page_handle,'.php');
- $title_array = array(
- 'new/index' => 'blablabla',
- 'contact' => 'contact',
- 'environmental' => 'environmental',
- 'anotherpage1' => 'another1',
- 'anotherpage2' => 'another2',
- );
- foreach ( $title_array as $a => $b ) {
- if ( $page_handle == $a) {
- $page_title = $b;
- }
- }
- if ( !isset($page_title) ) { $page_title = "Welcome!"; }
- // The following code determines what colour the navigation bar backdrop is depending on each page.
- $page_name = pathinfo($_SERVER['PHP_SELF']); // This will return the PHP file name of the current file
- $page_name = $page_name['filename'];
- $myPages = array(
- 'new/index'=>'color1',
- 'pageName2'=>'style2',
- 'pageName3'=>'style3'
- );
- $use_style = $myPages[$page_name];
- // Init the date
- $gmttime = time() + (5 * 60 * 60);
- echo ('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title>James Campbell Architects - '. $page_title .'</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" >
- <meta name="description" content="www.campbell-james.co.uk - James Campbell Architects" >
- <meta name="keywords" content="James Campbell Architects, James, Campbell, Architects, Aberdeen, Scotland, Inverurie, Environmental" >
- <meta name="robots" content="index,follow" >
- <link rel="shortcut icon" href="http://www.campbell-james.co.uk/new/images/favicon.ico" >
- <link rel="stylesheet" href="style.css" >
- <style type="text/css">
- .color1
- {
- background-color:#f00;
- }
- .color2
- {
- background-color:#0f0;
- }
- .color3
- {
- background-color:#00f;
- }
- </style>
- </head>
- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
- </script>
- <script type="text/javascript">
- _uacct = "UA-412299-3";
- urchinTracker();
- </script>
- <script type="text/javascript">
- <!--
- function delayer(){
- window.location = "../index.php"
- }
- //-->
- </script>
- <body>
- <div id="page_container">
- <div id="banner">
- <p> </p>
- <p> <img src="title3.png" width="1060" height="100" align="bottom" /></p>
- </div>
- <div id="image">
- <div align="right"></div>
- </div>
- <div id="menu" class="<?php echo $use_style; ?>">
- <ul id="qm0" class="qmmc">
- <li><a class="qmparent" href="index.php">Home</a> <br />
- <li><a class="qmparent" href="javascript:void(0)">Architectural Services</a>
- <ul>
- <li><a href="/community.php">Community</a></li>
- <li><a href="residential.php">Residential</a></li>
- <li><a href="social.php">Social Housing</a></li>
- <li><a href="industrial.php">Industrial</a></li>
- <li><a href="leisure.php">Leisure</a></li>
- <li><a href="commercial.php">Commercial</a></li>
- <li><a href="education.php">Education</a></li>
- <li><a href="health.php">Health</a></li>
- </ul>
- </li>
- <br />
- <li><a class="qmparent" href="javascript:void(0)">Environmental Services</a>
- <ul>
- <li><a href="energydesign.php">Energy Design</a></li>
- <li><a href="nher.php">NHER, SAP</a></li>
- <li><a href="epc.php">EPCs, OCDEA</a></li>
- <li><a href="carbontrust.php">Carbon Trust</a></li>
- <li><a href="designadvice.php">Design Advice</a></li>
- </ul>
- </li>
- <br />
- <li><a class="qmparent" href="javascript:void(0)">Other Services</a>
- <ul>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- <li><a href="javascript:void(0)">Sub menu</a></li>
- </ul>
- </li>
- <br />
- <li><a class="qmparent" href="javascript:void(0)">Resources & Links</a>
- <ul>
- <li><a href="http://www.architecture.com" target="_new">RIBA</a></li>
- <li><a href="http://www.rias.org.uk" target="_new">RIAS</a></li>
- <li><a href="http://www.carbontrust.co.uk" target="_new">Carbon Trust</a></li>
- </ul>
- </li>
- <br />
- <li><a class="qmparent" href="javascript:void(0)">Contact Us</a>
- <li class="qmclear"></li>
- </ul>
- <p><script type="text/javascript">qm_create(0,true,0,500,false,false,false,false,false);</script>
- </p>
- </div>
- <div id="quote">
- <div align="center">
- <p><img src="quotation.jpg" align="top" /></p>
- </div>
- </div>
- <div id="content">
- ');
- }
- ?>
Las otras páginas no parecen ser relevantes para el problema en cuestión. Pensé que añadir el CSS completo, aunque dudo que añade mucho más a lo que ya he publicado...
Código: [ Select ]
.qmmc .qmdivider{display:block;font-size:1px;border-width:0px;border-style:solid;position:relative;z-index:1;}.qmmc .qmdividery{float:left;width:0px;}.qmmc .qmtitle{display:block;cursor:default;white-space:nowrap;position:relative;z-index:1;}.qmclear {font-size:1px;height:0px;width:0px;clear:left;line-height:0px;display:block;float:none !important;}.qmmc {position:relative;zoom:1;z-index:10;}.qmmc a, .qmmc li {float:left;display:block;white-space:nowrap;position:relative;z-index:1;}.qmmc div a, .qmmc ul a, .qmmc ul li {float:none;}.qmsh div a {float:left;}.qmmc div{visibility:hidden;position:absolute;}.qmmc li {z-index:auto;}.qmmc ul {left:-10000px;position:absolute;z-index:10;}.qmmc, .qmmc ul {list-style:none;padding:0px;margin:0px;}.qmmc li a {float:none}.qmmc li:hover>ul{left:auto;}#qm0 li {float:none;}#qm0 li:hover>ul{top:0px;left:100%;}
#qm0
{
width:160px;
height: 302px;
padding:0px 20px;
margin-top:20px;
background-color:transparent;
border-width:0px;
border-style:solid;
border-color:#006699;
}
#qm0 a
{
padding:3px 20px 3px 3px;
background-color:transparent;
color:#aaaaaa;
font-family:Arial;
font-size:12px;
text-decoration:none;
border-width:0px 0px 1px;
border-style:solid;
border-color:#aaaaaa;
}
#qm0 a:hover
{
color:#ffffff;
border-color:#fff;
}
body #qm0 .qmactive, body #qm0 .qmactive:hover
{
color:#ffffff;
border-color:#006699;
}
#qm0 div, #qm0 ul
{
padding:5px;
background-color:transparent;
border-width:0px;
border-style:solid;
border-color:#fff;
}
#qm0 div a, #qm0 ul a
{
padding:3px 20px 3px 5px;
color: #cccccc;
font-size:12px;
border-width:0px;
border-color:#fff;
}
#qm0 div a:hover, #qm0 ul a:hover
{
color:#fff;
text-decoration:underline;
}
body #qm0 div .qmactive, body #qm0 div .qmactive:hover
{
color:#006699;
text-decoration:underline;
}
body {
background-color: #fff;
font-family:Arial, Helvetica, sans-serif;
font-size:16px;
padding:0;
margin:0;
}
div{
margin:0;
padding:0;
/*width: 1060px;*/
padding-right: 0px;
}
h1{margin:0;padding:0;}
h2{margin:0;padding:0;}
h3{margin:0;padding:0;}
p{
margin:0;
padding:0;
}
ul{margin:0;padding:0;}
li{list-style-type:none;}
#page_container{
width:1060px;
margin:0 auto;
}
#banner{
background-color: #000;
background-image: url(images/bannergrad.jpg);
background-repeat: repeat-x;
height:125px;
padding-left: 0px;
}
#menu{
width:300px;
height:302px;
float:none;
padding-left:20px;
padding-top:10px;
}
div#menu.color1
{
background-color:#f00;
}
#image{
background:#ECECEC;
background-image: url(images/index.jpg);
background-position:right;
float:right;
height: 312px;
width: 740px;
}
#quote{
background:#fff;
height:55px;
width:970px;
border-top: 0px solid #000;
border-bottom: 0px solid #000;
padding-left: 40px;
padding-top: 20px;
padding-bottom: 20px;
}
#left_column{
background:#ddd;
width:550px;
height:500px;
float: left;
padding-top: 50px;
padding-left: 30px;
padding-right: 30px;
color: #006699
}
#right_column{
background-color:#ccc;
width:390px;
height:500px;
float: left;
padding-top: 50px;
padding-left: 30px;
padding-right: 30px;
}
#mainbox{
background:#ddd;
width:960px;
height:500px;
float: left;
padding-top: 50px;
padding-left: 50px;
padding-right: 50px;
color: #006699
}
#footer{
background-color: #000000;
background-image: url(images/footer.jpg);
background-repeat: repeat-x;
height:30px;
padding-left: 0px;
}
A:link {text-decoration: none;color:#fff;}
A:visited {text-decoration: none;color:#fff;}
A:active {text-decoration: none;color:#fff;}
A:hover {text-decoration: none; color:#ccc;}
.style1 {
font-size: 12px
}
.style2 {
font-size: 12px; color: #000000;
}
.style3 {
color: #000000;
}
#qm0
{
width:160px;
height: 302px;
padding:0px 20px;
margin-top:20px;
background-color:transparent;
border-width:0px;
border-style:solid;
border-color:#006699;
}
#qm0 a
{
padding:3px 20px 3px 3px;
background-color:transparent;
color:#aaaaaa;
font-family:Arial;
font-size:12px;
text-decoration:none;
border-width:0px 0px 1px;
border-style:solid;
border-color:#aaaaaa;
}
#qm0 a:hover
{
color:#ffffff;
border-color:#fff;
}
body #qm0 .qmactive, body #qm0 .qmactive:hover
{
color:#ffffff;
border-color:#006699;
}
#qm0 div, #qm0 ul
{
padding:5px;
background-color:transparent;
border-width:0px;
border-style:solid;
border-color:#fff;
}
#qm0 div a, #qm0 ul a
{
padding:3px 20px 3px 5px;
color: #cccccc;
font-size:12px;
border-width:0px;
border-color:#fff;
}
#qm0 div a:hover, #qm0 ul a:hover
{
color:#fff;
text-decoration:underline;
}
body #qm0 div .qmactive, body #qm0 div .qmactive:hover
{
color:#006699;
text-decoration:underline;
}
body {
background-color: #fff;
font-family:Arial, Helvetica, sans-serif;
font-size:16px;
padding:0;
margin:0;
}
div{
margin:0;
padding:0;
/*width: 1060px;*/
padding-right: 0px;
}
h1{margin:0;padding:0;}
h2{margin:0;padding:0;}
h3{margin:0;padding:0;}
p{
margin:0;
padding:0;
}
ul{margin:0;padding:0;}
li{list-style-type:none;}
#page_container{
width:1060px;
margin:0 auto;
}
#banner{
background-color: #000;
background-image: url(images/bannergrad.jpg);
background-repeat: repeat-x;
height:125px;
padding-left: 0px;
}
#menu{
width:300px;
height:302px;
float:none;
padding-left:20px;
padding-top:10px;
}
div#menu.color1
{
background-color:#f00;
}
#image{
background:#ECECEC;
background-image: url(images/index.jpg);
background-position:right;
float:right;
height: 312px;
width: 740px;
}
#quote{
background:#fff;
height:55px;
width:970px;
border-top: 0px solid #000;
border-bottom: 0px solid #000;
padding-left: 40px;
padding-top: 20px;
padding-bottom: 20px;
}
#left_column{
background:#ddd;
width:550px;
height:500px;
float: left;
padding-top: 50px;
padding-left: 30px;
padding-right: 30px;
color: #006699
}
#right_column{
background-color:#ccc;
width:390px;
height:500px;
float: left;
padding-top: 50px;
padding-left: 30px;
padding-right: 30px;
}
#mainbox{
background:#ddd;
width:960px;
height:500px;
float: left;
padding-top: 50px;
padding-left: 50px;
padding-right: 50px;
color: #006699
}
#footer{
background-color: #000000;
background-image: url(images/footer.jpg);
background-repeat: repeat-x;
height:30px;
padding-left: 0px;
}
A:link {text-decoration: none;color:#fff;}
A:visited {text-decoration: none;color:#fff;}
A:active {text-decoration: none;color:#fff;}
A:hover {text-decoration: none; color:#ccc;}
.style1 {
font-size: 12px
}
.style2 {
font-size: 12px; color: #000000;
}
.style3 {
color: #000000;
}
- .qmmc .qmdivider{display:block;font-size:1px;border-width:0px;border-style:solid;position:relative;z-index:1;}.qmmc .qmdividery{float:left;width:0px;}.qmmc .qmtitle{display:block;cursor:default;white-space:nowrap;position:relative;z-index:1;}.qmclear {font-size:1px;height:0px;width:0px;clear:left;line-height:0px;display:block;float:none !important;}.qmmc {position:relative;zoom:1;z-index:10;}.qmmc a, .qmmc li {float:left;display:block;white-space:nowrap;position:relative;z-index:1;}.qmmc div a, .qmmc ul a, .qmmc ul li {float:none;}.qmsh div a {float:left;}.qmmc div{visibility:hidden;position:absolute;}.qmmc li {z-index:auto;}.qmmc ul {left:-10000px;position:absolute;z-index:10;}.qmmc, .qmmc ul {list-style:none;padding:0px;margin:0px;}.qmmc li a {float:none}.qmmc li:hover>ul{left:auto;}#qm0 li {float:none;}#qm0 li:hover>ul{top:0px;left:100%;}
- #qm0
- {
- width:160px;
- height: 302px;
- padding:0px 20px;
- margin-top:20px;
- background-color:transparent;
- border-width:0px;
- border-style:solid;
- border-color:#006699;
- }
- #qm0 a
- {
- padding:3px 20px 3px 3px;
- background-color:transparent;
- color:#aaaaaa;
- font-family:Arial;
- font-size:12px;
- text-decoration:none;
- border-width:0px 0px 1px;
- border-style:solid;
- border-color:#aaaaaa;
- }
- #qm0 a:hover
- {
- color:#ffffff;
- border-color:#fff;
- }
- body #qm0 .qmactive, body #qm0 .qmactive:hover
- {
- color:#ffffff;
- border-color:#006699;
- }
- #qm0 div, #qm0 ul
- {
- padding:5px;
- background-color:transparent;
- border-width:0px;
- border-style:solid;
- border-color:#fff;
- }
- #qm0 div a, #qm0 ul a
- {
- padding:3px 20px 3px 5px;
- color: #cccccc;
- font-size:12px;
- border-width:0px;
- border-color:#fff;
- }
- #qm0 div a:hover, #qm0 ul a:hover
- {
- color:#fff;
- text-decoration:underline;
- }
- body #qm0 div .qmactive, body #qm0 div .qmactive:hover
- {
- color:#006699;
- text-decoration:underline;
- }
- body {
- background-color: #fff;
- font-family:Arial, Helvetica, sans-serif;
- font-size:16px;
- padding:0;
- margin:0;
- }
- div{
- margin:0;
- padding:0;
- /*width: 1060px;*/
- padding-right: 0px;
- }
- h1{margin:0;padding:0;}
- h2{margin:0;padding:0;}
- h3{margin:0;padding:0;}
- p{
- margin:0;
- padding:0;
- }
- ul{margin:0;padding:0;}
- li{list-style-type:none;}
- #page_container{
- width:1060px;
- margin:0 auto;
- }
- #banner{
- background-color: #000;
- background-image: url(images/bannergrad.jpg);
- background-repeat: repeat-x;
- height:125px;
- padding-left: 0px;
- }
- #menu{
- width:300px;
- height:302px;
- float:none;
- padding-left:20px;
- padding-top:10px;
- }
- div#menu.color1
- {
- background-color:#f00;
- }
- #image{
- background:#ECECEC;
- background-image: url(images/index.jpg);
- background-position:right;
- float:right;
- height: 312px;
- width: 740px;
- }
- #quote{
- background:#fff;
- height:55px;
- width:970px;
- border-top: 0px solid #000;
- border-bottom: 0px solid #000;
- padding-left: 40px;
- padding-top: 20px;
- padding-bottom: 20px;
- }
- #left_column{
- background:#ddd;
- width:550px;
- height:500px;
- float: left;
- padding-top: 50px;
- padding-left: 30px;
- padding-right: 30px;
- color: #006699
- }
- #right_column{
- background-color:#ccc;
- width:390px;
- height:500px;
- float: left;
- padding-top: 50px;
- padding-left: 30px;
- padding-right: 30px;
- }
- #mainbox{
- background:#ddd;
- width:960px;
- height:500px;
- float: left;
- padding-top: 50px;
- padding-left: 50px;
- padding-right: 50px;
- color: #006699
- }
- #footer{
- background-color: #000000;
- background-image: url(images/footer.jpg);
- background-repeat: repeat-x;
- height:30px;
- padding-left: 0px;
- }
- A:link {text-decoration: none;color:#fff;}
- A:visited {text-decoration: none;color:#fff;}
- A:active {text-decoration: none;color:#fff;}
- A:hover {text-decoration: none; color:#ccc;}
- .style1 {
- font-size: 12px
- }
- .style2 {
- font-size: 12px; color: #000000;
- }
- .style3 {
- color: #000000;
- }
Si alguien sería capaz de descubrir cualquier cosa que pueda ayudar a mí entonces estaría muy agradecido.
Gracias de nuevo parodia.
- SpooF
- ٩๏̯͡๏۶


- Registrado: May 22, 2004
- Mensajes: 3415
- Loc: Richland, WA
- Status: Offline
Su problema parece estar en su $ page_name matriz. El método que he suministrado para obtener el nombre de la página actual no devuelve el directorio.
Por ejemplo. Si su página se encuentra en http://yoursite.com/new/page. php el siguiente sería cierto:
page_handle $ = new / página
$ page_name = "página"
Así que para su $ page_name Puede cambiar el valor de la clave para no incluir el directorio o puede utilizar el page_handle $ variable como la clave de búsqueda.
Veo beneficios para ambos.
Por ejemplo. Si su página se encuentra en http://yoursite.com/new/page. php el siguiente sería cierto:
page_handle $ = new / página
$ page_name = "página"
Así que para su $ page_name Puede cambiar el valor de la clave para no incluir el directorio o puede utilizar el page_handle $ variable como la clave de búsqueda.
Veo beneficios para ambos.
#define NULL (::rand() % 2)
- Anonymous
- Bot


- Registrado: 25 Feb 2008
- Mensajes: ?
- Loc: Ozzuland
- Status: Online
Marzo 9th, 2010, 7:43 pm
1, 2
Para responder a este tema que necesita para ingresar o registrarse. Es gratis.
Publicar Información
- Total de mensajes en este tema: 17 mensajes
- Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 163 invitados
- No puede abrir nuevos temas en este Foro
- No puede responder a temas en este Foro
- No puede editar sus mensajes en este Foro
- No puede borrar sus mensajes en este Foro
- No puede enviar adjuntos en este Foro
