[Javascript] simple array
Peter-Paul Koch
gassinaumasis at hotmail.com
Thu May 3 02:43:58 CDT 2001
>function show(obj) {
> //show the obj here
> for(i = 1; i < 7; i++)
> if (obj != content + [i]) hide(content + [i]);
>}
if (obj != eval('content' + i)) hide('content' + i)
eval() means: make a string, then interpret that string as a JavaScript
command. In this case it makes the string 'content' + i, which as JavaScript
command is the variable you want to compare.
ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
More information about the Javascript
mailing list