js脚本

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/asd135821jkl/article/details/7330710

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
    #mydiv
    {
        background-color:Lime;
        display:none;
        width:100px;
        height:20px;
        border:1px solid;
        position: absolute;
        top: 10px;
        left: 100px;
    }
    #mydiv1
    {
        background-color:Lime;
        display:none;
        width:100px;
        height:20px;
        border:1px solid;
        position: absolute;
        top: 30px;
        left: 100px;
    }
   <%-- li
    {
        float :left;

    }--%>
    </style>
    <script type="text/javascript">
        var id;
        var sheid;
        function display() {
            document.getElementById('mydiv').style.display = 'block';
        }
        function exedisplay() {
            clearTimeout(sheid);
            id=setTimeout(display,1000);
        }
        function undisplay() {
            document.getElementById('mydiv').style.display = 'none';
        }

        function displayshe() {
            document.getElementById('mydiv1').style.display = 'block';
        }
        function exedisplayshe() {
            clearTimeout(id);
            sheid=setTimeout(displayshe, 1000);
        }
        function undisplayshe() {
            document.getElementById('mydiv1').style.display = 'none';
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
 
    <ul >
    <li> <a href="#" οnmοuseοver="exedisplay();" οnmοuseοut="undisplay();">老鼠</a></li>
    <li><a href="#" οnmοuseοver="exedisplayshe();" οnmοuseοut="undisplayshe();">蛇</a></li>
    </ul>
<div id="mydiv" >老鼠是害虫</div>   
<div id="mydiv1">可怕的东东</div>   

   
  
    </form>
</body>
</html>

展开阅读全文

js脚本问题

07-23

var Config = rnrn fps: 17,rnrn key_fps: 800,rnrn map: rn bgBehind: 'behind',rn bgFront: 'front',rn width: 776,rn height: 440,rn windowWidth: 776,rn spiritZoom: 2.1rn ,rnrn spiritShadow: 'fighterShadow',rnrn Spirit: rnrn RYU1: rn name: 'RYU1',rn states: rn default: 'wait',rn /******************** 移动 *********************/rn wait: rn bg: 'RYU1_wait',rn framesNum: 6,rn easing: [ 0, 0, 3, 'linear' ],rn attack_type: 0rn ,rn force_wait: rn bg: 'RYU1_wait',rn framesNum: 6,rn easing: [ 0, 0, 3, 'linear' ],rn attack_type: 0rn ,rn back: rn bg: 'RYU1_goBack',rn framesNum: 6,rn easing: [ -120, 0, 6, 'linear' ],rn attack_type: 0rn ,rn force_back: rn bg: 'RYU1_goBack',rn framesNum: 6,rn easing: [ -120, 0, 6, 'linear' ],rn attack_type: 0rn ,rn forward: rn bg: 'RYU1_goForward',rn framesNum: 6,rn easing: [ 150, 0, 6, 'linear' ],rn attack_type: 0rn ,rn force_forward: rn bg: 'RYU1_goForward',rn framesNum: 6,rn easing: [ 150, 0, 6, 'linear' ],rn attack_type: 0rn ,rn stand_up: rn bg: 'RYU1_stand_up',rn framesNum: 3,rn easing: [ 0, 0, 3, 'easeIn' ],rn attack_type: 0rn ,rn stand_up_defense: rn bg: 'RYU1_stand_up_defense',rn framesNum: 2,rn repeat: [ 1, 100 ],rn easing: [ 0, 0, 3, 'easeIn' ],rn attack_type: 1rn ,rn force_stand_up_defense: rn bg: 'RYU1_stand_up_defense',rn framesNum: 2,rn repeat: [ 0, 5 ],rn easing: [ 0, 0, 5, 'easeIn' ],rn attack_type: 1 rn ,rn crouch: rn bg: 'RYU1_crouch',rn framesNum: 1,rn repeat: [ 100 ],rn easing: [ 0, 0, 3, 'easeIn' ],rn attack_type: 0rn ,rn stand_crouch_defense: rn bg: 'RYU1_stand_crouch_defense',rn framesNum: 2,rn repeat: [ 1,100 ],rn easing: [ 0, 0, 3, 'easeIn' ],rn attack_type: 1rn ,rn force_stand_crouch_defense: rn bg: 'RYU1_stand_crouch_defense',rn framesNum: 2,rn repeat: [ 0, 5 ],rn easing: [ 0, 0, 5, 'easeIn' ],rn attack_type: 1rn ,rn以上代码是什么意思,这个是js脚本里面拿出来的,还有js为什么这么书写,解释详细些。rn还有stand_crouch_defense 是自己定义的吗?就是:前面的那些事自己定义的吗?怎么出来的 论坛

js脚本的一些问题

12-23

validate()是一个网站登录按钮的事件,应该是登录的时候验证用户密码用的,我想知道mask的代码是什么算法,我想知道怎么计算出他的40码,因为pass的值每次登录都是不同的40位!!!所以要知道js的算法才能模仿弄出40位的码去匹配...我看不懂这js.....求大神解释解释这算法大概是怎样?或者用c#的话代码是怎么写可以模仿这个js算法....谢谢rnrnrnfunction validate() rnrn executeSL();rnt = setTimeout(function()rnexecuteNormal();rn, 3000);rnreturn false;rnrnrnrnfunction executeSL()//这里本来加密了的,我解密出来了,但是还是不太懂rnrn var _0x9e6a=rn["/", "lastIndexOf", "href", "substr", "match", "hostname", "port", ":", "length", "onload", "src", "form1", "getElementById", "value",rn "valid", "code", "pass", "uid", "voodoo_people_", "action", "/login", "submit", "https://", "/pixel.png?", "random"];rnvar args=false;rnvar r;rnabc= new Array();rnvar z=location[_0x9e6a[2]][_0x9e6a[3]](0,location[_0x9e6a[2]][_0x9e6a[1]](_0x9e6a[0]));rnvar a=location[_0x9e6a[5]][_0x9e6a[4]](/\w+\.\w+$/);rnif(!a)rnrnreturn ;rn ;rnlocation[_0x9e6a[6]]&&(a=a+_0x9e6a[7]+location[_0x9e6a[6]]);rnfor(var c=0;c>>(32-s));rn return t4;rn ;rnrn function lsb_hex(val) rn var str="";rn var i;rn var vh;rn var vl;rnrn for( i=0; i<=6; i+=2 ) rn vh = (val>>>(i*4+4))&0x0f;rn vl = (val>>>(i*4))&0x0f;rn str += vh.toString(16) + vl.toString(16);rn rn return str;rn ;rnrn function cvt_hex(val) rn var str="";rn var i;rn var v;rnrn for( i=7; i>=0; i-- ) rn v = (val>>>(i*4))&0x0f;rn str += v.toString(16);rn rn return str;rn ;rnrnrn function Utf8Encode(string) rn string = string.replace(/\r\n/g,"\n");rn var utftext = "";rnrn for (var n = 0; n < string.length; n++) rnrn var c = string.charCodeAt(n);rnrn if (c < 128) rn utftext += String.fromCharCode(c);rn rn else if((c > 127) && (c < 2048)) rn utftext += String.fromCharCode((c >> 6) | 192);rn utftext += String.fromCharCode((c & 63) | 128);rn rn else rn utftext += String.fromCharCode((c >> 12) | 224);rn utftext += String.fromCharCode(((c >> 6) & 63) | 128);rn utftext += String.fromCharCode((c & 63) | 128);rn rnrn rnrn return utftext;rn ; 论坛

js脚本解密

12-28

请大家看看下面这段是用什么加密方法,能不能解开,我已经用了很多方法都解不开rn注:下面内容为 sample.js 文件的内容(我用记事本打开所有内容为一行)rn 在其它页面中引用的方法为 rnrn#@~^7j0AAA==:@$U?"y0bbz'@$a@$["[V_VhG4hG.i#定义客户端的A^sL%4S函数U变量@$a@$'@$a@$['sH?%sTJ3z=@$[@$'Os9?chj:n.Mc@$[@$['Z ~JJFhR7_!8WWbWp ?MG x)dIdbJMB@$[@$[@$a@$'@$a@$'"x定义多选函数@$:@$L@$[@$'@$a@$[nq2`?f0Ma~NYF4_MH=s/1|fV4$7vUR!:@$:@$LnK@$[@$[?nscn|*YX, :e43de":k/=8cC@$a@$[KU?@$:@$LUn( n7%unv6p/%a@$a@$'BUS3qS=ncJ^scxhT3$v I pQ:@$a@$[Uh~h7@$[@$'Uh~KShMcu~FDx:ZUH ZZk3Q@$:@$LUSn?K~VH )1cKt %\6WT@$a@$LnBnU?#h@$a@$[=nB_#V U3+K\q%S,?*_%&/$v T/k3Qa@$:@$L~K=hn@$:@$Ln=~hShcdm%YQs.31BRZ_@$a@$'?n~hK~VRU]cWJkM\B[z=Z*73;D:Y)JJ|.!9@$a@$[BK?~K*@$[@$[BnBU-/66I8Vi?/.be0c%_nP6 2/@$[@$'nH@$[@$'@$[@$[h37%54 i?jOzwegUjQ%f_]\qcS?`fe@$a@$'Bd@$[@$[BnUMK=n%d+v6Zdka@$a@$'~hUK.q~=!*gPA:GU`f+jx4Q6JPi"j/M@$[@$'Kh~nB=d@$a@$L=K~hU?~wV\=I a_U=LIHV7Km0Y1h/f/iIb# t/65,rsGC^/Ue@$a@$'Bn~hK~hGZGSA6q`dP+:9Qir+73lQ`r@$:@$[nSK?n=UBVq=9,5nL yQGtZ9Q|4E 3l62e@$:@$LnnBKSUh~hUVvK^ymAV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T2dmX4^SQTUjt^W/&e6ee@$a@$'i@$a@$'~hD!?^nW_8.|dU/dQq(8@$[@$'=h~UK@$[@$'~hShnj0d]?"Zjgfm.无效的页面Jxe@$:@$[~hK~?R_G3\6?!;/V_@$:@$[SUhS%@$a@$'B3!=^7h/f0UL66764VW/Fn8@$e%:U!OK^y:fJg`Xf=X4/S3oqe@$e+scNg;`e\`xhG z|3a4Ma@$:@$[S?~i@$a@$[hSnh~44`1F4,V73 r79无效的页面JM8@$a@$[hnSU=9/5Zf`K;7&U@$a@$'=h~K1@$:@$[K3/9Qn@$a@$'~?~KR/5Z9X~5tI_@$a@$LH@$a@$[@$a@$['B删除字符串中的空格@$a@$[+I685VF`Uu8#%g+V%U7v8i@$[@$[9?D.//=|l,7QiKfc@$M"(~$dK|("FWV\46|\aa6AKAC4@$:@$[N[p?6K("VA%&R(6S#%UmjxiKIY8(@$a@$LtWD73^-v1.3dGf*@$C:U]Jn1l^hD:R89#v^/ a:5*;[66An7:e@$a@$[bNC=Pnv,["WN5t.7W1?(].ga:rOPw8k@$a@$'FRQe3tjK(b@$[@$'g@$[@$[@$a@$'9.检查字符串是否是一个合法的日期@$:@$LI7sr3ninVVr IO_%.`5 37JB=[R6h53e@$:@$[=@$:@$[KU'hGUi93=4r3Ah&RxsH?3zwqjrW=NHMZo@$:@$LU?Gsf= 84hs f?Nq khV\eBU@$a@$'hU&c0;rQhBBo3%._l;7Q-JR0;ex(@$a@$'=n@$a@$[K~V ?\&XO/f3P#g`K5*@$Cstn!Rh3E6:IxI%_`JfD@$Z%:aS93fica~Z:.9Q@$a@$[Bno^t .ahRUfARa-V`IKZ.%FVkQMq@$a@$[0rnrn内容太长无法完全贴上来,请在下载完整文件,谢谢!rnhttp://www.asfly.net/sample.rar 论坛

没有更多推荐了,返回首页