Salve a tutti,
Non sono molto esperto in javascript (e nel mio caso credo si parli anche un pò di javascript più avanzato), sto realizzando un menu a tendina con Chrome CSS Drop Down Menu (http://www.dynamicdrive.com/dynamici...rome/index.htm ) , siccome il sottomenu è piu largo del bottone padre, e nel complesso il menu occupa il 100% della larghezza del sito, arrivato all'ultimo bottone la tendina sfora i margini del sito. Guardando lo script ho visto che il problema è stato risolto solo quando la tendina sfora i margini della finestra del browser. Come faccio a dirgli che deve spostarsi anche quando sfora i margini del sito? ovvero (penso) una determinata larghezza.
Questo è il codice che credo riguardi questa opzione:
codice:
clearbrowseredge:function(obj, whichedge){

	var edgeoffset=0

	if (whichedge=="rightedge"){

		var windowedge=document.all && !window.opera? this.standardbody.scrollLeft+this.standardbody.clientWidth-15 : window.pageXOffset+window.innerWidth-15

		this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth

		if (windowedge-this.dropmenuobj.x < this.dropmenuobj.contentmeasure)  //move menu to the left?

			edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth

	}

	else{

		var topedge=document.all && !window.opera? this.standardbody.scrollTop : window.pageYOffset

		var windowedge=document.all && !window.opera? this.standardbody.scrollTop+this.standardbody.clientHeight-15 : window.pageYOffset+window.innerHeight-18

		this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight

		if (windowedge-this.dropmenuobj.y < this.dropmenuobj.contentmeasure){ //move up?

			edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight

			if ((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure) //up no good either?

				edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge

		}

	}

	return edgeoffset

}
mentre il file completo si trova qui: http://www.dynamicdrive.com/dynamici...mejs/chrome.js

Qualcuno può aiutarmi?
Spero di essere stato meno confusionale possibile .

Grazie!