选项卡HTML代码如下:<div class="MTitle_01 MTitle_01Cl">
<h2 class="title"><a href="http://video.sina.com.cn/top/" target="_blank">视频总排行</a></h2>
<span class="menu">
<label id="S_Label_03_01"><a href="http://video.sina.com.cn/top/border/index.html?requestOrder=1" target="_blank">新闻视频</a></label>
<label id="S_Label_03_02" class="selected"><a href="http://v.sina.com.cn/v/z/hotvideo/index.html" target="_blank">播客视频</a></label>
<label id="S_Label_03_03"><a href="http://blog.sina.com.cn/lm/rank/index.html" target="_blank">博文排行</a></label>
</span>
</div>

解决方案 »

  1.   

    解一下就好了
    function SubShowClass(h,j,k,l,m){
      this.version="1.21";
      this.author="mengjia";
      this.parentObj=SubShowClass.$(h);
      if(this.parentObj==null&&h!="none"){
        throw new Error("SubShowClass(ID)\u53c2\u6570\u9519\u8bef:ID \u5bf9\u50cf\u5b58\u5728!(value:"+h+")");
      }
      if(!SubShowClass.childs){
        SubShowClass.childs=[];
      }
      this.ID=SubShowClass.childs.length;
      SubShowClass.childs.push(this);
      this.lock=false;
      this.label=[];
      this.defaultID=k==null?0:k;
      this.selectedIndex=this.defaultID;
      this.openClassName=l==null?"selected":l;
      this.closeClassName=m==null?"":m;
      this.mouseIn=false;
      var n=Function("SubShowClass.childs["+this.ID+"].mouseIn = true"),mouseOutFunc=Function("SubShowClass.childs["+this.ID+"].mouseIn = false");
      if(h!="none"){
        if(this.parentObj.attachEvent){
          this.parentObj.attachEvent("onmouseover",n);
        }else {
          this.parentObj.addEventListener("mouseover",n,false);
        }
      }
      if(h!="none"){
        if(this.parentObj.attachEvent){
          this.parentObj.attachEvent("onmouseout",mouseOutFunc);
        }else {
          this.parentObj.addEventListener("mouseout",mouseOutFunc,false);
        }
      }
      if(typeof (j)!="string"){
        j="onmousedown";
      }
      j=j.toLowerCase();
      switch(j){
      case "onmouseover":
        this.eventType="mouseover";
        break ;
      case "onmouseout":
        this.eventType="mouseout";
        break ;
      case "onclick":
        this.eventType="click";
        break ;
      case "onmouseup":
        this.eventType="mouseup";
        break ;
      default:
        this.eventType="mousedown";
      }
      this.addLabel=function(a,b,c,d,e){
        if(SubShowClass.$(a)==null&&a!="none"){
          throw new Error("addLabel(labelID)\u53c2\u6570\u9519\u8bef:labelID \u5bf9\u50cf\u5b58\u5728!(value:"+a+")");
        }
        var f=this.label.length;
        if(c==""){
          c=null;
        }
        this.label.push([a,b,c,d,e]);
        var g=Function("SubShowClass.childs["+this.ID+"].select("+f+")");
        if(a!="none"){
          if(SubShowClass.$(a).attachEvent){
            SubShowClass.$(a).attachEvent("on"+this.eventType,g);
          }else {
            SubShowClass.$(a).addEventListener(this.eventType,g,false);
          }
        }
        if(f==this.defaultID){
          if(a!="none"){
            SubShowClass.$(a).className=this.openClassName;
          }
          if(SubShowClass.$(b)){
            SubShowClass.$(b).style.display="";
          }
          if(h!="none"){
            if(c!=null){
              this.parentObj.style.background=c;
            }
          }
          if(d!=null){
            eval(d);
          }
        }else {
          if(a!="none"){
            SubShowClass.$(a).className=this.closeClassName;
          }
          if(SubShowClass.$(b)){
            SubShowClass.$(b).style.display="none";
          }
        }
        if(SubShowClass.$(b)){
          if(SubShowClass.$(b).attachEvent){
            SubShowClass.$(b).attachEvent("onmouseover",n);
          }else {
            SubShowClass.$(b).addEventListener("mouseover",n,false);
          }
          if(SubShowClass.$(b).attachEvent){
            SubShowClass.$(b).attachEvent("onmouseout",mouseOutFunc);
          }else {
            SubShowClass.$(b).addEventListener("mouseout",mouseOutFunc,false);
          }
        }
      };
      this.select=function(a,b){
        if(typeof (a)!="number"){
          throw new Error("select(num)\u53c2\u6570\u9519\u8bef:num \u4e0d\u662f number \u7c7b\u578b!(value:"+a+")");
        }
        if(b!=true&&this.selectedIndex==a){
          return ;
        }
        var i;
        for(i=0;i<this.label.length;i++){
          if(i==a){
            if(this.label[i][0]!="none"){
              SubShowClass.$(this.label[i][0]).className=this.openClassName;
            }
            if(SubShowClass.$(this.label[i][1])){
              SubShowClass.$(this.label[i][1]).style.display="";
            }
            if(h!="none"){
              if(this.label[i][2]!=null){
                this.parentObj.style.background=this.label[i][2];
              }
            }
            if(this.label[i][3]!=null){
              eval(this.label[i][3]);
            }
          }else {
            if(this.selectedIndex==i||b==true){
              if(this.label[i][0]!="none"){
                SubShowClass.$(this.label[i][0]).className=this.closeClassName;
              }
              if(SubShowClass.$(this.label[i][1])){
                SubShowClass.$(this.label[i][1]).style.display="none";
              }
              if(this.label[i][4]!=null){
                eval(this.label[i][4]);
              }
            }
          }
        }
        this.selectedIndex=a;
      };
      this.random=function(){
        if(arguments.length!=this.label.length){
          throw new Error("random()\u53c2\u6570\u9519\u8bef:\u53c2\u6570\u6570\u91cf\u4e0e\u6807\u7b7e\u6570\u91cf\u4e0d\u7b26!(length:"+arguments.length+")");
        }
        var a=0,i;
        for(i=0;i<arguments.length;i++){
          a+=arguments[i];
        }
        var b=Math.random(),percent=0;
        for(i=0;i<arguments.length;i++){
          percent+=arguments[i]/a;
          if(b<percent){
            this.select(i);
            break ;
          }
        }
      };
      this.autoPlay=false;
      var o=null;
      this.spaceTime=5000;
      this.play=function(a){
        if(typeof (a)=="number"){
          this.spaceTime=a;
        }
        clearInterval(o);
        o=setInterval("SubShowClass.childs["+this.ID+"].autoPlayFunc()",this.spaceTime);
        this.autoPlay=true;
      };
      this.autoPlayFunc=function(){
        if(this.autoPlay==false||this.mouseIn==true){
          return ;
        }
        this.nextLabel();
      };
      this.nextLabel=function(){
        var a=this.selectedIndex;
        a++;
        if(a>=this.label.length){
          a=0;
        }
        this.select(a);
        if(this.autoPlay==true){
          clearInterval(o);
          o=setInterval("SubShowClass.childs["+this.ID+"].autoPlayFunc()",this.spaceTime);
        }
      };
      this.previousLabel=function(){
        var a=this.selectedIndex;
        a--;
        if(a<0){
          a=this.label.length-1;
        }
        this.select(a);
        if(this.autoPlay==true){
          clearInterval(o);
          o=setInterval("SubShowClass.childs["+this.ID+"].autoPlayFunc()",this.spaceTime);
        }
      };
      this.stop=function(){
        clearInterval(o);
        this.autoPlay=false;
      };
    }
    SubShowClass.$=function(a){
      if(document.getElementById){
        return eval("document.getElementById(\""+a+"\")");
      }else {
        return eval("document.all."+a);
      }
    };
      

  2.   

    TO: varlj 大哥, 能不能講下你是怎么解的? 用什么工具?解開就能看懂了.....真是太謝謝了.... 
      

  3.   


    //其实很简单的,eval说明eval()中间的function(p,a,c,k,e,r) 返回的是字符串,而且是解码好的JS文本,所以只要把()中间的内容显示出来就好了,改成下面这样就好了
    var str = (function(p,a,c,k,e,r) //str就是明文了

    e=function(c) 

    return(c <a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('s 7(h,j,k,l,m){5.1i="1.1j";5.1k="1l";5.t=7.$(h);6(5.t==p&&h!="9"){L M N("7(w)参数错误:w 对像存在!(V:"+h+")")};6(!7.u){7.u=[]};5.w=7.u.q;7.u.1b(5);5.1m=r;5.8=[];5.W=k==p?0:k;5.B=5.W;5.X=l==p?"1n":l;5.Y=m==p?"":m;5.O=r;x n=Z("7.u["+5.w+"].O = z"),G=Z("7.u["+5.w+"].O = r");6(h!="9"){6(5.t.v){5.t.v("10",n)}y{5.t.H("11",n,r)}};6(h!="9"){6(5.t.v){5.t.v("12",G)}y{5.t.H("13",G,r)}};6(14(j)!="1o"){j="1p"};j=j.1q();1r(j){P"10":5.A="11";I;P"12":5.A="13";I;P"1s":5.A="1t";I;P"1u":5.A="1v";I;1w:5.A="1x"};5.1c=s(a,b,c,d,e){6(7.$(a)==p&&a!="9"){L M N("1c(1d)参数错误:1d 对像存在!(V:"+a+")")};x f=5.8.q;6(c==""){c=p};5.8.1b([a,b,c,d,e]);x g=Z(\'7.u[\'+5.w+\'].C(\'+f+\')\');6(a!="9"){6(7.$(a).v){7.$(a).v("1y"+5.A,g)}y{7.$(a).H(5.A,g,r)}};6(f==5.W){6(a!="9"){7.$(a).Q=5.X};6(7.$(b)){7.$(b).D.R=""};6(h!="9"){6(c!=p){5.t.D.1e=c}};6(d!=p){J(d)}}y{6(a!="9"){7.$(a).Q=5.Y};6(7.$(b)){7.$(b).D.R="9"}};6(7.$(b)){6(7.$(b).v){7.$(b).v("10",n)}y{7.$(b).H("11",n,r)};6(7.$(b).v){7.$(b).v("12",G)}y{7.$(b).H("13",G,r)}}};5.C=s(a,b){6(14(a)!="15"){L M N("C(1f)参数错误:1f 不是 15 类型!(V:"+a+")")};6(b!=z&&5.B==a){S};x i;16(i=0;i <5.8.q;i++){6(i==a){6(5.8[i][0]!="9"){7.$(5.8[i][0]).Q=5.X};6(7.$(5.8[i][1])){7.$(5.8[i][1]).D.R=""};6(h!="9"){6(5.8[i][2]!=p){5.t.D.1e=5.8[i][2]}};6(5.8[i][3]!=p){J(5.8[i][3])}}y 6(5.B==i||b==z){6(5.8[i][0]!="9"){7.$(5.8[i][0]).Q=5.Y};6(7.$(5.8[i][1])){7.$(5.8[i][1]).D.R="9"};6(5.8[i][4]!=p){J(5.8[i][4])}}};5.B=a};5.17=s(){6(E.q!=5.8.q){L M N("17()参数错误:参数数量与标签数量不符!(q:"+E.q+")")};x a=0,i;16(i=0;i <E.q;i++){a+=E[i]};x b=1z.17(),18=0;16(i=0;i <E.q;i++){18+=E[i]/a;6(b <18){5.C(i);I}}};5.F=r;x o=p;5.K=1A;5.1B=s(a){6(14(a)=="15"){5.K=a};T(o);o=19("7.u["+5.w+"].U()",5.K);5.F=z};5.U=s(){6(5.F==r||5.O==z){S};5.1g()};5.1g=s(){x a=5.B;a++;6(a>=5.8.q){a=0};5.C(a);6(5.F==z){T(o);o=19("7.u["+5.w+"].U()",5.K)}};5.1C=s(){x a=5.B;a--;6(a <0){a=5.8.q-1};5.C(a);6(5.F==z){T(o);o=19("7.u["+5.w+"].U()",5.K)}};5.1D=s(){T(o);5.F=r}};7.$=s(a){6(1a.1h){S J(\'1a.1h("\'+a+\'")\')}y{S J(\'1a.1E.\'+a)}}' 
    ,62 
    ,103 
    ,'|||||this|if|SubShowClass|label|none||||||||||||||||null|length|false|function|parentObj|childs|attachEvent|ID|var|else|true|eventType|selectedIndex|select|style|arguments|autoPlay|mouseOutFunc|addEventListener|break|eval|spaceTime|throw|new|Error|mouseIn|case|className|display|return|clearInterval|autoPlayFunc|value|defaultID|openClassName|closeClassName|Function|onmouseover|mouseover|onmouseout|mouseout|typeof|number|for|random|percent|setInterval|document|push|addLabel|labelID|background|num|nextLabel|getElementById|version|21|author|mengjia|lock|selected|string|onmousedown|toLowerCase|switch|onclick|click|onmouseup|mouseup|default|mousedown|on|Math|5000|play|previousLabel|stop|all'.split('|') 
    ,0 
    ,{} 

    )//随便在页面上建立一个div,把内容显示在里面就好了,不用document.write是因为有可能里面有像&nbsp;之类的东西,所以就用innerText了
    document.getElementById("div").innerText = str;//显示出来后,找个代码格式化工具格式化一下就好了