Ciao a tutti, sto cercando di fare una pagina che ha 2 menu a tendina e sto usando questo script:
il problema è che sul secondo menu presente nella stessa pagina non mi da la possibilità di andare ai link, ho pensato che sicuramente dovrei dare un altro id ma non son riuscito a farlo funzionare... potete darmi una mano? grazie a tutti anticipatamente, e sopratutto grazie per il servizio offerto da questo sito.codice:<script type="text/javascript"> /*********************************************** * Always Visible Combo Box- by JavaScript Kit (www.javascriptkit.com) * This notice must stay intact for usage * Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more ***********************************************/ var alwayscombo={ location: ["top", "left"], //Position of com box from window edge ["top|bottom", "left|right"] addoffset: [10, 15], //Additional offset from specified location above [vertical_offset, horizontal offset] comboid: "visiblecombo",//ID of div containing floating combo ////////Stop editing past here/////////////////// navigate:function(){ var selectobj=this.comboref.getElementsByTagName("select")[0] if (selectobj.options[selectobj.selectedIndex].value!="default") window.location=selectobj.options[selectobj.selectedIndex].value }, floatcombo:function(){ var docElement=(document.compatMode=='CSS1Compat')? document.documentElement: document.body if (this.location[0]=="top") this.comboref.style.top=0+this.addoffset[0]+"px" else if (this.location[0]=="bottom") this.comboref.style.bottom=0+this.addoffset[0]+"px" if (this.location[1]=="center") this.comboref.style.left=0+this.addoffset[1]+"px" else if (this.location[1]=="right") this.comboref.style.right=0+this.addoffset[1]+"px" }, init:function(){ this.comboref=document.getElementById(this.comboid) this.comboref.style.visibility="visible" this.floatcombo() } } if (window.addEventListener) window.addEventListener("load", function(){alwayscombo.init()}, false) else if (window.attachEvent) window.attachEvent("onload", function(){alwayscombo.init()}) </script>

Rispondi quotando