User:Iritscen/TestSpace.js: Difference between revisions

m
syntax
(first try at hovertable script)
 
m (syntax)
Line 26: Line 26:
             for (var j = 0; j < Cells.length; j++)
             for (var j = 0; j < Cells.length; j++)
             {
             {
                 if (hasClass(Cells[j], "hovertable_descrip") continue;
                 if (hasClass(Cells[j], "hovertable_descrip")) continue;
                 addHandler(Cells[j],  "mouseover", new Function("evt", "showDescrip(" + this.id + ", true);"));
                 addHandler(Cells[j],  "mouseover", new Function("evt", "showDescrip(" + this.id + ", true);"));
                 addHandler(Cells[j],  "mouseout", new Function("evt", "showDescrip(" + this.id + ", false);"));
                 addHandler(Cells[j],  "mouseout", new Function("evt", "showDescrip(" + this.id + ", false);"));