Web/user/javascript/UserHomeCommon.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

function CheckTable(tableName) {
   if(!document.getElementById(tableName)){return false;}
   var AllRows = document.getElementById(tableName).getElementsByTagName("tr");
   for (var i = 1; i < AllRows.length ; i++) {
        AllRows[i].onmouseover = function(){this.className = "listover";};
        AllRows[i].onmouseout = function(){this.className = "list";};
        AllRows[i].checkbox = AllRows[i].cells[0].getElementsByTagName("input")[0];
        AllRows[i].onclick = function()
        {        
            if(this.checkbox.checked == true)
            {
                this.SetCheck(false);
            }
            else
            {
                this.SetCheck(true);
            }            
        }
        AllRows[i].SetCheck = function(bool)
        {
            if(bool == true)
            {
                this.checkbox.checked = true;
                this.style.background = "#D2E3F2";
            }
            else
            {    
                this.checkbox.checked = false;
                this.style.background = "#FFFFFF";
            }
        }
        AllRows[i].checkbox.onclick = function()  //解决点击checkbox引发时间冲突,有待改善
        {
            if(document.all)
            {
                this.parentNode.parentNode.click();
            }
            else
            {
               if (this.checked == false)
               {
                this.checked = true;
               }
               else
               {
                this.checked = false;
               }
               
            }
        }; 
    }
    
   this.CheckAll = function()
   {
      for(i=1;i<AllRows.length ;i++)
      {
         AllRows[i].SetCheck(true);
      }
   }
   this.CheckNo= function()
后面还有 89 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。