need script help

admin

Administrator
Staff member
This is the significant parts of a script for a form to generate code for text navbars:

function process() {

var url = document.form.url.value


// TD Loop
for (t = 1; t <= cols; t++) {
table += "<td width=\"" + tdwidth + "\" align=\"" + tdalign + "\" onMouseOver=\"" + onMouseOver + "\" onMouseOut=\"" + onMouseOut + "\"><a href=http://www.webdeveloper.com/forum/archive/index.php/\"" + url + "\">\n"
table += "Link" + i +" \n"
table += "</td>\n"
}

I want form user to be able to submit up to 8 link names and their URLs. What variable would I use instead of the current one? And what would I have to put in the TD Loop rather than url and Link?
 
Back
Top