hDistance = 20 vDistance = 0 buttonsInfo = new Array("About Us", "Contact Us", "Gallery One", "Gallery Two", "Gallery Three", "Visual", "Guest", "Clients", "Account", "Search" ) for (i =0;i<10;i++){ this.createTextField("textHolder"+i, i, 120+(i*vDistance),120+(i*hDistance),100,19); this["textHolder"+i].text = buttonsInfo[i]; this["textHolder"+i].border = true; }