Pages bienvenue, accueil, index et menu

Fermé
ishanti - 13 déc. 2008 à 21:00
 ishanti - 14 déc. 2008 à 16:57
Bonjour,

Je suis en train de créer un site sur lequel on entre par une page "de bienvenue", cad qu'il faudra cliquer sur "bienvenue" pour accéder au site. Je sais faire par voie "classique" (page index liée à menu.html) mais là, je bloque.

Actuellement, j'ai mis dans ma page "accueil.php" là où il faut cliquer sur "bienvenue" qui renverra à la page index.php, et dans ma page "index.php" la page de menu avec "l'include menu.html".
Mais en testant, malgré mes diverses configurations possibles,
- soit mon menu est apparent sur ma page de bienvenue
- soit lorsque je clique sur "bienvenue" rien ne se passe
- soit lorsque je clique sur "bienvenue" le menu apparait SUR la page de bienvenue au lieu d'afficher celle qui aurait du s'afficher...

Je ne sais pas si j'ai été claire, mais je peux vous envoyer mon code si vous voulez... et si vous pouvez m'aider !


Merci par avance !
A voir également:

2 réponses

guaouane Messages postés 16 Date d'inscription samedi 13 décembre 2008 Statut Membre Dernière intervention 30 décembre 2008 2
14 déc. 2008 à 16:42
envoie moi ton code sur mon mail et le lien ou tu construit ton site et je réglera le probléme
0
Voici mes diverses pages :

Accueil.php :

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="fr">
<link rel='shortcut icon' type='images/x-icon' href='images/coupe_scottish_terrier_tete.jpg'>
<title>Poils Y Sont</title>
<link href="toilettage_css.css" rel="stylesheet" type="text/css">

<!-- COPIE IMAGES INTERDITE -->
</style>
<script language="JavaScript">
<!--
// https://twitter.com/ceosammassey
function noclic(clic) {
var mess="Toutes les photos sont la propriété de XXX. Contactez l'administrateur du site."; //changer le message
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(mess);
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(mess);
}}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = noclic;
//-->
</script>
</head>

<body>

<!-- COPIE IMAGES INTERDITE -->
<body bgcolor="#FFFFFF" oncontextmenu="return false">


<span style="position:absolute; left:0px; top:0px; width:1280; height:650; z-index:1"><img src="images/page_index.jpg" width="1280" height="665"></span>

<div id="Texte_bienvenue" class="Texte_bienvenue" align="center" style="position:absolute; left:501px; top:264px; z-index:2">
<p><a href="index.php" class="Lien_bienvenue">BIENVENUE</a></p>
</div>

</body>

</html>
0
index.php :

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="fr">
<link rel='shortcut icon' type='images/x-icon' href='images/coupe_scottish_terrier_tete.jpg'>
<title>Poils Y Sont</title>
<link href="toilettage_css.css" rel="stylesheet" type="text/css">

<!-- COPIE IMAGES INTERDITE -->
</style>
<script language="JavaScript">
<!--
// https://twitter.com/ceosammassey
function noclic(clic) {
var mess="Toutes les photos sont la propriété de Poils Y Sont. Contactez l'administrateur du site."; //changer le message
if (navigator.appName == 'Netscape' && clic.which==3) {
alert(mess);
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(mess);
}}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = noclic;
//-->
</script>
</head>

<body>

<!-- COPIE IMAGES INTERDITE -->
<body bgcolor="#FFFFFF" oncontextmenu="return false">

<!-- FOND -->

<div style="position:absolute; left:0; top:0; width:1280; height:650; z-index:1">
<img src="images/page_acceuil.jpg" width="1280" height="665"></div>

<!-- MENU -->

<div style="position:absolute; right:60px; top:50px; height:550; z-index:2; overflow: auto">
<?php include('menu.html'); ?></div>

<?php

// On définit le tableau contenant les pages autorisées
// ----------------------------------------------------
$pageOK = array( 'Toilettage' => 'toilettage.php',
'Coupe' => 'coupe.php',
'Magasin' => 'magasin.php',
'Tarifs' => 'tarifs.php',
'Promo' => 'promo.php',
'Expo' => 'expo.php',
'Entretien' => 'entretien.php',
'Comparatif' => 'comparatif.php',
'Accueil' => 'accueil.php');

// On teste que le paramètre d'url existe et qu'il est bien autorisé
// -----------------------------------------------------------------
if ( (isset($_GET['page'])) && (isset($pageOK[$_GET['page']])) ) {
include($pageOK[$_GET['page']]); // Nous appelons le contenu central de la page
} else {
include('accueil.php'); // Page par défaut quant elle n'existe pas dans le tableau
}

?>

</body>

</html>
0
menu.html :


<table cellspacing="15">
<tr>
<td align="center" colspan="3"><a href="index.php?page=Toilettage" target="_self" class="Menu">
<img src="images/icone_scottish_terrier.gif" height="50" border="0" /></a></td>
<td width="300" ><a href="index.php?page=Toilettage" target="_self" class="Menu">Déroulement du toilettage </a></td>
</tr>
<tr>
<td align="center" colspan="3"><a href="index.php?page=Coupe" target="_self" class="Menu">
<img src="images/icone_york.gif" height="50" border="0" /></a></td>
<td width="300" ><a href="index.php?page=Coupe" target="_self" class="Menu"> Modéles de coupe </a></td>
</tr>
<tr>
<td align="center" colspan="3"><a href="index.php?page=Magasin" target="_self" class="Menu">
<img src="images/icone_bichon_frise.gif" height="50" border="0" /></a></td>
<td width="300" ><a href="index.php?page=Magasin" target="_self" class="Menu">Visite du magasin </a></td>
</tr>
<tr>
<td align="center" colspan="3"><a href="index.php?page=Tarifs" target="_self" class="Menu">
<img src="images/icone_boxer.gif" height="50" border="0" /></a></td>
<td width="300" ><a href="index.php?page=Tarifs" target="_self" class="Menu">Tarifs </a></td>
</tr>
<tr>
<td align="center" colspan="3"><a href="index.php?page=Promo" target="_self" class="Menu">
<img src="images/icone_terrier.gif" height="50" border="0" /> </a></td>
<td width="300" ><a href="index.php?page=Promo" target="_self" class="Menu">Promotions </a></td>
</tr>
<tr>
<td align="center" colspan="3"><a href="index.php?page=Expo" target="_self" class="Menu">
<img src="images/icone_bearded_collie.gif" height="50" border="0" /> </a></td>
<td width="300" ><a href="index.php?page=Expo" target="_self" class="Menu">Expositions </a></td>
</tr>
<tr>
<td align="center" colspan="3"><a href="index.php?page=Entretien" target="_self" class="Menu">
<img src="images/icone_shi_tzu.gif" height="50" border="0" /> </a></td>
<td width="300" ><a href="index.php?page=Entretien" target="_self" class="Menu">Entretien de votre compagnon </a></td>
</tr>
<tr>
<td align="center" colspan="3"><a href="index.php?page=Comparatif" target="_self" class="Menu">
<img src="images/icone_bauceron.gif" height="50" border="0" /> </a></td>
<td width="300" ><a href="index.php?page=Comparatif" target="_self" class="Menu">Avant / Aprés </a></td>
</tr>
</table>
0
Concernant le lien, je n'en ai pas encore. Je l'évalue en local avec easy PhP
0
mp5player Messages postés 49 Date d'inscription mercredi 10 décembre 2008 Statut Membre Dernière intervention 20 décembre 2008 48
14 déc. 2008 à 16:45
C'est vrai que c'est mieux avec le code ...
0