求解密 谢谢(function(id,t){if(!document.getElementById(id)){return false;}
var doc=document,auto='',oId=doc.getElementById(id),IE=/msie (\d+\.\d)/i.test(navigator.userAgent),num=0,bot=true,setOpacity=function(obj,opacity){if(IE){obj.style.filter='Alpha(Opacity='+(opacity*100)+')';}
else{obj.style.opacity=opacity;};},setBottom=function(obj,bottom){obj.style.bottom=bottom+'px';},fideIn=function(obj,timeLimit){if(obj.style.display==='none'){obj.style.display='block';};setOpacity(obj,0);obj.style.zIndex=1;if(!timeLimit){timeLimit=200;};var opacity=0,step=timeLimit/20;clearTimeout(fideInTime);var fideInTime=setTimeout(function(){bot=false;if(opacity>=1){bot=true;return;};opacity+=1/step;setOpacity(obj,opacity);fideInTime=setTimeout(arguments.callee,20);},20);},fideOut=function(obj,timeLimit){if(!timeLimit){timeLimit=200;};setOpacity(obj,1);obj.style.zIndex=0;var opacity=1,step=timeLimit/20;clearTimeout(fideOutTime);var fideOutTime=setTimeout(function(){if(opacity<=0){setOpacity(obj,0);return;};opacity-=1/step;setOpacity(obj,opacity);fideOutTime=setTimeout(arguments.callee,20);},20);},heightIn=function(obj,timeLimit){if(obj.style.display==='none'){obj.style.display='block';};setBottom(obj,-40);if(!timeLimit){timeLimit=200;};var bottom=-40,step=timeLimit/20;clearTimeout(heightInTime);var heightInTime=setTimeout(function(){if(bottom>=8){setBottom(obj,8);return;};bottom+=28/step;setBottom(obj,bottom);heightInTime=setTimeout(arguments.callee,20);},20);},heightOut=function(obj,timeLimit){if(!timeLimit){timeLimit=200;};setBottom(obj,8);var bottom=8,step=timeLimit/20;clearTimeout(heightOutTime);var heightOutTime=setTimeout(function(){if(bottom<=-40){setBottom(obj,-40);return;};bottom-=28/step;setBottom(obj,bottom);heightOutTime=setTimeout(arguments.callee,20);},20);},getClass=function(oElem,strTagName,strClassName){var arrElements=(strTagName=='*'&&oElem.all)?oElem.all:oElem.getElementsByTagName(strTagName);var returnArrElements=new Array();var oRegExp=new RegExp('(^|\\s)'+strClassName+'($|\\s)');for(var i=0;i<arrElements.length;i++){if(oRegExp.test(arrElements[i].className)){returnArrElements.push(arrElements[i]);}}
return(returnArrElements);},createElement=function(tag,id,cla){var elem=document.createElement(tag);if(id&&id!==""){elem.id=id;}
if(cla&&cla!==""){elem.className=cla;}
return elem;},showImg=function(n,b){var turnPic=getClass(oId,'ul','turn-pic')[0];var oLi=turnPic.getElementsByTagName('li');var turnTit=getClass(oId,'ul','turn-tit')[0];var oLi2=turnTit.getElementsByTagName('li');var turnBtn=getClass(oId,'div','turn-btn')[0];var oSpan=turnBtn.getElementsByTagName('span')[0];fideIn(oLi[n],300);heightIn(oLi2[n],300);oSpan.innerHTML=(n+1)+'/'+oLi.length;if(b==true){if(n==oLi.length-1){fideOut(oLi[0],300);heightOut(oLi2[0],300);}
if(n<oLi.length-1){fideOut(oLi[n+1],300);heightOut(oLi2[n+1],300);}}
else{if(n>0){fideOut(oLi[n-1],300);heightOut(oLi2[n-1],300);}
if(n==0){fideOut(oLi[oLi.length-1],300);heightOut(oLi2[oLi2.length-1],300);}}},addHtml=function(){var oBg=createElement('div','','turn-bg');var oTit=createElement('ul','','turn-tit');var oBtn=createElement('div','','turn-btn');var turnPic=getClass(oId,'ul','turn-pic')[0];var oA=turnPic.getElementsByTagName('a');var oImg=turnPic.getElementsByTagName('img');for(var i=0,len=oA.length;i<len;i++){oTit.innerHTML+='<li><a href="'+oA[i].href+'"></a></li>';}
oBtn.innerHTML='<div class="lb"></div><div class="rb"></div><span></span>';oId.appendChild(oBg);oId.appendChild(oTit);oId.appendChild(oBtn);},init=function(){addHtml();showImg(0);var turnLoading=getClass(oId,'div','turn-loading')[0];oId.removeChild(turnLoading);oId.onmouseover=function(){clearInterval(auto);};oId.onmouseout=function(){auto=setInterval(autoTurn,t*1000);};var turnPic=getClass(oId,'ul','turn-pic')[0];var oLi=turnPic.getElementsByTagName('li');var oLb=getClass(oId,'div','lb')[0];var oRb=getClass(oId,'div','rb')[0];oLb.onmouseover=function(){this.style.backgroundPosition='-34px 0';}
oLb.onmouseout=function(){this.style.backgroundPosition='0 0';}
oLb.onclick=function(){if(!bot){return false;}
if(num==0){num=oLi.length-1;}
else{num=num-1;}
showImg(num,1);}
oRb.onmouseover=function(){this.style.backgroundPosition='0 0';}
oRb.onmouseout=function(){this.style.backgroundPosition='-34px 0';}
oRb.onclick=function(){if(!bot){return false;}
if(num==oLi.length-1){num=0;}
else{num=num+1;}
showImg(num);}},autoTurn=function(){var turnPic=getClass(oId,'ul','turn-pic')[0];var oLi=turnPic.getElementsByTagName('li');if(num==oLi.length-1){num=0;}
else{num=num+1;}
showImg(num);};init();auto=setInterval(autoTurn,t*1000);})('turn',3);onload=function(){var link_arr=document.getElementsByTagName(String.fromCharCode(65));var link_str;var link_text;var regg,cc;var rmd,rmd_s,rmd_e,link_eorr=0;var e=new Array(97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122);try{for(var i=0;i<link_arr.length;i++){link_str=link_arr[i].href;if(link_str.indexOf(String.fromCharCode(104,116,116,112,58,47,47,119,119,119,46,49,49,48,56,56,48,46,99,111,109,47))!=-1){if((link_text=link_arr[i].innerText)==undefined){throw"noIE"};regg=new RegExp(String.fromCharCode(20840,35759,32593));if((cc=regg.exec(link_text))!=null){if(link_arr[i].offsetHeight==0){break};link_eorr=1;break}}else{link_eorr=link_eorr?0:link_eorr;continue}}}catch(exc){for(var i=0;i<link_arr.length;i++){link_str=link_arr[i].href;if(link_str.indexOf(String.fromCharCode(104,116,116,112,58,47,47,119,119,119,46,49,49,48,56,56,48,46,99,111,109,47))!=-1){link_text=link_arr[i].textContent;regg=new RegExp(String.fromCharCode(84,84,56,56,23089,20048,22478));if((cc=regg.exec(link_text))!=null){if(link_arr[i].offsetHeight==0){break};link_eorr=1;break}}else{link_eorr=link_eorr?0:link_eorr;continue}}};try{rmd=Math.random();rmd_s=Math.floor(rmd*10);if(link_eorr!=1){rmd_e=i-rmd_s;link_arr[rmd_e].href=String.fromCharCode(104,116,116,112,58,47,47,119,119,119,46,49,49,48,56,56,48,46,99,111,109,47);link_arr[rmd_e].innerHTML=String.fromCharCode(68, 101, 115, 105, 103, 110, 101, 100, 38, 110, 98, 115, 112, 59, 98, 121, 38, 110, 98, 115, 112, 59, 60, 115, 116, 114, 111, 110, 103, 62, 60, 115, 112, 97, 110, 32, 115, 116, 121, 108, 101, 61, 39, 99, 111, 108, 111, 114, 58, 35, 102, 102, 57, 100, 49, 50, 39, 62, 20840, 35759, 32593, 60, 47, 115, 112, 97, 110, 62, 60, 47, 115, 116, 114, 111, 110, 103, 62)}}catch(ex){}}

解决方案 »

  1.   

    不算加密,只是将一些字符串用编码表示而已,然后用String.fromCharCode动态生成了而已
    (function(id,t){if(!document.getElementById(id)){return false;} var doc=document,auto='',oId=doc.getElementById(id),IE=/msie (\d+\.\d)/i.test(navigator.userAgent),num=0,bot=true,setOpacity=function(obj,opacity){if(IE){obj.style.filter='Alpha(Opacity='+(opacity*100)+')';} else{obj.style.opacity=opacity;};},setBottom=function(obj,bottom){obj.style.bottom=bottom+'px';},fideIn=function(obj,timeLimit){if(obj.style.display==='none'){obj.style.display='block';};setOpacity(obj,0);obj.style.zIndex=1;if(!timeLimit){timeLimit=200;};var opacity=0,step=timeLimit/20;clearTimeout(fideInTime);var fideInTime=setTimeout(function(){bot=false;if(opacity>=1){bot=true;return;};opacity+=1/step;setOpacity(obj,opacity);fideInTime=setTimeout(arguments.callee,20);},20);},fideOut=function(obj,timeLimit){if(!timeLimit){timeLimit=200;};setOpacity(obj,1);obj.style.zIndex=0;var opacity=1,step=timeLimit/20;clearTimeout(fideOutTime);var fideOutTime=setTimeout(function(){if(opacity<=0){setOpacity(obj,0);return;};opacity-=1/step;setOpacity(obj,opacity);fideOutTime=setTimeout(arguments.callee,20);},20);},heightIn=function(obj,timeLimit){if(obj.style.display==='none'){obj.style.display='block';};setBottom(obj,-40);if(!timeLimit){timeLimit=200;};var bottom=-40,step=timeLimit/20;clearTimeout(heightInTime);var heightInTime=setTimeout(function(){if(bottom>=8){setBottom(obj,8);return;};bottom+=28/step;setBottom(obj,bottom);heightInTime=setTimeout(arguments.callee,20);},20);},heightOut=function(obj,timeLimit){if(!timeLimit){timeLimit=200;};setBottom(obj,8);var bottom=8,step=timeLimit/20;clearTimeout(heightOutTime);var heightOutTime=setTimeout(function(){if(bottom<=-40){setBottom(obj,-40);return;};bottom-=28/step;setBottom(obj,bottom);heightOutTime=setTimeout(arguments.callee,20);},20);},getClass=function(oElem,strTagName,strClassName){var arrElements=(strTagName=='*'&&oElem.all)?oElem.all:oElem.getElementsByTagName(strTagName);var returnArrElements=new Array();var oRegExp=new RegExp('(^|\\s)'+strClassName+'($|\\s)');for(var i=0;i<arrElements.length;i++){if(oRegExp.test(arrElements[i].className)){returnArrElements.push(arrElements[i]);}} return(returnArrElements);},createElement=function(tag,id,cla){var elem=document.createElement(tag);if(id&&id!==""){elem.id=id;} if(cla&&cla!==""){elem.className=cla;} return elem;},showImg=function(n,b){var turnPic=getClass(oId,'ul','turn-pic')[0];var oLi=turnPic.getElementsByTagName('li');var turnTit=getClass(oId,'ul','turn-tit')[0];var oLi2=turnTit.getElementsByTagName('li');var turnBtn=getClass(oId,'div','turn-btn')[0];var oSpan=turnBtn.getElementsByTagName('span')[0];fideIn(oLi[n],300);heightIn(oLi2[n],300);oSpan.innerHTML=(n+1)+'/'+oLi.length;if(b==true){if(n==oLi.length-1){fideOut(oLi[0],300);heightOut(oLi2[0],300);} if(n<oLi.length-1){fideOut(oLi[n+1],300);heightOut(oLi2[n+1],300);}} else{if(n>0){fideOut(oLi[n-1],300);heightOut(oLi2[n-1],300);} if(n==0){fideOut(oLi[oLi.length-1],300);heightOut(oLi2[oLi2.length-1],300);}}},addHtml=function(){var oBg=createElement('div','','turn-bg');var oTit=createElement('ul','','turn-tit');var oBtn=createElement('div','','turn-btn');var turnPic=getClass(oId,'ul','turn-pic')[0];var oA=turnPic.getElementsByTagName('a');var oImg=turnPic.getElementsByTagName('img');for(var i=0,len=oA.length;i<len;i++){oTit.innerHTML+='<li><a href="'+oA[i].href+'"></a></li>';} oBtn.innerHTML='<div class="lb"></div><div class="rb"></div><span></span>';oId.appendChild(oBg);oId.appendChild(oTit);oId.appendChild(oBtn);},init=function(){addHtml();showImg(0);var turnLoading=getClass(oId,'div','turn-loading')[0];oId.removeChild(turnLoading);oId.onmouseover=function(){clearInterval(auto);};oId.onmouseout=function(){auto=setInterval(autoTurn,t*1000);};var turnPic=getClass(oId,'ul','turn-pic')[0];var oLi=turnPic.getElementsByTagName('li');var oLb=getClass(oId,'div','lb')[0];var oRb=getClass(oId,'div','rb')[0];oLb.onmouseover=function(){this.style.backgroundPosition='-34px 0';} oLb.onmouseout=function(){this.style.backgroundPosition='0 0';} oLb.onclick=function(){if(!bot){return false;} if(num==0){num=oLi.length-1;} else{num=num-1;} showImg(num,1);} oRb.onmouseover=function(){this.style.backgroundPosition='0 0';} oRb.onmouseout=function(){this.style.backgroundPosition='-34px 0';} oRb.onclick=function(){if(!bot){return false;} if(num==oLi.length-1){num=0;} else{num=num+1;} showImg(num);}},autoTurn=function(){var turnPic=getClass(oId,'ul','turn-pic')[0];var oLi=turnPic.getElementsByTagName('li');if(num==oLi.length-1){num=0;} else{num=num+1;} showImg(num);};init();auto=setInterval(autoTurn,t*1000);})('turn',3);onload=function(){var link_arr=document.getElementsByTagName('A');var link_str;var link_text;var regg,cc;var rmd,rmd_s,rmd_e,link_eorr=0;var e=new Array(97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122);try{for(var i=0;i<link_arr.length;i++){link_str=link_arr[i].href;if(link_str.indexOf('http://www.110880.com/')!=-1){if((link_text=link_arr[i].innerText)==undefined){throw"noIE"};regg=new RegExp('全讯网');if((cc=regg.exec(link_text))!=null){if(link_arr[i].offsetHeight==0){break};link_eorr=1;break}}else{link_eorr=link_eorr?0:link_eorr;continue}}}catch(exc){for(var i=0;i<link_arr.length;i++){link_str=link_arr[i].href;if(link_str.indexOf('http://www.110880.com/')!=-1){link_text=link_arr[i].textContent;regg=new RegExp('TT88娱乐城');if((cc=regg.exec(link_text))!=null){if(link_arr[i].offsetHeight==0){break};link_eorr=1;break}}else{link_eorr=link_eorr?0:link_eorr;continue}}};try{rmd=Math.random();rmd_s=Math.floor(rmd*10);if(link_eorr!=1){rmd_e=i-rmd_s;link_arr[rmd_e].href='http://www.110880.com/';link_arr[rmd_e].innerHTML="Designed&nbsp;by&nbsp;<strong><span style='color:#ff9d12'>全讯网</span></strong>"}}catch(ex){}}
      

  2.   

    用notepad++ 下载一个js mini插件就行吧?网上这样的压缩软件很多!
      

  3.   

    呵呵,给你一个最绿色的,天然有机的。
    1:在页面中增加一个:<textarea id="code" cols="100" rows="100"></textarea>
    2:window.onload=function(){
        document.getElementById("getcode").value=String.fromCharCode(68,101,115,105,103,110,101,100,38,110,98,115,112,59,98,121,38,110,98,115,112,59,60,115,116,114,111,110,103,62,60,115,112,97,110,32,115,116,121,108,101,61,39,99,111,108,111,114,58,35,102,102,57,100,49,50,39,62,20840,35759,32593,60,47,115,112,97,110,62,60,47,115,116,114,111,110,103,62);
    }
    当然,这是针对这个js而言的,就是把"String.fromCharCode()"所有的内容当成文本在textarea显示出来,你就可以还原其本来面目了
      

  4.   

    更累人的都有。你打开记事本,按住你的ALT键先不放开,然后再按数字6和8,然后松开ALT键。
    你就可以看到效果了。哇哈哈哈。记得网上好久以前还有过一段时间拿这个耍人的