[code]function creeSousMenu() {
//fonction de remplacement ... pas de prise en compte du chemin :D
creeSousMenuChemin("");
}
function creeSousMenuChemin($chemin) {
//fonctions JScripts
echo "<script language=\"JavaScript\" type=\"text/JavaScript\">" ."\n" ;
echo "<!--"."\n" ;
echo "function MM_findObj(n, d) { //v4.01"."\n";
echo " var p,i,x; if(!d) d=document; if((p=n.indexOf(\"?\"))>0&&parent.frames.length) {"."\n";
echo " d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}"."\n";
echo " if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];"."\n";
echo " for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);"."\n";
echo " if(!x && d.getElementById) x=d.getElementById(n); return x;"."\n";
echo "}"."\n";
echo "function MM_showHideLayers() { //v6.0"."\n";
echo " var i,p,v,obj,args=MM_showHideLayers.arguments;"."\n";
echo " for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];"."\n";
echo " if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }"."\n";
echo " obj.visibility=v; }"."\n";
echo "}"."\n";
echo "//-->"."\n";
echo "</script>"."\n";
//le chemin est utilisé en case de changement dans la hierarchie ... cf page 'catalogue'
//Presentation
echo "<div id=\"MPresentation\" style=\"position:absolute; left:20px; top:0px; width:98px; height:90px; z-index:1; layer-background-color: #E0E7FC; border: 1px none #000000; visibility: hidden;\" onMouseOut=\"MM_showHideLayers('MPresentation','','hide')\" onMouseOver=\"MM_showHideLayers('MPresentation','','show')\">";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"4\" cellspacing=\"0\" bordercolor=\"#040B38\" bgcolor=\"#FFFFFF\"> ";
echo "<tr>";
echo " <td valign=\"top\">";
echo " <a href=\"". $chemin."tdservices.php\" target=\"mainFrame\"><b>T&D Services</b></a><br>";
echo "</tr>";
echo "</table>";
echo "</div> ";
// Expertise
echo "<div id=\"MExpertise\" style=\"position:absolute; left:100px; top:0px; width:150px; height:90px; z-index:2; visibility: hidden;\" onMouseOut=\"MM_showHideLayers('MExpertise','','hide')\" onMouseOver=\"MM_showHideLayers('MExpertise','','show')\"> ";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"4\" cellspacing=\"0\" bordercolor=\"#040B38\" bgcolor=\"#FFFFFF\">";
echo "<tr>";
echo "<td valign=\"top\" class=\"smalltxt\">";
echo " <a href=\"". $chemin."auditconseil.php\"target=\"mainFrame\"><b>Audit et Conseil</b></a><br>" ;
echo " <a href=\"". $chemin."erp-crm.php\"target=\"mainFrame\"><b>ERP et CRM</b></a><br>" ;
echo " <a href=\"". $chemin."e-business.php\"target=\"mainFrame\"><b>E-Business</b></a><br>" ;
echo " <a href=\"". $chemin."systemesreseaux.php\"target=\"mainFrame\"><b>Systemes et Réseaux <br> Bases de données </b></a><br>" ;
echo " <a href=\"". $chemin."etudesdevs.php\"target=\"mainFrame\"><b>Etudes et Dév.</b></a><br>" ;
echo " <a href=\"". $chemin."maitriseouvrage.php\"target=\"mainFrame\"><b>Maitrise et Ouvrage</b></a><br>" ;
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
// Contacts
echo "<div id=\"MContacts\" style=\"position:absolute; left:170px; top:0px; width:90px; height:90px; z-index:3; visibility: hidden;\" onMouseOut=\"MM_showHideLayers('MContacts','','hide')\" onMouseOver=\"MM_showHideLayers('MContacts','','show')\"> ";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"4\" cellspacing=\"0\" bordercolor=\"#040B38\" bgcolor=\"#FFFFFF\">";
echo "<tr>";
echo "<td valign=\"top\" class=\"smalltxt\">";
echo " <a href=\"".$chemin."quifaitquoi.php\"target=\"mainFrame\"><b>Qui fait quoi ?</b><br></a>" ;
echo " <a href=\"".$chemin."noustrouver.php\"target=\"mainFrame\"><b>Nous trouver</b></a>" ;
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
// Recrutement
echo "<div id=\"MRecrutement\" style=\"position:absolute; left:370px; top:0px; width:100px; height:90px; z-index:4; visibility: hidden;\" onMouseOut=\"MM_showHideLayers('MRecrutement','','hide')\" onMouseOver=\"MM_showHideLayers('MRecrutement','','show')\"> ";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"4\" cellspacing=\"0\" bordercolor=\"#040B38\" bgcolor=\"#FFFFFF\">";
echo "<tr>";
echo "<td valign=\"top\" class=\"smalltxt\">";
echo "<a href=\"".$chemin."recrutement.php\"target=\"mainFrame\"><b>Recrutement</b></a><br>" ;
echo "<a href=\"".$chemin."ressources.php\"target=\"mainFrame\"><b>Ressources</b></a><br>" ;
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
// Nos References
echo "<div id=\"MNosreferences\" style=\"position:absolute; left:262px; top:0px; width:100px; height:90px; z-index:5; visibility: hidden;\" onMouseOut=\"MM_showHideLayers('MNosreferences','','hide')\" onMouseOver=\"MM_showHideLayers('MNosreferences','','show')\"> ";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"4\" cellspacing=\"0\" bordercolor=\"#040B38\" bgcolor=\"#FFFFFF\">";
echo "<tr>";
echo "<td valign=\"top\" class=\"smalltxt\">";
echo "<a href=\"".$chemin."nosclients.php\"target=\"mainFrame\"><b>Nos clients</b></a><br>" ;
echo "<a href=\"".$chemin."partenaires.php\"target=\"mainFrame\"><b>Nos partenaires</b></a>" ;
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
//ressources
echo "<div id=\"MRessources\" style=\"position:absolute; left:450px; top:0px; width:160px; height:90px; z-index:6; visibility: hidden;\" onMouseOut=\"MM_showHideLayers('MRessources','','hide')\" onMouseOver=\"MM_showHideLayers('MRessources','','show')\"> ";
echo "<table width=\"100%\" border=\"1\" cellpadding=\"4\" cellspacing=\"0\" bordercolor=\"#040B38\" bgcolor=\"#FFFFFF\">";
echo "<tr>";
echo "<td valign=\"top\" class=\"smalltxt\">";
echo " <a href=\"". $chemin."ressourcenconstruction.php\"target=\"mainFrame\"><b>Ressources disponnibles</b></a>" ;
echo " <a href=\"mailto:
[email protected]?subject=Recherche de colaborateur\"target=\"mainFrame\"><b>Demande de ressource</b></a>" ;
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
// Intra-groupe
echo "<div id=\"MIntra-groupe\" style=\"position:absolute; left:700px; top:0px; width:100px; height:90px; z-index:7; visibility: hidden;\" onMouseOut=\"MM_showHideLayers('MIntra-groupe','','hide')\" onMouseOver=\"MM_showHideLayers('MIntra-groupe','','show')\"> ";
echo " <table width=\"100%\" border=\"1\" cellpadding=\"4\" cellspacing=\"0\" bordercolor=\"#040B38\" bgcolor=\"#FFFFFF\">";
echo " <tr> ";
echo " <td valign=\"top\" class=\"smalltxt\"> ";
echo " <a href=\"http://td-intragroup.com/ \" target=\"blank\"><b>Intra groupe</b></a><br> ";
echo "</td></tr>";
echo "</table>";
echo "</div>";
}[/code]
voici la création du ss-menu qui pose probleme
cette fonction est ensuite appeler dans tte les autre page[/code]