好像是去调用Google 某个API。 

解决方案 »

  1.   

    后面括号中的一大串字符是做什么的啊?
    括号中的结构是: ('一段代码', 62, 75, '一段以|号隔开的关键字'.split('|'), 0, {})这样独立的个括号,不知道起了什么作用
      

  2.   

    被csdn转义了没法看了,再发一遍,把代码加上ubb标记
      

  3.   

    翻译之后的代码:
    function Chart(E,D,A,C,B){
    this.parent=document.getElementById(E);
    this.xl=D;
    this.yl=A;
    this.barw=(document.all)?C:(C-2);
    this.chartw=0;
    this.charth=B+((document.all)?0:-2);
    this.minpv=this.yl[0];
    this.maxpv=this.yl[this.yl.length-1]
    }
    Chart.prototype.GetPVHeight=function(B){
    var A=Math.round(((B-this.minpv)*this.charth/(this.maxpv-this.minpv)))+((document.all)?2:0);
    if(A>this.charth){
    A=this.charth
    }
    return A
    };Chart.prototype.Create=function(fname, ename){
    var A=document.createElement("div");
    A.className="chart";
    A.style.height=this.charth+"px";
    this.parent.appendChild(A);
    var K=document.createElement("div");
    A.appendChild(K);
    K.className="hit";
    var J=0;
    for(var G=0;G<this.xl.length;G+=2){
    var B=this.GetPVHeight(this.xl[G]);
        var I=this.xl[G+1];
        var F=document.createElement("div");
        A.appendChild(F);
        F.className="bar";
        F.style.width=this.barw+"px";
        F.style.height=B+"px";
        F.style.top=this.charth-B-1+"px";
        F.style.left=(J-1)+"px";
        F.innerHTML="&nbsp;";
        F.ohit=K;
        F.onmouseover=function(){
        this.className="barhl";
        this.ohit.style.display="";
        this.ohit.innerHTML=this.id.substring(3,this.id.length);
        this.ohit.style.left=this.style.left;
        this.ohit.style.top=parseInt(this.style.top)-parseInt(this.ohit.offsetHeight)+"px"
        };
        F.onmouseout=function(){
        this.className="bar";
        this.ohit.style.display="none"
        };
        var E=document.createElement("div");
        A.appendChild(E);
        E.style.width=this.barw+"px";
        E.style.top=(document.all)?this.charth:this.charth+3+"px";
        var C=I.indexOf(".");
        F.id="bar"+I.substring(0,C) + fname + I.substring(C+1,I.length)+ ename + "&nbsp;&nbsp;" + this.xl[G];
        if(G%4==0){
        if((I.substring(C+1,I.length)=="1"||I.substring(C+1,I.length)=="2")){
        E.className="titxhl";
        E.style.left=(J-4)+"px";
        E.innerHTML=I
        }else{
        E.className="titx";
        E.style.left=(J-1)+"px";
        E.innerHTML=I.substring(C+1,I.length)
        }
        }else{
        E.className="titx";
        E.style.left=(J-1)+"px";
        E.innerHTML=""
        }
        J+=this.barw+((document.all)?-1:1)
        }
    this.chartw=J+((document.all)?1:-1);
    A.style.width=this.chartw+"px";
    for(var G=0;G<this.yl.length;G++){
    var D=this.GetPVHeight(this.yl[G]);
    if(G!=0&&G!=this.yl.length-1){
    var H=document.createElement("div");
    A.appendChild(H);
    H.className="liney";
    H.style.width=(this.chartw-((document.all)?1:-1))+"px";
    H.style.top=(this.charth-D-1)+"px"
    }
    var E=document.createElement("div");
    A.appendChild(E);
    E.className="tity";
    E.style.width="35px";
    E.style.top=(this.charth-D-2)+"px";
    E.style.left=-42+"px";
    E.innerHTML=this.yl[G]
    }
    };
      

  4.   

    哈哈,不是我厉害呀,我也看不懂,我调试了一下午才明白eval()里面到底是什么东西
    谢谢大家!