System/js/color.js

(开头部分) 2KB

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

// JScript 文件
var  highlightcolor='#c1ebff';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
function  changeto(){
source=event.srcElement ? event.srcElement : event.target;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentNode;
source=source.parentNode;
cs  =  source.children;
if(cs[1]!=null)
{
    if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
    for(i=0;i<cs.length;i++){
        cs[i].style.backgroundColor=highlightcolor;
    }
}
}

function  changeback(){
if(document.all)
{
if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
return;
}
else
{
if  (source.id=="nc")
return;
}
if(cs[1]!=null)
{
    if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
    for(i=0;i<cs.length;i++){
	    cs[i].style.backgroundColor="";
    }
}
}

if(!document.all)
tab_color_onload();
function tab_color_onload()
{
    if(document.readyState == "complete")
    {
        document.getElementById("GridView1").style.border="1px solid #B5D6E6";
    }
    else
    {
        setTimeout('tab_color_onload()',0);
    }
}

/*firefox*/ 
function __firefox(){ 
    HTMLElement.prototype.__defineGetter__("runtimeStyle", __element_style); 
    window.constructor.prototype.__defineGetter__("event", __window_event); 
    Event.prototype.__defineGetter__("srcElement", __event_srcElement); 
后面还有 31 行代码,购买后查看完整代码

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

AI 解读

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

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