G
Guest
Hi,
As you can see from the following code, I am trying to manipulate a
large number of layers. I have read many times in the past how the
"Eval" function should be used very sparingly as it can make code run
slowly. The following works fine on my PC, however I do not know what
will happen on other platforms, so is there an alternative to "Eval"
in this instance.
for(var i=1;i<505;i++){
eval('document.all.mun'+ i +'.style.visibility=\'hidden\'')
}
I have experimented with the following but cannot get it to work
document.all.mun.style.visibility='hidden'
As you can see from the following code, I am trying to manipulate a
large number of layers. I have read many times in the past how the
"Eval" function should be used very sparingly as it can make code run
slowly. The following works fine on my PC, however I do not know what
will happen on other platforms, so is there an alternative to "Eval"
in this instance.
for(var i=1;i<505;i++){
eval('document.all.mun'+ i +'.style.visibility=\'hidden\'')
}
I have experimented with the following but cannot get it to work
document.all.mun.style.visibility='hidden'