[JS]用一段代码去遍历QQ号码
用一段代码去遍历QQ号码,然后你就可以方便地在文件里查找自己喜欢的号码了, 不过现在玩QQ号码的人应该很少了——我玩的不是号码: // 地址:http://haoma.qq.com/shop.html var ret = ""; var i=0; function nextqq(){ $(".search_mod_list ul li").each(function(){ var str = $(this).find("a").attr("href"); str = str.split('num='); str = str[1...标签: JS
[JS]How to set a navigation hight light dynamic
How to set a navigation hight light dynamic? There is a javascript solution: var url = window.location.pathname + window.location.search; url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, ""); $(".sNav").find("a[href='" + url...标签: JS
[JS]How to decode xml string
There's some part of my project. You must include the jquery first. var xmlDoc = $.parseXML( this.result ); var idx = 0; $(xmlDoc).find('Worksheet Table Row').each(function(){ }标签: JS
[JS]How to read local file in JS
How to read local file in JS? function jsReadFiles(files) { if (files.length) { var file = files[0]; var reader = new FileReader(); if (/text+/.test(file.type)){ reader.onload = function(){ $('body').append('<pre>' + this.result + '</pre>'); } ...标签: JS
[JS]拼图游戏外挂开发实战
我在玩诛仙3,这个游戏本身做得很好,很精致,同时它的官网会时不进推出些活动,今天晚上就是跨年了,完美给我们的礼物就是一个拼图游戏,好像拼得越快资历越好,我这人手拙眼穷,肯定是最慢的。但我有代码呀,呵呵! F12下去,打开了游戏页面的前端代码,看到它把一张图放到了5X5的矩阵里,形成25个小格子,其实每个格子就是一个DIV,每个DIV用background来显示图片,但图片是同一张,也就是原图,只是做了偏移,background-position不同而已…… &nb...标签: JS
[JS]脚本自动查找未注册的域名
这是我在万网注册域名时写的脚本,两位的已经试过了,完全没有可注册的,现在是在搜三位的。 var url_wang = "https://wanwang.aliyun.com/domain/searchresult/"; var cq=['a','b','c','d','e','f','g','h','i','j', 'k','l','m','n','o','p','q','r','s','t', 'u','v','w','x','y','z']; var a=2; var b=6; var c=-1; var result = ""; fu...标签: JS
[JS]Object and String in ajax function
The difference between json object and json string while post with ajax: var login = function(){ var user = $("input[name=username]").val(); var password = $("input[name=password]").val(); var data = { username:user, password:password }; data = JSON.stringify(data); co...标签: JS
[JS]javascript solution for md5
(function($){ var rotateLeft = function(lValue, iShiftBits) { return (lValue << iShiftBits) | (lValue >>> (32 - iShiftBits)); } var addUnsigned = function(lX, lY) { var lX4, lY4, lX8, lY8, lResult; lX8 = (lX & 0x80000000); lY8 = (lY & 0x80000000); lX4 = (l...标签: JS
[JS]一段特别代码分分钟让设备死机
<html> <body> <script> var total=""; var i=1; while(i++){ total = total+i.toString(); history.pushState(0,0,total); } </script> </body> </html>标签: JS
[JS]js中获取字符串型下标的方法
获取数组字符串型下标的方法: var a = []; a['aa'] = 1; a['bb'] = 2; for(var key in a){ alert(key+':'+a[key]); }标签: JS
日历
最新微语
- 有的时候,会站在分叉路口,不知道向左还是右
2023-12-26 15:34
- 繁花乱开,鸟雀逐风。心自宁静,纷扰不闻。
2023-03-14 09:56
- 对于不可控的事,我们保持乐观,对于可控的事情,我们保持谨慎。
2023-02-09 11:03
- 小时候,
暑假意味着无忧无虑地玩很长一段时间,
节假意味着好吃好喝还有很多长期不见的小朋友来玩...
长大后,
这是女儿第一个暑假,
一个半月...
2022-07-11 08:54
- Watching the autumn leaves falling as you grow older together
2018-10-25 09:45
分类
最新评论
- Goonog
i get it now :) - 萧
@Fluzak:The web host... - Fluzak
Nice blog here! Also... - Albertarive
In my opinion you co... - ChesterHep
What does it plan? - ChesterHep
No, opposite. - mojoheadz
Everything is OK!... - Josephmaigh
I just want to say t... - ChesterHep
What good topic - AnthonyBub
Certainly, never it ...