How to download ckplayer video
There is a simple program by which you can download the ckplayer video. After create the list of download URL, copy it to download tools. After download aff of the files. Use the command to compare into a big file in windows: copy/b E:\temps\*.ts E:\temps\new.ts There is the...[JS]Load pictures lasily
/* Load pictures lasily. */ $("img.data_lazy").each(function(){ var id = $(this); var data = $(this).attr("data_lazy"); var img = new Image(); img.src = data; img.onload = function(){ img.onload = null; id.attr("src", data); } });标签: JS
[JS]Multy language by javascript
var get_lan=function(){ $(".lan").each(function(){ var lan_key=$(this).attr("data_lan"); lan_key="g_lan."+lan_key; var lan_key=eval("("+lan_key+")"); $(this).text(lan_val); }) }标签: JS
[JS]A demo of websockets on javascript
ws = new WebSocket("ws:192.168.0.100:4444"); ws.onopen = function(e) { console.log("Connected"); ws.send("Hello nicholas server!"); }; ws.onclose = function(e) { console.log("Disconnected: " + e.reason); }; ws.onerror = function(e) { console.log(...标签: JS
[JS]漂亮的chart.js实例——js图表
<div style="width:600px; height:450px;"> <canvas id="canvas"></canvas> </div> <script type="text/javascript" src="Chart.min.js"></script> <script type="text/javascript"> var ctx = new Chart(document.getElementById("canvas").getContext("2d")); var op...标签: JS
[JS]分级图片加载
在页面中使用分级图片加载的方法一个: <script src="jquery.min.js"></script> <script> var acimg = function(ac_style, ac_high){ if(!ac_style){ ac_style="anycle"; } if(!ac_high){ ac_high="high"; } var _ac_filter = "img."+ac_style; $(_ac_filter).each(function(){ _ac_src = $(th...标签: JS
[JS]Call functions or values between sub iframe and parent page
I always forgotten how to call functions or values between sub iframe and parent page in javascript. Now make a demo to mark it here. Here is parent page: <iframe src="sub.html" style="width:100%; height:500px; border:1px solid gray;"></iframe> <input type="button" v...标签: JS
[JS]Change a searching options of a web page
There is a function by myself to change a searching options of a web page. function setName(name, val) { var isSet = 0; var url=window.location.search; var search = ""; if(url.length>200){ return 0; } var url_domain = window.location.href; if(url_domain.indexOf("?")!=-...标签: JS
[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
日历
最新微语
- Watching the autumn leaves falling as you grow older together
2018-10-25 09:45
- 时间不可以倒流,但空间可以
2017-08-01 09:03
- 含羞草、电磁炮;汽车工业革命
2017-05-23 22:51
- 那个点子页面加几点:
去中心化的物联网通信协议
2017-05-09 22:13
- 有一种人怀疑阴阳的存在,另有一种人会怀疑1+1=2的正确性……
2017-03-01 17:08
分类
最新评论
- terwixonse
I am from Slovenia. ... - terwixonse
Help. I am looking f... - 萧
Set environment args... - 萧
在新电脑上: ./configure ... - 萧
lib/libQtGui.so: und... - 萧
If there is error ab... - nicholas
If I add option '-no... - 萧
"make clean" before ... - nicholas
如果没有/dev/event0 那估计... - nicholas
../libtool: eval: li...