begin process at 2012 05 28 19:59:08
  Trouver un code source :
 
dans
 
Accueil > Forum > 

PHP

 > 

Divers

 > 

Débutant(e)

 > 

besoin d'aide pour ce code


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

besoin d'aide pour ce code

samedi 2 mai 2009 à 23:52:51 | besoin d'aide pour ce code

alaindu_33

Bonsoir j'ai besoin d'un petit renseignement au sujet de ce code .
j'aimerai savoir comment faire pour que celui ci revienne au point de depart sans a avoir besoin de cliquée sur Accueil
les sous menu reste ouvert
merci de votre aide.

<html>

<head>
<meta http-equiv="Content-Language" content="fr">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nouvelle page 1</title>
</head>

<body>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Page1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" media="screen">
<!--
body {
margin: 0;
padding: 0;
background: white;
font: 80% verdana, arial, sans-serif;
}
li {
margin: 0;
padding: 0;
list-style-type: none;
}
ul {
margin: 0;
padding: 0;
list-style-type: none;
}
dd {
margin: 0;
padding: 0;
list-style-type: none;
}
dt {
margin: 0;
padding: 0;
list-style-type: none;
}
dl {
margin: 0;
padding: 0;
list-style-type: none;
}
#menu {
position: absolute; /
top: 0;
left: 0;
}
#menu {
width: 15em;
}
#menu dt {
cursor: pointer;
margin: 2px 0;;
height: 20px;
line-height: 20px;
text-align: center;
font-weight: bold;
border: 1px solid gray;
background: #ccc;
}
#menu dd {
border: 1px solid gray;
}
#menu li {
text-align: center;
background: #fff;
}
#menu dt a {
color: #000;
text-decoration: none;
display: block;
border: 0 none;
height: 100%;
}
#menu li a {
color: #000;
text-decoration: none;
display: block;
border: 0 none;
height: 100%;
}
#menu dt a:hover {
background: #eee;
}
#menu li a:hover {
background: #eee;
}
-->
</style>

<script type="text/javascript">
<!--
window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
for (var i = 1; i<=10; i++) {
if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
}
if (d) {d.style.display='block';}
}
//-->
</script>

<div id="menu" style="width: 15em; position: absolute; top: 46px; left: 51px; background-color:#FFFFFF">
    <dl style="list-style-type: none; margin: 0; padding: 0">
        <dt onmouseover="javascript:montre();" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
        <a title="Retour à l'accueil" style="color: #000; text-decoration: none; display: block; height: 100%; border: 0 none" href="baby_gym%202.htm">
        Accueil</a></dt>
    </dl>
    <dl style="list-style-type: none; margin: 0; padding: 0">
        <dt onmouseover="javascript:montre('smenu1');" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
        Baby Gym</dt>
        <dd id="smenu1" style="list-style-type: none; border: 1px solid gray; margin: 0; padding: 0">
        <ul style="list-style-type: none; margin: 0; padding: 0">
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            photo</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 1.2</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 1.3</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 1.4</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 1.5</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 1.6</a></li>
        </ul>
        </dd>
    </dl>
    <dl style="list-style-type: none; margin: 0; padding: 0">
        <dt onmouseover="javascript:montre('smenu3');" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
        Gym</dt>
        </dl>   
    </dd>
    <dl style="list-style-type: none; margin: 0; padding: 0">
        <dd id="smenu3" style="list-style-type: none; border: 1px solid gray; margin: 0; padding: 0">
        <ul style="list-style-type: none; margin: 0; padding: 0">
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Photos</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 3.2</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 3.3</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 3.4</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 3.5</a></li>
        </ul>
        </dd>
    </dl>
    <dl style="list-style-type: none; margin: 0; padding: 0">
        <dt onmouseover="javascript:montre('smenu4');" style="cursor: pointer; height: 20px; line-height: 20px; text-align: center; font-weight: bold; list-style-type: none; border: 1px solid gray; margin: 2px 0; padding: 0; background: #FFFFFF">
        Grs</dt>
        <dd id="smenu4" style="list-style-type: none; border: 1px solid gray; margin: 0; padding: 0">
        <ul style="list-style-type: none; margin: 0; padding: 0">
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Photos</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 4.2</a></li>
            <li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 4.3</a></li><li style="text-align: center; list-style-type: none; margin: 0; padding: 0; background: #fff">
            <a style="color: #0066FF; text-decoration: none; display: block; height: 100%; border: 0 none" href="#">
            Sous-Menu 4.3</a></li>
        </ul>
        </dd>
    </dl>
</div>

<p>&nbsp;</p>
<p>&nbsp;</p>

</body>

</html>





Cette discussion est classée dans : menu, style, none, margin, padding


Répondre à ce message

Sujets en rapport avec ce message

comment rajouter un menu [ par alaindu_33 ] Bonjour je viens de faire un nouveau menu pour un site mais voila le dernier onglet jeux n'apparais pas sur la page d'accueil il me manque quoi merci Compatibilité avec firefox et google chrome [ par rahhalmahassen ] Bonjour, J'ai un probléme d'affichage du contenue de [url=http://www.juridique-enligne.com/avocat-gratuit/aide-juridique]ma page web[/url].En effet,el Menu/ssmenu vertical qui ne marche pas comme je voudrais... [ par Nosferatu8 ] Bonjour à tous, Voila j'ai deux petits soucis concernant mon menu vertical déroulant... En fait, j'aurais besoin de deux choses: - lorsque je clique Style CSS [ par CCJ ] Bonjour je developpe actuellement un site et j'ai uun bleme voila la partie de ma source css foireuse: td.Menu { background-image: url("Images/MenuNeu probléme placement collone droite css [ par speedylol ] bonjour voic le probléme que j'ai le positionement de la colone droite n'est pas bonne , je vois mon erreur car je debut en css voici le code ci contr Contenu de Bdd et affichage avec retour a la ligne [ par DjChat ] Bonjour a tous, je gere un affichage dynamique qui est stoqué dans une Bdd en varchar qui est du texte, pour le positionner je l'ai mi dans des div qu Enlevez le cadre des images liens [ par samuss ] Bonjour,Je suis en train de créé un site web, j'ai un probleme puisque dans mon menu des images-boutons font offices de liens, mais j'ai un vieux cadr Pas de couleur de fond sur IE : background [ par kataVB ] boujour tout le mondemon problème est le suivant : sur internet explorer je ne vois pas la couleur de fond ( c'est blanc) alors que sur Firefox n'y a problème CSS ! [ par zut69 ] Bonjour,Ca fait plusieurs années que je fais des sites internet, mais j'ai souvent un problème pour bien gérer les styles...Par exemple, aujourd'hui j Menu dynamique et changement de style [ par Orange73 ] Bonjour,j'ai un menu php générer dynamiquement via une BDD.Chaque element du menu possède un lien (href).je souhaiterai savoir comment puis-je faire p


Nos sponsors


Sondage...

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,889 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales