Javascript code for processing table tables. For details about js learning, refer.
The Code is as follows:
Var picarry = {};
Var lnkarry = {};
Var ttlarry = {};
Function FixCode (str ){
Return str. replace ("'", "= ");
}
Var t = document. getElementById ("pictable ");
Var rl = t. rows. length;
Var baseu = document. URL. replace (/(http. * \/) (. *)/, "$1 ");
If (baseu. indexOf ("/servlet/")> = 0)
Baseu = baseu. replace ("/servlet /","/");
Var txt = "";
For (var I = 0; I Try {
Picarry [I] = t. rows [I]. cells [0]. childNodes [0]. src;
Lnkarry [I] = t. rows [I]. cells [2]. innerHTML;
Ttlarry [I] = FixCode (t. rows [I]. cells [1]. innerHTML );
Document. getElementById ("li_jimg" + I). innerHTML = '<\/a> ';
Alert (picarry [I]);
} Catch (e ){
}
}
Document. write ("
<\/A>
- "+ Ttlarry [0] +" <\/a> <\/li>
- "+ Ttlarry [1] +" <\/a> <\/li>
- "+ Ttlarry [2] +" <\/a> <\/li>
- "+ Ttlarry [3] +" <\/a> <\/li>
- "+ Ttlarry [4] +" <\/a> <\/li>
- "+ Ttlarry [5] +" <\/a> <\/li>
- "+ Ttlarry [6] +" <\/a> <\/li> <\/ul> <\/p> ");