1 average score per person (repeat only once):
Javascript:var t=function (tag,s) {return (s | | Document). getElementsByTagName (tag); var n=function (name) {return Document.getelementsbyname (name)};var total=t ("var") [0].innerhtml-0;var scores=n ("Tb_ Score "); var lz=t (" A ", T (" var ") [0].parentnode) [0].innerhtml;var c={};c[lz]=lz;for (var i=0;i<scores.length;i++) { var v=t ("A", Scores[i].parentnode) [0].innerhtml;if (!c[v]) {c[v]=v;scores[i].value=scores[i].value-0+1;total--;if ( total==0) break; if (i==scores.length-1) {i=-1;c={};c[lz]=lz;}}; Alert ("OK"); void (0)
Source:
Copy Code code as follows:
var t=function (tag,s) {return (s | | Document). getElementsByTagName (tag);
var n=function (name) {return document.getelementsbyname (name)};
var total=t ("var") [0].innerhtml-0;
var scores=n ("Tb_score");
var lz=t ("A", T ("var") [0].parentnode) [0].innerhtml;
var c={};
C[lz]=lz;
for (var i=0;i<scores.length;i++) {
var v=t ("a", scores[i ].parentnode) [0].innerhtml;
if (!c[v]) {
c[v]=v;
scores[i].value=scores[i].value-0+1;
total--;
if (total==0) break;
}
if (i==scores.length-1) {I=-1;c={};c[lz]=lz;}
};
Alert ("OK");
2 average score per floor:
Javascript:var t=function (tag,s) {return (s | | Document). getElementsByTagName (tag); var n=function (name) {return Document.getelementsbyname (name)};var total=t ("var") [0].innerhtml-0;var scores=n ("Tb_ Score "); var lz=t (" A ", T (" var ") [0].parentnode) [0].innerhtml;for (Var i=0;i<scores.length;i++) {if (T (" a ", Scores[i] . parentnode) [0].innerhtml!=lz) {scores[i].value=scores[i].value-0+1;total--;if (total==0) break;} if (i==scores.length-1) i=-1;}; Alert ("OK"); void (0)
Source:
Copy Code code as follows:
var t=function (tag,s) {return (s) | | Document). getElementsByTagName (tag);
var n=function (name) {return document.getelementsbyname (name)};
var total=t ("var") [0].innerhtml-0;
var scores=n ("Tb_score");
var lz=t ("A", T ("var") [0].parentnode) [0].innerhtml;
for (Var i=0;i<scores.length;i++) {
if (t ("a", Scores[i].parentnode) [0].innerhtml!=lz) {
scores[i].value=scores[i].value-0+1;
total--;
if (total==0) break;
}
if (i==scores.length-1) i=-1;
};
Alert ("OK");
Description: Put the above code into the address of the page of the node in the bar to enter the OK, only once, otherwise there will be negative points