How to download ckplayer video

2019-4-1 写技术

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 html

评论(0) 浏览(118)

[JS]Load pictures lasily

2019-3-23 写技术

/* 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

评论(0) 浏览(61)

[JS]Multy language by javascript

2017-11-29 写技术

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

评论(0) 浏览(204)

[JS]A demo of websockets on javascript

2017-11-6 写技术

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

评论(0) 浏览(240)

[JS]漂亮的chart.js实例——js图表

2017-8-1 写技术

<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

评论(0) 浏览(785)

[JS]分级图片加载

2017-4-4 写技术

在页面中使用分级图片加载的方法一个: <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

评论(0) 浏览(310)

[JS]Call functions or values between sub iframe and parent page

2017-3-29 写技术

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

评论(0) 浏览(350)

[JS]Change a searching options of a web page

2017-3-28 写技术

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

评论(0) 浏览(321)

[JS]用一段代码去遍历QQ号码

2017-3-1 写技术

用一段代码去遍历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

评论(0) 浏览(366)

[JS]How to set a navigation hight light dynamic

2017-1-25 写技术

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

评论(0) 浏览(282)

Powered by anycle 湘ICP备15001973号