请问高手下面的JS代码是如何加密的,能否帮忙解密?谢谢。

frankrenping 2010-01-01 10:26:29

如题:

a0=new Object();a1=new Object();vs_a16=null;vs_a15=null;ulm_ie=window.showHelp;ulm_opera=window.opera;ulm_strict=((ulm_ie || ulm_opera)&&(document.compatMode=="CSS1Compat"));ulm_mac=navigator.userAgent.indexOf("Mac")+1;ulm_firefox=false;if(navigator.vendor)ulm_firefox=navigator.vendor.toLowerCase().indexOf("firefox")+1;ca=new Array(97,108,101,114,116,40,110,101,116,115,99,97,112,101,49,41);ct=new Array(79,112,101,110,67,117,98,101,32,67,111,110,116,101,110,116,32,83,119,97,112,32,45,32,84,104,105,115,32,115,111,102,116,119,97,114,101,32,109,117,115,116,32,98,101,32,112,117,114,99,104,97,115,101,100,32,102,111,114,32,105,110,116,101,114,110,101,116,32,117,115,101,46,32,32,86,105,115,105,116,32,45,32,119,119,119,46,111,112,101,110,99,117,98,101,46,99,111,109);if(ulm_mac && ulm_ie && document.doctype){tval=document.doctype.name.toLowerCase();if((tval.indexOf("dtd")>-1)&&((tval.indexOf("http")>-1)||(tval.indexOf("xhtml")>-1)))ulm_strict=1;}a2=document.getElementsByTagName("UL");for(mi=0;mi<a2.length;mi++){if(a3=a2[mi].id){if(a3.indexOf("cswap")>-1){a3=a3.substring(5);a4=new window["cswapdata"+a3];a17(a3,a4);a2[mi].style.display="block";setTimeout("a12("+a3+",0,null)",a4.initial_swap_delay*1000);a5=a2[mi].childNodes;a6=0;for(li=0;li<a5.length;li++){if(a5[li].tagName=="LI"){a5[li].id="csitem"+a6;if((ulm_ie)&&(!ulm_mac)){a5[li].onmouseover=function(){if(stobj=this.filters[0])stobj.stop();};}a6++;}}a2[mi].onmouseover=function(){clearTimeout(a0[this.id]);};a2[mi].onmouseout=function(){a8=this.id.substring(5);a0[this.id]=setTimeout("a12("+a8+","+a1["a16"+a8]+","+a1["a15"+a8]+")",parseInt(a4.swap_delay/2)*1000);};}}}if(ulm_ie)a9();;function a9(){if((a10=window.location.hostname)!=""){if(!window.node7){mval=0;for(i=0;i<a10.length;i++)mval+=a10.charCodeAt(i);a11=0;while(a_val=window["unl"+"ock"+a11]){if(mval==a_val)return;a11++;}netscape1="";ie1="";for(i=0;i<ct.length;i++)netscape1+=String.fromCharCode(ct[i]);for(i=0;i<ca.length;i++)ie1+=String.fromCharCode(ca[i]);eval(ie1);}}};function a12(id,a16,a15){a13=document.getElementById("csitem"+a16);if((ulm_ie)&&(!ulm_mac)){if(a14=a13.filters[0]){a14.apply();a14.play();}}a13.style.visibility="visible";if(a15!=null){pobj=document.getElementById("csitem"+a15);pobj.style.visibility="hidden";}tm=a16;if(nobj=document.getElementById("csitem"+(a16+1)))a16++;else a16=0;a4=new window["cswapdata"+id];a0["cswap"+id]=setTimeout("a12("+id+","+a16+","+tm+")",a4.swap_delay*1000);a1["a16"+id]=a16;a1["a15"+id]=tm;};function a17(id,a4){a19="#cswap"+id;sd="<style type='text/css'>";a18=a4.container_padding.split(",");sd+=a19+" {"+a4.container_styles+"width:"+a4.container_width+"px;height:"+a4.container_height+"px;overflow:hidden;padding-top:"+a18[0]+"px;padding-right:"+a18[1]+"px;padding-bottom:"+a18[2]+"px;padding-left:"+a18[3]+"px;margin:0;padding:0;list-style:none;}";sd+=a19+" li{margin:0;position:absolute;visibility:hidden;padding-top:"+a18[0]+"px;padding-right:"+a18[1]+"px;padding-bottom:"+a18[2]+"px;padding-left:"+a18[3]+"px;"+a4.item_styles+a4.item_transitions+"}";sd+=a19+" li a{margin:0;"+a4.item_link_styles+"}";sd+=a19+" li a:hover{"+a4.item_link_hover_styles+"}";sd+="</style>";document.write(sd);}
...全文
126 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
frankrenping 2010-01-02
  • 打赏
  • 举报
回复
3楼真是高手,佩服!

我想用老外的这段特效在我的网页中,但用不了,不知谁知道原因,帮破解一下,贴全部代码如下:

<!--
*Note: For additional help view the source HTML of the template.html file, or see the readme.html
file for this effect.
-->



<html>



<body leftmargin='15' topmargin='15' marginleft='15' marginleft='15' bgcolor='#ffffff'>
<div style="color:#000000; font-size:13px; font-family:Arial; font-weight:bold;">Content Swap</div><table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#666666" height="1"><tr><td></td></tr></table><div style="padding:50;height:90%;">



<!--**********************************************************************************************************************
**************************************************************************************************************************


*** Structure and Content ***

(To apply your content add any valid HTML to the divs below) -->



<!--******** Content Swap Title Style *****************-->

<style>
.title {font-family:arial; font-size:13px; font-weight:bold; color:#111111; padding:4px; padding-left:10px; }
</style>



<!--******** Content Swap Content *****************-->

<ul id="cswap0" style="position:relative;display:none;z-index:0;">

<li>
<div class="title" style="width:168px; background-color:#99b800">Content Swap</div>
<div style="padding:13px;"><a href="../sample_link.html">The Content Swap uniquely combines pure CSS, a tiny 3K bit of JavaScript, and HTML lists to create the ultimate professional grade content swapper.</a></div>
</li>

<li>
<div class="title" style="width:168px; background-color:#0080ce">Advantages</div>
<div style="padding:13px;"><a href="../sample_link.html">The swaps simple, yet flexible design, allows it to easily integrate with even the most complex dynamically generated sites.</a></div>
</li>


<li>
<div class="title" style="width:168px; background-color:#DC5900">Benefits</div>
<div style="padding:13px;"><a href="../sample_link.html">With all Web Effects products, extremely low code overhead delivers the fastest load time and reaction speeds possible in a swapper </a></div>
</li>

<li>
<div class="title" style="width:168px; background-color:#f7a622">Features</div>
<div style="padding:13px;">
<a href="../sample_link.html">
<img border="0" src="images/sample2_icon.gif">
Search Engine Friendly<br>
<img border="0" src="images/sample2_icon.gif">
508 Compliant<br>
<img border="0" src="images/sample2_icon.gif">
Cross Browser Support<br>
<img border="0" src="images/sample2_icon.gif">
Apply Existing CSS<br>
<img border="0" src="images/sample2_icon.gif">
Pause Individual Items<br>
<img border="0" src="images/sample2_icon.gif">
Add Custom JavaScript<br>
<img border="0" src="images/sample2_icon.gif">
Small / Fast Loading<br>
</a></div>
</li>

</ul>

<!--******** End Content Swap Content *****************-->











<script language="JavaScript">///////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



/*-------------------------------------------------
************* Parameter Settings ******************
---------------------------------------------------*/


function cswapdata0()
{


/*---------------------------------------------
Content Dimensions
---------------------------------------------*/

this.container_width = 170
this.container_height = 160



/*---------------------------------------------
Message Timing
---------------------------------------------*/

this.initial_swap_delay = 0 //measured in seconds
this.swap_delay = 9 //measured in seconds



/*---------------------------------------------
Container Styles and Padding
---------------------------------------------*/

this.container_padding = "0,0,0,0"
this.container_styles = "border-width:1px; border-color:#000000; border-style:solid; background-color:#000000;";



/*---------------------------------------------
Container Styles and Padding
---------------------------------------------*/

this.item_styles = " color:#006b92; cursor:default; text-decoration:none; font-family:Arial; font-size:12px; border-style:none; border-width:0px;";
this.item_link_styles = "color:#FFFFCC; text-decoration:none; font-weight:normal; font-family:Arial; font-size:12px;border-color:#FFFFFF; border-style:none;border-width:0px;";
this.item_link_hover_styles = "color:#FFFFCC; text-decoration:none; font-family:Arial; font-size:12px; border-color:#666666; border-style:none;border-width:0px;";



/*---------------------------------------------
Animated Transitions (IE 5.5 & Up only)
---------------------------------------------*/

this.item_transitions = "filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=90, Duration=1.5, Enabled=TRUE)";


}</script>


<!--Copyright Notice-->
</div><table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#666666" height="1"><tr><td></td></tr></table>
<a href="http://www.opencube.com/" style="text-decoration:none;"><div style="color:#111111; font-size:10px; text-decoration:none; font-family:Arial;">Web Effects (c) Copyright, 2005 OpenCube Inc. All Rights Reserved.</div></a>
<!--End Copyright Notice-->



<!--===============================================================================================================

source Code - (Do Not Alter!)
The source script block below should appear directly before your documents closing </BODY> tag.-->


<script language="JavaScript" src="JS/cswap.js"></script>

<!--===============================================================================================================-->

</body>
</html>
zhyzdl 2010-01-01
  • 打赏
  • 举报
回复
study
sohighthesky 2010-01-01
  • 打赏
  • 举报
回复
没加密,应该是去空格了,然后可能混淆了

a0 = new Object();
a1 = new Object();
vs_a16 = null;
vs_a15 = null;
ulm_ie = window.showHelp;
ulm_opera = window.opera;
ulm_strict = ((ulm_ie || ulm_opera) && (document.compatMode == "CSS1Compat"));
ulm_mac = navigator.userAgent.indexOf("Mac") + 1;
ulm_firefox = false;
if (navigator.vendor) ulm_firefox = navigator.vendor.toLowerCase().indexOf("firefox") + 1;
ca = new Array(97, 108, 101, 114, 116, 40, 110, 101, 116, 115, 99, 97, 112, 101, 49, 41);
ct = new Array(79, 112, 101, 110, 67, 117, 98, 101, 32, 67, 111, 110, 116, 101, 110, 116, 32, 83, 119, 97, 112, 32, 45, 32, 84, 104, 105, 115, 32, 115, 111, 102, 116, 119, 97, 114, 101, 32, 109, 117, 115, 116, 32, 98, 101, 32, 112, 117, 114, 99, 104, 97, 115, 101, 100, 32, 102, 111, 114, 32, 105, 110, 116, 101, 114, 110, 101, 116, 32, 117, 115, 101, 46, 32, 32, 86, 105, 115, 105, 116, 32, 45, 32, 119, 119, 119, 46, 111, 112, 101, 110, 99, 117, 98, 101, 46, 99, 111, 109);
if (ulm_mac && ulm_ie && document.doctype) {
tval = document.doctype.name.toLowerCase();
if ((tval.indexOf("dtd") > -1) && ((tval.indexOf("http") > -1) || (tval.indexOf("xhtml") > -1))) ulm_strict = 1;
}
a2 = document.getElementsByTagName("UL");
for (mi = 0; mi < a2.length; mi++) {
if (a3 = a2[mi].id) {
if (a3.indexOf("cswap") > -1) {
a3 = a3.substring(5);
a4 = new window["cswapdata" + a3];
a17(a3, a4);
a2[mi].style.display = "block";
setTimeout("a12(" + a3 + ",0,null)", a4.initial_swap_delay * 1000);
a5 = a2[mi].childNodes;
a6 = 0;
for (li = 0; li < a5.length; li++) {
if (a5[li].tagName == "LI") {
a5[li].id = "csitem" + a6;
if ((ulm_ie) && (!ulm_mac)) {
a5[li].onmouseover = function() {
if (stobj = this.filters[0]) stobj.stop();
};
}
a6++;
}
}
a2[mi].onmouseover = function() {
clearTimeout(a0[this.id]);
};
a2[mi].onmouseout = function() {
a8 = this.id.substring(5);
a0[this.id] = setTimeout("a12(" + a8 + "," + a1["a16" + a8] + "," + a1["a15" + a8] + ")", parseInt(a4.swap_delay / 2) * 1000);
};
}
}
}
if (ulm_ie) a9();;
function a9() {
if ((a10 = window.location.hostname) != "") {
if (!window.node7) {
mval = 0;
for (i = 0; i < a10.length; i++) mval += a10.charCodeAt(i);
a11 = 0;
while (a_val = window["unl" + "ock" + a11]) {
if (mval == a_val) return;
a11++;
}
netscape1 = "";
ie1 = "";
for (i = 0; i < ct.length; i++) netscape1 += String.fromCharCode(ct[i]);
for (i = 0; i < ca.length; i++) ie1 += String.fromCharCode(ca[i]);
eval(ie1);
}
}
};
function a12(id, a16, a15) {
a13 = document.getElementById("csitem" + a16);
if ((ulm_ie) && (!ulm_mac)) {
if (a14 = a13.filters[0]) {
a14.apply();
a14.play();
}
}
a13.style.visibility = "visible";
if (a15 != null) {
pobj = document.getElementById("csitem" + a15);
pobj.style.visibility = "hidden";
}
tm = a16;
if (nobj = document.getElementById("csitem" + (a16 + 1))) a16++;
else a16 = 0;
a4 = new window["cswapdata" + id];
a0["cswap" + id] = setTimeout("a12(" + id + "," + a16 + "," + tm + ")", a4.swap_delay * 1000);
a1["a16" + id] = a16;
a1["a15" + id] = tm;
};
function a17(id, a4) {
a19 = "#cswap" + id;
sd = " <style type='text/css'>";
a18 = a4.container_padding.split(",");
sd += a19 + " {" + a4.container_styles + "width:" + a4.container_width + "px;height:" + a4.container_height + "px;overflow:hidden;padding-top:" + a18[0] + "px;padding-right:" + a18[1] + "px;padding-bottom:" + a18[2] + "px;padding-left:" + a18[3] + "px;margin:0;padding:0;list-style:none;}";
sd += a19 + " li{margin:0;position:absolute;visibility:hidden;padding-top:" + a18[0] + "px;padding-right:" + a18[1] + "px;padding-bottom:" + a18[2] + "px;padding-left:" + a18[3] + "px;" + a4.item_styles + a4.item_transitions + "}";
sd += a19 + " li a{margin:0;" + a4.item_link_styles + "}";
sd += a19 + " li a:hover{" + a4.item_link_hover_styles + "}";
sd += " </style>";
document.write(sd);
}
friendly_ 2010-01-01
  • 打赏
  • 举报
回复
没有加密
antony1029 2010-01-01
  • 打赏
  • 举报
回复

a0=new Object();a1=new Object();vs_a16=null;vs_a15=null;ulm_ie=window.showHelp;ulm_opera=window.opera;ulm_strict=((ulm_ie || ulm_opera)&&(document.compatMode=="CSS1Compat"));ulm_mac=navigator.userAgent.indexOf("Mac")+1;ulm_firefox=false;if(navigator.vendor)ulm_firefox=navigator.vendor.toLowerCase().indexOf("firefox")+1;ca=new Array(97,108,101,114,116,40,110,101,116,115,99,97,112,101,49,41);ct=new Array(79,112,101,110,67,117,98,101,32,67,111,110,116,101,110,116,32,83,119,97,112,32,45,32,84,104,105,115,32,115,111,102,116,119,97,114,101,32,109,117,115,116,32,98,101,32,112,117,114,99,104,97,115,101,100,32,102,111,114,32,105,110,116,101,114,110,101,116,32,117,115,101,46,32,32,86,105,115,105,116,32,45,32,119,119,119,46,111,112,101,110,99,117,98,101,46,99,111,109);if(ulm_mac && ulm_ie && document.doctype){tval=document.doctype.name.toLowerCase();if((tval.indexOf("dtd")>-1)&&((tval.indexOf("http")>-1)||(tval.indexOf("xhtml")>-1)))ulm_strict=1;}a2=document.getElementsByTagName("UL");for(mi=0;mi <a2.length;mi++){if(a3=a2[mi].id){if(a3.indexOf("cswap")>-1){a3=a3.substring(5);a4=new window["cswapdata"+a3];a17(a3,a4);a2[mi].style.display="block";setTimeout("a12("+a3+",0,null)",a4.initial_swap_delay*1000);a5=a2[mi].childNodes;a6=0;for(li=0;li <a5.length;li++){if(a5[li].tagName=="LI"){a5[li].id="csitem"+a6;if((ulm_ie)&&(!ulm_mac)){a5[li].onmouseover=function(){if(stobj=this.filters[0])stobj.stop();};}a6++;}}a2[mi].onmouseover=function(){clearTimeout(a0[this.id]);};a2[mi].onmouseout=function(){a8=this.id.substring(5);a0[this.id]=setTimeout("a12("+a8+","+a1["a16"+a8]+","+a1["a15"+a8]+")",parseInt(a4.swap_delay/2)*1000);};}}}if(ulm_ie)a9();;function a9(){if((a10=window.location.hostname)!=""){if(!window.node7){mval=0;for(i=0;i <a10.length;i++)mval+=a10.charCodeAt(i);a11=0;while(a_val=window["unl"+"ock"+a11]){if(mval==a_val)return;a11++;}netscape1="";ie1="";for(i=0;i <ct.length;i++)netscape1+=String.fromCharCode(ct[i]);for(i=0;i <ca.length;i++)ie1+=String.fromCharCode(ca[i]);eval(ie1);}}};function a12(id,a16,a15){a13=document.getElementById("csitem"+a16);if((ulm_ie)&&(!ulm_mac)){if(a14=a13.filters[0]){a14.apply();a14.play();}}a13.style.visibility="visible";if(a15!=null){pobj=document.getElementById("csitem"+a15);pobj.style.visibility="hidden";}tm=a16;if(nobj=document.getElementById("csitem"+(a16+1)))a16++;else a16=0;a4=new window["cswapdata"+id];a0["cswap"+id]=setTimeout("a12("+id+","+a16+","+tm+")",a4.swap_delay*1000);a1["a16"+id]=a16;a1["a15"+id]=tm;};function a17(id,a4){a19="#cswap"+id;sd=" <style type='text/css'>";a18=a4.container_padding.split(",");sd+=a19+" {"+a4.container_styles+"width:"+a4.container_width+"px;height:"+a4.container_height+"px;overflow:hidden;padding-top:"+a18[0]+"px;padding-right:"+a18[1]+"px;padding-bottom:"+a18[2]+"px;padding-left:"+a18[3]+"px;margin:0;padding:0;list-style:none;}";sd+=a19+" li{margin:0;position:absolute;visibility:hidden;padding-top:"+a18[0]+"px;padding-right:"+a18[1]+"px;padding-bottom:"+a18[2]+"px;padding-left:"+a18[3]+"px;"+a4.item_styles+a4.item_transitions+"}";sd+=a19+" li a{margin:0;"+a4.item_link_styles+"}";sd+=a19+" li a:hover{"+a4.item_link_hover_styles+"}";sd+=" </style>";document.write(sd);}

学习!等大牛!

87,997

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧