User:Iritscen/TestSpace.js: Difference between revisions

m
syntax
m (syntax)
m (syntax)
Line 21: Line 21:
     for (var i = 0; i < Tables.length; i++)
     for (var i = 0; i < Tables.length; i++)
     {
     {
            var Cells = Tables.getElementsByTagName("td")[0];
        var Cells = Tables.getElementsByTagName("td")[0];
            if (!Cells) continue;
        if (!Cells) continue;


            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);"));
            }
         }
         }
     }
     }