Hello, first of all it's convenient to say that I'm not an expert, neither
nothing similar, just in case. I have been trying to execute this little
piece of code with no results, does anyone there can detect where the bug
is:
var labelsArray = new Array(6);
----------------------------------------------------------------------------
----------------
function objCreation()
{
for (i=0; i < labelsArray.length; i++)
{
var labelObj = {labelID:
"document.getElementById('Label"+i+"').filters.alp ha.opacity"};
labelsArray[i] = labelObj;
}
}
function over(no)
{
eval(labelsArray[no].labelID = 20);
}
----------------------------------------------------------------------------
---------------
Basically, the function objCreation creates 6 objects with only one
attribute (labelID) each one and stores it into an Array called labelArray
Then the function over(no) is loaded when the MouseOver event takes place.
The problem is that since
labelsArray[no].labelID is equal to the string
document.getElementById('Label0').filters.alpha.op acity for example, it is
not recognized as a functional statement, as a result it doesn't do anything
if I assign the value 20 in this case.
The website is at : http://new.vanara.com/ , if someone wants to see it.
Thanks in advance,
Javier.