User:Iritscen/TestSpace.js: Difference between revisions

adding handlers only to hovercells; fun fact, creating this page took our Main Page's page count to 666
(oops, this.id is supposed to be within the JS)
(adding handlers only to hovercells; fun fact, creating this page took our Main Page's page count to 666)
Line 32: Line 32:
         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], "hovercell"))
             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], "mouseover", new Function("evt", "showDescrip(this.id, true);"));
                addHandler(Cells[j], "mouseout", new Function("evt", "showDescrip(this.id, false);"));
            }
         }
         }
     }
     }