Can anyone help with this?

admin

Administrator
Staff member
This function won't run when I use spot in style.display line. I know it's making the correct name as I tested it with the alert. If I hardcode in one of the ID's it generating that part of it works fine. Does anyone know how to fix my problem.

function showall(){
var i = 1;
do
{
var spot;
spot = 'menu'+i+'outline';
alert(spot);
spot.style.display='';
i+=1;
}
while(i<5);
}

thanks
tom
 
Back
Top