Hi all,?
i’ve got some array’s…
I want to use the data through the website.
The data is in data.js
the for staments in elm.js
and there is text in text.js with image links.
the array are used to create a Tab element
after loading there’s a link panel created with the myArray var
then the Tab’s are named with ‘test_1’ and the Tab page content with the ‘A1’.
In the A1 content is text and images the link should be
like “myArray/test/A1/myImage.jpg”
But I just cant get the array past outside the for statement’s.
var myArray=new Array(‘test’,’test_1′,’test_2′);
var test=new Array(‘A1′,’A2′,’A3′,’A4’);
var test_1=new Array(‘B1′,’B2′,’B3′,’B4’);
var test_2=new Array(‘C1′,’C2′,’C3′,’C4’);
A1=”a1″;
A2=”a2″;
A3=”a3″;
A4=”a4″;
B1=”b1″;
B2=’b2′;
B3=’b3′;
B4=’b4′;
C1=’c1′;
C2=’c2′;
C3=’c3′;
C4=’c4′;
var Link=”;
for(var b=0;b<myArray.length;b++){
var n=eval(Array[b]);
for(var q=0;q<n.length;q++){
var u=eval(n[q]);
Link=Array[b]+’/’+n[q]+’/’;
[COLOR=crimson]alert(“this is link … “+Link);
}
}
[COLOR=crimson]alert(“this is link … “+Link);