nav changement de page automatique
- SB
- Moderator


- Inscription: Nov 16, 2004
- Messages: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
Est-il possible d'utiliser PHP code semblable au suivant pour que chaque page de récupérer certaines informations à partir d'une feuille de style en cascade, qui seraient utilisés pour changer la couleur de fond de la barre de navigation de site Web?
S'il est possible, quelqu'un pourrait me renseigner sur comment je me prendrait pour atteindre ce que c'est?
Merci
Code: [ 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!"; }
S'il est possible, quelqu'un pourrait me renseigner sur comment je me prendrait pour atteindre ce que c'est?
Merci
- Anonymous
- Bot


- Inscription: 25 Feb 2008
- Messages: ?
- Loc: Ozzuland
- Status: Online
Mars 8th, 2010, 11:17 am
- SpooF
- ٩๏̯͡๏۶


- Inscription: Mai 22, 2004
- Messages: 3415
- Loc: Richland, WA
- Status: Offline
- SB
- Moderator


- Inscription: Nov 16, 2004
- Messages: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
Je suis en fait de ne pas voir tous les changements en ce que, mais je crois que vous me comprenez.
Le site i am travaille actuellement sur -- http://www.campbell-james.co.uk/new/template.php - Est construite là où j'ai le code php dont 2 pages sur chaque page. La première page édifie la première moitié du code du site et la deuxième page s'accumule au second semestre. Je pensais ce fait beaucoup de sens pour créer un site qui aura à terme une grande quantité de pages.
En raison de la manière dont le site a été conçu, l'intention était d'avoir la zone de navigation bleue pour modifier la couleur sur chaque page il charge. C'est ce que j'avais espéré à faire et j'ai pensé qu'il serait possible de le faire en utilisant un code similaire à celui que j'ai posté ci-dessus.
Le site i am travaille actuellement sur -- http://www.campbell-james.co.uk/new/template.php - Est construite là où j'ai le code php dont 2 pages sur chaque page. La première page édifie la première moitié du code du site et la deuxième page s'accumule au second semestre. Je pensais ce fait beaucoup de sens pour créer un site qui aura à terme une grande quantité de pages.
En raison de la manière dont le site a été conçu, l'intention était d'avoir la zone de navigation bleue pour modifier la couleur sur chaque page il charge. C'est ce que j'avais espéré à faire et j'ai pensé qu'il serait possible de le faire en utilisant un code similaire à celui que j'ai posté ci-dessus.
- SB
- Moderator


- Inscription: Nov 16, 2004
- Messages: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
Je me demandais aussi s'il y avait moyen d'avoir une image pour l'ouvrir à partir d'un dossier pour chaque page en utilisant le même type de code ci-dessus?
J'ai pensé qu'il serait relativement facile à comprendre, mais ma connaissance de PHP n'est pas aussi vaste que je préfère.
J'ai pensé qu'il serait relativement facile à comprendre, mais ma connaissance de PHP n'est pas aussi vaste que je préfère.
- SpooF
- ٩๏̯͡๏۶


- Inscription: Mai 22, 2004
- Messages: 3415
- Loc: Richland, WA
- Status: Offline
Bon, vous souhaitez que la zone bleue à changer les couleurs en fonction de ce page est vue en cours. Correct?
Votre code actuel est sur la bonne voie. Ce que je suggère, c'est de créer un tableau de vos pages.
Je voudrais donc créer des classes de style ou ids si, pour chaque page. Vous pouvez même utiliser seulement les couleurs.
Votre code actuel est sur la bonne voie. Ce que je suggère, c'est de créer un tableau de vos pages.
PHP Code: [ 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];
Je voudrais donc créer des classes de style ou ids si, pour chaque page. Vous pouvez même utiliser seulement les couleurs.
Code: [ Select ]
'pageName'=>'blue',
CSS Code: [ Select ]
.blue {
background-color: #0000FF;
}
background-color: #0000FF;
}
- .blue {
- background-color: #0000FF;
- }
#define NULL (::rand() % 2)
- SB
- Moderator


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


- Inscription: Mai 22, 2004
- Messages: 3415
- Loc: Richland, WA
- Status: Offline
Pour votre menu, je voudrais ajouter une catégorie à elle.
Utilisez ce style pour appliquer la couleur.
Pour limiter le style pour fonctionner uniquement avec le menu:
PHP Code: [ Select ]
<div id="menu" class="<?=$use_style?>">
Utilisez ce style pour appliquer la couleur.
Pour limiter le style pour fonctionner uniquement avec le menu:
CSS Code: [ Select ]
div#menu.color1
{
background-color:#f00;
}
{
background-color:#f00;
}
- div#menu.color1
- {
- background-color:#f00;
- }
#define NULL (::rand() % 2)
- SpooF
- ٩๏̯͡๏۶


- Inscription: Mai 22, 2004
- Messages: 3415
- Loc: Richland, WA
- Status: Offline
Voici un exemple rapide que j'ai fait.
Une chose est que vous devez retirer le background-color attribut de votre #menu la classe ne sera pas sur le droit d'elle.
Remarquez aussi j'ai changé la façon dont je obtenir le nom du fichier.
Code: [ 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>
Une chose est que vous devez retirer le background-color attribut de votre #menu la classe ne sera pas sur le droit d'elle.
Remarquez aussi j'ai changé la façon dont je obtenir le nom du fichier.
PHP Code: [ 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


- Inscription: Nov 16, 2004
- Messages: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
- SB
- Moderator


- Inscription: Nov 16, 2004
- Messages: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
Bon, alors voici ce que Ive a obtenu...
Dans ma page index.php. Inférieur à celui de l'i navigation ont...
Dans le i CSS ont...
J'ai enlevé la couleur de fond dans la partie du menu.
Il semble que la page PHP ne reconnaît pas le code CSS de la feuille CSS je avoir. Le code CSS actuelle se fait sur une page CSS séparée.
Pas tout à fait sûr de ce qui se passe vraiment mal ici comme je l'ai fait everthing vous mentionnez.
Code: [ 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];
Dans ma page index.php. Inférieur à celui de l'i navigation ont...
Code: [ 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>
Dans le i CSS ont...
Code: [ 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;
- }
J'ai enlevé la couleur de fond dans la partie du menu.
Il semble que la page PHP ne reconnaît pas le code CSS de la feuille CSS je avoir. Le code CSS actuelle se fait sur une page CSS séparée.
Pas tout à fait sûr de ce qui se passe vraiment mal ici comme je l'ai fait everthing vous mentionnez.
- SpooF
- ٩๏̯͡๏۶


- Inscription: Mai 22, 2004
- Messages: 3415
- Loc: Richland, WA
- Status: Offline
Je voudrais d'abord vérifier si $ page_name est ce que votre m'y attendais pas à être. Ajouter un echo ou print pour voir ce qu'il soit réglé. Vous pouvez également vérifier juste votre source et voir ce nom du style est en cours d'impression pour la classe. Si son impression de la bonne classe alors son un problème avec le CSS.
Pour troubler tirer sur le css, je ferais disparaître la div #menu et rend la classe mondiale.
Pour troubler tirer sur le css, je ferais disparaître la div #menu et rend la classe mondiale.
#define NULL (::rand() % 2)
- SB
- Moderator


- Inscription: Nov 16, 2004
- Messages: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
Je suis bel et bien perdu ici. Moyen de sortir de ma profondeur.
Examiné ce problème pour un peu de temps aujourd'hui, et n'ayant aucune chance à tous.
Votre aide nous a été formidable Spoof, donc je crois que cela. J'ai le sentiment que tout cela est quelque chose a à voir avec la façon dont le site a été construit, bien que je ne peux pas comprendre pourquoi. Je suis à court de cheveux pour sortir!
- SpooF
- ٩๏̯͡๏۶


- Inscription: Mai 22, 2004
- Messages: 3415
- Loc: Richland, WA
- Status: Offline
Votre serveur peut-être pas le support de PHP code abrégé. J'ai regardé votre source et quelques-uns des PHP est pas reconnu.
Vous pourriez avoir à faire quelque chose comme ceci:
Code: [ 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">
Vous pourriez avoir à faire quelque chose comme ceci:
Code: [ 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


- Inscription: Nov 16, 2004
- Messages: 8685
- Loc: Aberdeen, Scotland
- Status: Offline
Merci. Toujours pas de chance à tous.
J'étais un peu réticent à mettre le code complet ici, mais si il n'y a aucune façon une personne peut comprendre ce que mai est l'origine du problème alors je vous serais extrêmement reconnaissant.
Comme je disais le site est construit en utilisant 2 documents principaux pour construire la présentation générale du site. Il s'agit de la première partie de la page que j'ai changé pour but ozzu seulement à «include1"
Les autres pages ne semblent pas être pertinents pour le problème en main. Je vais bien ajouter le CSS complet, même si je doute que cela ajoute beaucoup à ce que j'ai déjà posté...
Si quelqu'un veut être en mesure de comprendre tout ce qui mai m'aider alors je serais très reconnaissant.
Merci encore Spoof.
J'étais un peu réticent à mettre le code complet ici, mais si il n'y a aucune façon une personne peut comprendre ce que mai est l'origine du problème alors je vous serais extrêmement reconnaissant.
Comme je disais le site est construit en utilisant 2 documents principaux pour construire la présentation générale du site. Il s'agit de la première partie de la page que j'ai changé pour but ozzu seulement à «include1"
Code: [ 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">
- ');
- }
- ?>
Les autres pages ne semblent pas être pertinents pour le problème en main. Je vais bien ajouter le CSS complet, même si je doute que cela ajoute beaucoup à ce que j'ai déjà posté...
Code: [ 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 quelqu'un veut être en mesure de comprendre tout ce qui mai m'aider alors je serais très reconnaissant.
Merci encore Spoof.
- SpooF
- ٩๏̯͡๏۶


- Inscription: Mai 22, 2004
- Messages: 3415
- Loc: Richland, WA
- Status: Offline
Votre problème semble être dans votre $ page_name tableau. La méthode que je fournis pour obtenir le nom de la page courante ne retourne pas le répertoire.
Par exemple. Si votre page a été localisé à http://yoursite.com/new/page. php les activités suivantes seront remplies:
$ page_handle = new / page
$ page_name = "page"
Donc, pour votre $ page_name vous pouvez soit modifier la valeur de clé de ne pas inclure le répertoire ou vous pouvez utiliser le $ page_handle variable en tant que votre clé de recherche.
Je vois des avantages aux deux.
Par exemple. Si votre page a été localisé à http://yoursite.com/new/page. php les activités suivantes seront remplies:
$ page_handle = new / page
$ page_name = "page"
Donc, pour votre $ page_name vous pouvez soit modifier la valeur de clé de ne pas inclure le répertoire ou vous pouvez utiliser le $ page_handle variable en tant que votre clé de recherche.
Je vois des avantages aux deux.
#define NULL (::rand() % 2)
- Anonymous
- Bot


- Inscription: 25 Feb 2008
- Messages: ?
- Loc: Ozzuland
- Status: Online
Mars 9th, 2010, 7:43 pm
1, 2
Pour répondre à ce sujet, vous devez vous connecter ou vous enregistrer. Il est gratuit.
Afficher de l'information
- Total des messages de ce sujet: 17 messages
- Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 109 invités
- Vous ne pouvez pas poster de nouveaux sujets
- Vous ne pouvez pas répondre aux sujets
- Vous ne pouvez pas éditer vos messages
- Vous ne pouvez pas supprimer vos messages
- Vous ne pouvez pas joindre des fichiers
