Salut a tous j'ai besoin d'aide pour inserer un menu en javascript a partir de "allwebmenu" logiciel qui genere des menu au format javascript.
J'aimerait savoir comment faire pour l'inserer sur une page web pour qu'il y soit visible???
code menu:
---------------------------------------------------------------------
var awmMenuName='Menu';
var awmLibraryPath='/awmData-Menu';
var awmImagesPath='/awmData-Menu';
var awmSupported=(navigator.appName + navigator.appVersion.substring(0,1)=="Netscape5" || document.all || document.layers || navigator.userAgent.indexOf('Opera')>-1)?1:0;
if (awmAltUrl!='' && !awmSupported) window.location.replace(awmAltUrl);
if (awmSupported){
var awmMenuPath;
if (document.all) mpi=document.all['awmMenuPathImg-Menu'].src;
if (document.layers) mpi=document.images['awmMenuPathImg-Menu'].src;
if (navigator.appName + navigator.appVersion.substring(0,1)=="Netscape5" || navigator.userAgent.indexOf('Opera')>-1) mpi=document.getElementById('awmMenuPathImg-Menu').src;
awmMenuPath=mpi.substring(0,mpi.length-16);
var nua=navigator.userAgent,scriptNo=(nua.indexOf('Gecko')>-1)?2(document.layers)?3(nua.indexOf('Opera')>-1)?4(nua.indexOf('Mac')>-1)?5:1)));
document.write("<SCRIPT SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>" );
var n=null;
awmzindex=1000;
}
var awmSubmenusFrame='';
var awmSubmenusFrameOffset;
var awmOptimize=0;
function awmBuildMenu(){
if (awmSupported){
awmCreateCSS(1,2,1,'#FFFFFF','#004080',n,'bold 14px sans-serif',n,'solid',1,'#004080',0,4)
awmCreateCSS(0,1,0,n,n,n,n,n,'solid',1,n,0,0);
awmCreateCSS(1,2,1,'#000000','#FF80FF',n,'20px Comic Sans MS',n,'solid',1,'#000000',0,1)
awmCreateCSS(0,2,1,'#000000','#FF00FF',n,'20px Comic Sans MS',n,'inset',1,'#000000',0,1)
awmCreateCSS(1,2,1,'#000000','#8080FF',n,'20px Comic Sans MS',n,'solid',1,'#000000',0,1)
awmCreateCSS(0,2,1,'#000000','#C0C0C0',n,'20px Comic Sans MS',n,'inset',1,'#000000',0,1)
var s0=awmCreateMenu(0,0,0,0,1,0,0,0,0,30,30,0,0,1,0,"INDEX","",n,1,0,1,0,n,n);
it=s0.addItem(2,3,3,"Amateur",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Anal",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Bi-sexuel",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Bizarre",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Ejac",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Gay",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Gros seins",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Hetero",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Lesbiennes",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"S.M.",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Scato",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Teens",n,n,"","",n,n,n,n,n);
it=s0.addItem(2,3,3,"Uro",n,n,"","",n,n,n,n,n);
it=s0.addItem(4,5,5,"PayPal",n,n,"","",n,n,n,n,n);
it=s0.addItem(4,5,5,"Contact",n,n,"","",n,n,n,n,n);
s0.pm.buildMenu();
}}
----------------------------------------------------------------------
fin de code
Donc si quelqu'un a la solution qu'il me la donne parce que je voit j'ai essayer de le mettre entre deux balise jvascript mais ca ne change rien a la page.
Voila merci