Código:
Bien este menu lo quiero meter en un wordpress.var awmMenuName='menu'; var awmLibraryBuild=664; var awmLibraryPath='/awmdata'; var awmImagesPath='/awmdata'; var awmSupported=(navigator.appName + navigator.appVersion.substring(0,1)=="Netscape5" || document.all || document.layers || navigator.userAgent.indexOf('Opera')>-1 || navigator.userAgent.indexOf('Konqueror')>-1)?1:0; if (awmAltUrl!='' && !awmSupported) window.location.replace(awmAltUrl); if (awmSupported){ var nua=navigator.userAgent,scriptNo=(nua.indexOf('Safari')>-1)?7:(nua.indexOf('Gecko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:1))); var mpi=document.location,xt=""; var mpa=mpi.protocol+"//"+mpi.host; var mpi=mpi.protocol+"//"+mpi.host+mpi.pathname; if(scriptNo==1){oBC=document.all.tags("BASE");if(oBC && oBC.length) if(oBC[0].href) mpi=oBC[0].href;} while (mpi.search(/\\/)>-1) mpi=mpi.replace("\\","/"); mpi=mpi.substring(0,mpi.lastIndexOf("/")+1); var e=document.getElementsByTagName("SCRIPT"); for (var i=0;i<e.length;i++){if (e[i].src){if (e[i].src.indexOf(awmMenuName+".js")!=-1){xt=e[i].src.split("/");if (xt[xt.length-1]==awmMenuName+".js"){xt=e[i].src.substring(0,e[i].src.length-awmMenuName.length-3);if (e[i].src.indexOf("://")!=-1){mpi=xt;}else{if(xt.substring(0,1)=="/")mpi=mpa+xt; else mpi+=xt;}}}}} while (mpi.search(/\/\.\//)>-1) {mpi=mpi.replace("/./","/");} var awmMenuPath=mpi.substring(0,mpi.length-1); while (awmMenuPath.search("'")>-1) {awmMenuPath=awmMenuPath.replace("'","'");} document.write("<SCRIPT SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>"); var n=null; awmzindex=1000; } var awmSubmenusFrame=''; var awmSubmenusFrameOffset; var awmOptimize=0; var awmUseTrs=0; var awmSepr=["0","","",""]; function awmBuildMenu(){ if (awmSupported){ awmImagesColl=["fondo menu.jpg",20,30]; awmCreateCSS(1,2,1,'#FFFFFF','#0055E5',n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0); awmCreateCSS(0,2,1,'#FFFFFF','#0055E5',n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0); awmCreateCSS(0,1,0,n,'#FFFFFF',0,n,n,'outset',2,'#C0C0C0',0,0); awmCreateCSS(1,2,1,'#000000','#FFFFFF',0,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0); awmCreateCSS(0,2,1,'#FFFFFF','#7A96DF',n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0); awmCreateCSS(0,1,0,n,'#FFFFFF',n,n,n,'outset',2,'#C0C0C0',0,0); var s0=awmCreateMenu(0,0,0,0,1,0,0,0,0,10,10,0,2,2,0,0,1,n,n,100,0,0,10,10,0); it=s0.addItem(3,4,4," Item ",n,n,"","",n,n,n,n,n,0,0,2,0); it=s0.addItem(3,4,4," Item ",n,n,"","",n,n,n,n,n,0,0,2,0); var s1=it.addSubmenu(0,0,-4,2,0,0,0,5,0,1,0,n,n,100,0,1,0); it=s1.addItem(3,4,4," Item ",n,n,"","",n,n,n,n,n,0,0,2,0); it=s1.addItem(3,4,4," Item ",n,n,"","",n,n,n,n,n,0,0,2,0); it=s1.addItem(3,4,4," Item ",n,n,"","",n,n,n,n,n,0,0,2,0); it=s0.addItem(3,4,4," Item ",n,n,"","",n,n,n,n,n,0,0,2,0); s0.pm.buildMenu(); }}
La pregunta es la siguiente. Como? Donde lo guardo este archivo? como llamo al menu? estoy estancado y llevo toda la mañana buscando respuesta.
Muchas gracias
Un saludo