DANS LE HEAD
debut:<SCRIPT LANGUAGE=javascript><!--
var intCount = 0;
//-Fonction d'ajout d'entrées principales-------------------------
function DynamicMenu_addParent(strName) {
var strID = 'ID' + intCount++;
var strTemp = '<DIV ID="' + strID + '" CLASS="parent"';
strTemp += ' onClick="expandCollapse(this);">';
strTemp += '<IMG SRC="http://www.vossey.com/imges/mnu/leftb.gif" >';
strTemp += ' ' + strName ;
strTemp += '<DIV STYLE="display: none" CLASS="child"></DIV>';
strTemp += '</DIV>';
this.div.innerHTML += strTemp;
this.currentChild = document.getElementById(strID);
}
//-Fonction d'ajout de liens dans le menu-------------------------
function DynamicMenu_addChild(strName,strURL) {
var strTemp = '<A HREF="' + strURL + '"'
+ ' onClick="cancelBubble(arguments[0]);">'
+ strName + '</A><BR>';
if (document.all) {
this.currentChild.children[1].innerHTML += strTemp;
} else {
this.currentChild.childNodes[2].innerHTML += strTemp;
}
}
//-inhibe la cascade d'évènements au DIV conteneur----------------
function cancelBubble(netEvent) {
if (document.all) {
window.event.cancelBubble = true;
} else {
netEvent.cancelBubble = true;
}
}
//-Contracte ou expanse le menu-----------------------------------
function expandCollapse(objElement) {
if (document.all) {
var imgIcon = objElement.children[0];
objElement = objElement.children[1];
} else {
var imgIcon = objElement.childNodes[0];
objElement = objElement.childNodes[2];
}
if (objElement.style.display == "none" ) {
objElement.style.display = "block" ;
imgIcon.src = "http://www.vossey.com/imges/mnu/bottomb.gif" ;
} else {
objElement.style.display = "none" ;
imgIcon.src = "http://www.vossey.com/imges/mnu/leftb.gif" ;
}
}
//-Fonction de création de menu dynamique-------------------------
function DynamicMenu() {
var id = "Menu" + intCount++;
document.write('<DIV Id="' + id + '"></DIV>';
this.div = document.getElementById(id);
this.currentChild = null;
this.addParent = DynamicMenu_addParent;
this.addChild = DynamicMenu_addChild;
}
// --></SCRIPT>
Fin
Dans ton body
début:
<script language=Javascript>var menu = new DynamicMenu();
menu.addParent('News';
menu.addChild('Archives', 'http://www.vossey.com/archive.php?di=0';
menu.addChild('News actuelles', 'http://www.vossey.com/index.php?di=0';
menu.addChild('Recherche', 'http://www.vossey.com/search.php?di=0';
menu.addChild('Soumettre une news', 'http://www.vossey.com/news/index.php?di=0';
menu.addParent('Communauté';
menu.addChild('Annuaire de liens', 'http://www.vossey.com/annuaire.php?di=0';
menu.addChild('Calendrier de LAN', 'http://www.vossey.com/calendrierlan.php?di=0';
menu.addChild('Chat', 'http://www.vossey.com/chat/index.php?di=0';
menu.addChild('Forum', 'http://www.vossey.com/forum/';
menu.addChild('Inscription', 'http://www.vossey.com/inscription.php?di=0';
menu.addChild('News-list', 'http://www.vossey.com/news-list/index.php?di=0';
menu.addParent('Half-Life';
menu.addChild('Acheter', 'http://www.alapage.com/mx/?type=5&tp=F&donnee_appel=VOSGD&REF_NOVA=616461';
menu.addChild('Armes', 'http://www.vossey.com/dossier.php?id=3&di=0';
menu.addChild('Installer un mod', 'http://www.vossey.com/half-life/install_mod.php?di=0';
menu.addChild('Faire ses tags', 'http://www.vossey.com/cstrike/tags.php?di=0';
menu.addChild('FAQ-Problèmes', 'http://www.vossey.com/half-life/faq.php?di=0';
menu.addChild('Gérer son serveur', 'http://www.vossey.com/cstrike/rcon.php?di=0';
menu.addChild('HLTV', 'http://www.vossey.com/cstrike/hltv.php?di=0';
menu.addChild('Logos', 'http://www.vossey.com/half-life/logos.php?di=0';
menu.addChild('Maps', 'http://www.vossey.com/maps.php?typemaps=20&di=0';
menu.addChild('Pack de Maps', 'http://www.vossey.com/half-life/packmaps.php?di=0';
menu.addChild('Serveur : Adminmod', 'http://www.vossey.com/adminmod/index.php?di=0';
menu.addChild('Skins', 'http://www.vossey.com/half-life/skins.php?di=0';
menu.addChild('Screenshots', 'http://www.vossey.com/screenshots/half-life/?di=0';
menu.addChild('Soluce', 'http://www.vossey.com/half-life/soluce.php?di=0';
menu.addChild('Serveur dédié Linux', 'http://www.vossey.com/cstrike/linux.php?di=0';
menu.addChild('Téléchargement', 'http://www.vossey.com/half-life/download.php?di=0';
menu.addParent('Counter-Strike';
menu.addChild('Présentation', 'http://www.vossey.com/cstrike/presentation.php?di=0';
menu.addChild('Acheter', 'http://www.alapage.com/mx/?type=5&tp=F&donnee_appel=VOSGD&REF_NOVA=613970';
menu.addChild('Armes', 'http://www.vossey.com/cstrike/armes.php?di=0';
menu.addChild('Anticheats', 'http://www.vossey.com/cstrike/anticheats.php?di=0';
menu.addChild('Bind/Alias', 'http://www.vossey.com/cstrike/bind.php?di=0';
menu.addChild('Bots', 'http://www.vossey.com/cstrike/bots.php?di=0';
menu.addChild('Bots odbot ', 'http://www.vossey.com/bots/podbot25/sommaire.php?di=0';
menu.addChild('Cheats : OGC', 'http://www.vossey.com/cstrike/ogc.php?di=0';
menu.addChild('Communication', 'http://www.vossey.com/cstrike/communication.php?di=0';
menu.addChild('Console', 'http://www.vossey.com/cstrike/console.php?di=0';
menu.addChild('CS The Movie', 'http://www.vossey.com/cstrike/film/news.php?di=0';
menu.addChild('Easter-Eggs', 'http://www.vossey.com/cstrike/easter-eggs/index.php?di=0';
menu.addChild('FAQ', 'http://www.vossey.com/cstrike/faq.php?di=0';
menu.addChild('Gérer son serveur : Rcon', 'http://www.vossey.com/cstrike/rcon.php?di=0';
menu.addChild('HLTV', 'http://www.vossey.com/cstrike/hltv.php?di=0';
menu.addChild('Lexique', 'http://www.vossey.com/cstrike/lexique.php?di=0';
menu.addChild('Mapping', 'http://www.vossey.com/cstrike/cs_mapping.php?di=0';
menu.addChild('Maps', 'http://www.vossey.com/maps.php?di=0';
menu.addChild('Maps : Funmap', 'http://www.vossey.com/cstrike/maps/funmaps.php?di=0';
menu.addChild('Maps : Pack', 'http://www.vossey.com/cstrike/pack-maps.php?di=0');
menu.addChild('Maps : Installation', 'http://www.vossey.com/cstrike/maps_cs.php?di=0');
menu.addChild('Mailbag', 'http://www.vossey.com/cstrike/mailbag.php?di=0');
menu.addChild('Optimisation', 'http://www.vossey.com/optimisation/index.php?di=0');
menu.addChild('Pack perso', 'http://www.vossey.com/cstrike/pack.php?di=0');
menu.addChild('Personnaliser CS', 'http://www.vossey.com/cstrike/personnaliser.php?di=0');
menu.addChild('Problèmes', 'http://www.vossey.com/cstrike/antibug.php?di=0');
menu.addChild('Screenshots', 'http://www.vossey.com/screenshots/cstrike/?di=0');
menu.addChild('Serveur : Adminmod', 'http://www.vossey.com/adminmod/index.php?di=0');
menu.addChild('Serveur CS', 'http://www.vossey.com/serveurs.php?di=0');
menu.addChild('Serveur sous Windows', 'http://www.vossey.com/cstrike/windows.php?di=0');
menu.addChild('Serveur sous Linux', 'http://www.vossey.com/cstrike/linux.php?di=0');
menu.addChild('Skins', 'http://www.vossey.com/cstrike/skins/');
menu.addChild('Skins Winamp CS', 'http://www.vossey.com/cstrike/winamp/?di=0');
menu.addChild('Skins : Infos', 'http://www.vossey.com/cstrike/infosskins.php?di=0');
menu.addChild('Skins : Création', 'http://www.vossey.com/cstrike/skins.php?di=0');
menu.addChild('Skins : Installation', 'http://www.vossey.com/cstrike/skins/help.php?di=0');
menu.addChild('Sprites', 'http://www.vossey.com/cstrike/sprites.php?di=0');
menu.addChild('Stratégie : Armes', 'http://www.vossey.com/cstrike/strategies/armes/index.php?di=0');
menu.addChild('Tags CS', 'http://www.vossey.com/cstrike/tags.php?di=0');
menu.addChild('Version française', 'http://www.vossey.com/cstrike/en_francais.php?di=0');
menu.addChild('Téléchargement', 'http://www.vossey.com/cstrike/download.php?di=0');
menu.addParent('CS:Condition Zero');
menu.addChild('Acheter CS:CZ', 'http://www.alapage.com/mx/?type=5&tp=F&donnee_appel=VOSGD&REF_NOVA=616993');
menu.addChild('Armes', 'http://www.vossey.com/czero/armes.php?di=0');
menu.addChild('Forum', 'http://www.presence-pc.com/sqlforum/forum1.php3?cat=12&config=vossey.inc&interface=');
menu.addChild('Présentation', 'http://www.vossey.com/czero/index.php?di=0');
menu.addChild('Models', 'http://www.vossey.com/czero/models.php?di=0');
menu.addChild('Screenshots', 'http://www.vossey.com/screenshots/cs-cz/?di=0');
menu.addChild('Interview', 'http://www.vossey.com/czero/interview.php?di=0')
;menu.addChild('FAQ', 'http://www.vossey.com/czero/faq.php?di=0');
menu.addChild('Liens', 'http://www.vossey.com/czero/liens.php?di=0');
menu.addParent('Day Of Defeat');
menu.addChild('Presentation', 'http://www.vossey.com/dayofdefeat/presentation.php?di=0');
menu.addChild('Screenshots', 'http://www.vossey.com/screenshots/dod/?di=0');
menu.addChild('L Histoire', 'http://www.vossey.com/dayofdefeat/histoire/index.php?di=0');
menu.addChild('Classes', 'http://www.vossey.com/dayofdefeat/classes.php?di=0');
menu.addChild('Allie', 'http://www.vossey.com/dayofdefeat/allie.php?di=0');
menu.addChild('Axe', 'http://www.vossey.com/dayofdefeat/axis.php?di=0');
menu.addChild('Armes', 'http://www.vossey.com/dayofdefeat/armes.php?di=0');
menu.addChild('Serveurs', 'http://www.vossey.com/dayofdefeat/serveur.php?di=0');
menu.addChild('FAQ-Problèmes', 'http://www.vossey.com/dayofdefeat/faq.php?di=0');
menu.addChild('Test Beta 3.1', 'http://www.vossey.com/dayofdefeat/test.php?di=0');
menu.addChild('Bots', 'http://www.vossey.com/dayofdefeat/bots.php?di=0');
menu.addChild('Version française', 'http://www.vossey.com/dayofdefeat/francais.php?di=0');
menu.addChild('Maps', 'http://www.vossey.com/maps.php?typemaps=21&di=0');
menu.addChild('Téléchargement', 'http://www.vossey.com/dayofdefeat/download.php?di=0');
menu.addParent('Blue Shift');
menu.addChild('Sommaire', 'http://www.vossey.com/blueshift/index.php?di=0');
menu.addChild('Histoire', 'http://www.vossey.com/blueshift/histoire.php?di=0');
menu.addChild('Armes', 'http://www.vossey.com/blueshift/armes.php?di=0');
menu.addChild('Allies', 'http://www.vossey.com/dossier.php?id=5&di=0');
menu.addChild('Cheats', 'http://www.vossey.com/blueshift/cheats.php?di=0');
menu.addChild('Screenshots', 'http://www.vossey.com/screenshots/blueshift/?di=0');
menu.addChild('Téléchargement', 'http://www.vossey.com/blueshift/download.php?di=0');
menu.addChild('Test complet', 'http://www.vossey.com/blueshift/test.php?di=0');
menu.addChild('Acheter le jeu', 'http://www.alapage.com/mx/?type=5&tp=F&donnee_appel=VOSGD&REF_NOVA=615404');
menu.addParent('Opposing Force');
menu.addChild('Presentation', 'http://www.vossey.com/opposing/introduction.php?di=0');
menu.addChild('Test', 'http://www.vossey.com/opposing/test.php?di=0');
menu.addChild('Equipes', 'http://www.vossey.com/opposing/team.php?di=0');
menu.addChild('Armes', 'http://www.vossey.com/opposing/armes.php?di=0');
menu.addChild('Objets', 'http://www.vossey.com/opposing/items.php?di=0');
menu.addChild('Maps', 'http://www.vossey.com/opposing/maps.php?di=0');
menu.addChild('Modes de partie', 'http://www.vossey.com/opposing/modes.php?di=0');
menu.addChild('Cheats', 'http://www.vossey.com/opposing/cheats.php?di=0');
menu.addChild('Screenshots', 'http://www.vossey.com/screenshots/opposing/?di=0');
menu.addChild('Bots', 'http://www.vossey.com/opposing/bots.php?di=0');
menu.addChild('Téléchargement', 'http://www.vossey.com/opposing/patchs.php?di=0');
menu.addParent('Team Fortress');
menu.addChild('Sommaire', 'http://www.vossey.com/tfc/index.php?di=0');
menu.addChild('Presentation', 'http://www.vossey.com/tfc/introduction.php?di=0');
menu.addChild('Classes', 'http://www.vossey.com/tfc/classes.php?di=0');
menu.addChild('Maps', 'http://www.vossey.com/tfc/screenstfc.php?di=0');
menu.addChild('Bots', 'http://www.vossey.com/tfc/bots.php?di=0');
menu.addChild('Patchs', 'http://www.vossey.com/tfc/patchs.php?di=0');
menu.addParent('Gunman');
menu.addChild('Acheter', 'http://www.alapage.com/mx/?type=5&tp=F&donnee_appel=VOSGD&REF_NOVA=613636');
menu.addChild('Armes', 'http://www.vossey.com/gunman/armes.php?di=0');
menu.addChild('Codes', 'http://www.vossey.com/gunman/codes.php?di=0');
menu.addChild('Ennemis', 'http://www.vossey.com/gunman/ennemis.php?di=0');
menu.addChild('Histoire', 'http://www.vossey.com/gunman/histoire.php?di=0');
menu.addChild('Presentation', 'http://www.vossey.com/gunman/intro.php?di=0');
menu.addParent('Autres mods');
menu.addChild('Action HL', 'http://www.vossey.com/mods/ActionHL/index.php?di=0');
menu.addChild('Affliction', 'http://www.vossey.com/mods/affliction/index.php?di=0');
menu.addChild('Azur Sheep', 'http://www.vossey.com/mods/azursheep/index.php?di=0');
menu.addChild('Desert Crisis', 'http://www.vossey.com/mods/dcrisis/index.php?di=0');
menu.addChild('ETC II', 'http://www.vossey.com/mods/etc2/index.php?di=0');
menu.addChild('Global Warfare', 'http://www.vossey.com/mods/globalwarfare/index.php?di=0');
menu.addChild('Holy Wars', 'http://www.vossey.com/mods/holywars/index.php?di=0');
menu.addChild('Poke 646', 'http://www.vossey.com/mods/poke646/index.php?di=0');
menu.addChild('Ricochet', 'http://www.vossey.com/mods/ricochet/index.php?di=0');
menu.addChild('SSH', 'http://www.vossey.com/mods/ssh/test.php?di=0');
menu.addChild('The Opera', 'http://www.vossey.com/mods/theopera/index.php?di=0');
menu.addChild('Timeline', 'http://www.vossey.com/mods/timeline/index.php?di=0');
menu.addChild('Vampire slayer', 'http://www.vossey.com/mods/VsHL/ModVS1.php?di=0')
menu.addChild('WormsHL', 'http://www.vossey.com/mods/WormsHL/index.php?di=0');
menu.addParent('Bots');
menu.addChild('Presentation', 'http://www.vossey.com/bots/presentation.php?di=0');
menu.addChild('Histoire de bots', 'http://www.vossey.com/bots/histoire.php?di=0');
menu.addChild('pour Half-Life', 'http://www.vossey.com/half-life/bots.php?di=0');
menu.addChild('pour Counter-Strike', 'http://www.vossey.com/cstrike/bots.php?di=0');
menu.addChild('pour Day Of Defeat', 'http://www.vossey.com/dayofdefeat/bots.php?di=0');
menu.addChild('pour Opposing Force', 'http://www.vossey.com/opposing/bots.php?di=0');
menu.addChild('pour TFC', 'http://www.vossey.com/tfc/bots.php?di=0');
menu.addChild('pour Firearms', 'http://www.vossey.com/firearms/bot.php?di=0');
menu.addChild('Faire des waypoints', 'http://www.vossey.com/bots/waypoint.php?di=0');
menu.addChild('Autres mods', 'http://www.vossey.com/bots/liens.php?di=0');
menu.addParent('LAN');
menu.addChild('Introduction', 'http://www.vossey.com/LAN/index.php?di=0');
menu.addChild('comment ça marche', 'http://www.vossey.com/LAN/topologie.php?di=0');
menu.addChild('Materiel à acheter', 'http://www.vossey.com/LAN/materiel.php?di=0');
menu.addChild('Instalation de materiel', 'http://www.vossey.com/LAN/install_mat.php?di=0');
menu.addChild('Instalation logiciel', 'http://www.vossey.com/LAN/install_log.php?di=0');
menu.addChild('Jouer en reseau', 'http://www.vossey.com/LAN/jouer.php?di=0');
menu.addChild('Aide technique', 'http://www.presence-pc.com/sqlforum/forum1.php3?cat=5&config=vossey.inc&interface=');
menu.addChild('WCG-France', 'http://www.vossey.com/WCG/index.php?di=0');
menu.addChild('Lan Arena 7', 'http://www.vossey.com/dossierla7/index.php?di=0');
menu.addChild('Calendrier des LAN', 'http://www.vossey.com/calendrierlan.php?di=0');
menu.addParent('Vossey.com');
menu.addChild('La redac en folie', 'http://www.vossey.com/staff/planning.php?di=0');
menu.addChild('Mettre en favoris', 'http://www.vossey.com/favoris.php?di=0');
menu.addChild('Page de démarrage', 'http://www.vossey.com/demarrage.php?di=0');
menu.addChild('Staff-Equipe', 'http://www.vossey.com/staff/index.php?di=0');
menu.addChild('Partenariat', 'http://www.vossey.com/staff/partenariat.php?di=0');
menu.addChild('Publicité', 'http://www.vossey.com/staff/publicite.php?di=0');
menu.addChild('Lien Cassé', 'http://www.vossey.com/staff/liencasse.php?di=0');
menu.addChild('Problème technique', 'http://www.vossey.com/staff/problemes.php?di=0');
menu.addChild('Faire un lien', 'http://www.vossey.com/link2us/index.php?di=0');</script>
Fin
Tu édites à ta guise
et tu crée les pages php
...