risolto cosi...può andare? (per funzionare funziona, ma chissà)
codice:function toggleMe(a){ var e=document.getElementById(a); if(!e)return true; if(e.style.height=="100px"){ e.style.height="auto";return false } else { e.style.height="100px";return false } return true; } onload = function() { divs = new Array("para1", "para2", "para3", "para4", "para5"); for (var i=0; i<divs.length; i++) { toggleMe(divs[i]); } }

Rispondi quotando