begin process at 2012 02 09 20:17:29
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Navigation

 > LANCE UN SITE A PARTIR D'UN MENU DEROULANT

LANCE UN SITE A PARTIR D'UN MENU DEROULANT


 Information sur la source

Note :
7 / 10 - par 1 personne
7,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Navigation Niveau :Débutant Date de création :15/04/2003 Date de mise à jour :15/04/2003 12:36:29 Vu :20 571

Auteur : e7kv4uv

Ecrire un message privé
Site perso
Commentaire sur cette source (3)
Ajouter un commentaire et/ou une note

 Description

Ce script vous permet de lancer un site a partir d'une liste d'un menu deroulant

Je suis pa sur que ce soit  la methode la plus simple, mais en tout cas elle marche !!!!!

J'ai vu un truc similaire chez Virtuel Killer  dans son site avec des zik, je sé pa si c le meme code

Source

  • <html>
  • <head>
  • <title>Liens directs</title>
  • <script LANGUAGE="JavaScript">
  • <!--
  • nbmenu = 6;
  • champs = new Array(nbmenu);
  • haveFrames = false;
  • // Vous donnez le nom du menu, le lien associé et la fenêtre de destination
  • function LesMenus(titre,cible,target) {
  • this.titre = titre;
  • this.cible = cible;
  • this.target = target;
  • }
  • // Définition des menus
  • champs[0] = new LesMenus("thelombric","http://www.thelombric.fr.st","corps");
  • champs[1] = new LesMenus("gdnweb","http://www.gdnweb.fr.st","corps");
  • champs[2] = new LesMenus("doudou.d-abord.net","http://www.doudou.d-abord.net","corps");
  • champs[3] = new LesMenus("surfexPlorer","http://www.surfexplorer.fr.st","corps");
  • champs[4] = new LesMenus("yadetouzici","http://www.yadetouzici.fr.st","corps");
  • champs[5] = new LesMenus("worldgamecenter","http://www.worldgamecenter","corps");
  • function GoMenu() {
  • Choix = document.MENU.MenuList.selectedIndex;
  • if (haveFrames)
  • parent.frames[champs[Choix].target].location.href = champs[Choix].cible;
  • else
  • window.location.href = champs[Choix].cible;
  • }
  • function Menu() {
  • haveFrames = (parent.frames.length > 0);
  • document.write('<FORM NAME="MENU">');
  • document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SELECT NAME="MenuList">');
  • document.write('<OPTION VALUE="0" SELECTED>' + champs[0].titre);
  • for (var x = 1; x < nbmenu; x++)
  • document.write('<OPTION VALUE="' + x + '">' + champs[x].titre);
  • document.write('</SELECT>');
  • document.write('&nbsp;&nbsp;&nbsp;<INPUT TYPE="BUTTON" VALUE="Go" onClick="GoMenu();">');
  • document.write('</FORM>');
  • }
  • //-->
  • </script>
  • </head>
  • <body>
  • <p><br>
  • <br>
  • <br>
  • <script LANGUAGE="JavaScript">
  • Menu();
  • </script></p>
  • </body>
  • </html>
<html>

<head>
<title>Liens directs</title>
<script LANGUAGE="JavaScript">
        <!--
        nbmenu = 6;
        champs = new Array(nbmenu);
        haveFrames = false;         
        
        // Vous donnez le nom du menu, le lien associé et la fenêtre de destination
        function LesMenus(titre,cible,target) {
            this.titre = titre;
            this.cible = cible;
            this.target = target;
        }
        
        // Définition des menus
        champs[0] = new LesMenus("thelombric","http://www.thelombric.fr.st","corps");
        champs[1] = new LesMenus("gdnweb","http://www.gdnweb.fr.st","corps");
        champs[2] = new LesMenus("doudou.d-abord.net","http://www.doudou.d-abord.net","corps");
        champs[3] = new LesMenus("surfexPlorer","http://www.surfexplorer.fr.st","corps");
        champs[4] = new LesMenus("yadetouzici","http://www.yadetouzici.fr.st","corps");
        champs[5] = new LesMenus("worldgamecenter","http://www.worldgamecenter","corps");

        function GoMenu() {
            Choix = document.MENU.MenuList.selectedIndex;
            if (haveFrames)
                parent.frames[champs[Choix].target].location.href = champs[Choix].cible;
            else
                window.location.href = champs[Choix].cible;
        }
        
        function Menu() {
            haveFrames = (parent.frames.length > 0);
            document.write('<FORM NAME="MENU">');
            document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SELECT NAME="MenuList">');
            document.write('<OPTION VALUE="0" SELECTED>' + champs[0].titre);
            for (var x = 1; x < nbmenu; x++)
                document.write('<OPTION VALUE="' + x + '">' + champs[x].titre);
            document.write('</SELECT>');
            document.write('&nbsp;&nbsp;&nbsp;<INPUT TYPE="BUTTON" VALUE="Go" onClick="GoMenu();">');
            document.write('</FORM>');
        }
        //-->
    </script>
</head>

<body>

<p><br>
<br>
<br>
<script LANGUAGE="JavaScript">
Menu();
</script></p>
</body>
</html>

 Conclusion

Dude Inc. &lt;/e7kv4uv&gt;

&lt;..:: WwW.TheLombric.FR.ST ::..&gt;


 Sources du même auteur

MENU DEROULANT DE COULEURS D'ARRIERE PLAN
INDIQUE LA RESOLUTION DE L'ECRAN
UN TXT DURANT LE CHARGEMENT D'UNE PAGE
1 LIEN = 2 SITES DANS UNE PAGE !!!!!!!!!
DEFILE UN TXT DS UN CHAMP JUSKA CE KON CLIQUE DESUS

 Sources de la même categorie

Source avec Zip Source avec une capture ANTI-ROBOTS V 1.0 par MacGaliver
Source avec une capture PRÉSENTOIR PAGE/SUJET par tiranus
Source avec Zip Source avec une capture NAVIGATEUR INTERNET HAVRET par HAVRETos
Source avec Zip WMANAGER.JS : GÉRER LES FICHIERS WMA AVEC WINDOWS MEDIA PLAY... par jdmcreator
Source avec Zip Source avec une capture NAVIGATION PAR AJAX, CHARGEMENT DES PAGES SANS RECHARGEMENT par zulrigh

Commentaires et avis

Commentaire de goliath2002 le 09/06/2003 12:29:12

Merci je cherchais ce script depuis un bon bout de temps et il fait mon bonheur, mais autre chose, pourrait t'on mettre ce script plusieurs fois sur une meme page.  c'est à dire plusieurs menu déroulant.

Commentaire de mackoy73 le 30/01/2005 22:33:12

Merci.
Je voudrais utiliser ce script pour pour afficher une page html interne (et pas sur internet). J'ai donc remplacer les sites http://www.thelombric.fr.st (par exemple) par le chemin de la page à afficher (logique non ?)
Mais cela ne marche pas, la page n'est pas affiché ! Peux-tu me dire comment il faut faire pour afficher une page interne ?? Merci !!

Commentaire de DrYvo le 25/06/2009 12:57:59

Salut est ce que se serait possible d'avoir un code en langage PHP qui utilise le choix dans un menu déroulant pour soumettre une requête sql.Si oui affiché moi son code PHP.

 Ajouter un commentaire




Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
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 : 2,839 sec (4)

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