Using a variable in a command

wxdqz

New Member
Here's what I want to do. In the code below, where it has "+ name +" I want that to be the value of the "name" variable, which is a string.

function swapover(name) {
document. + name + .src = + name + Over.src; return true;
}

I have no idea if this is even possible. TIA!!!!
 
Back
Top