User:Iritscen/TestSpace.js: Difference between revisions

oops, this.id is supposed to be within the JS
(trying to capture span by ID)
(oops, this.id is supposed to be within the JS)
Line 33: Line 33:
         {
         {
             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);"));
         }
         }
     }
     }