[JS]How to transform from float to buffer by javascript

2021-9-9 写技术

<head> <title>Float to Buffer</title> </head> Input Float: <textarea id="in"></textarea> Output ASCII: <textarea id="out"></textarea> <input type="button" value="Transfor" onclick="transf();" /> <br /> <br /> &...

阅读全文>>

标签: JS

评论(0) 浏览(916)

[JS]Transform from string to ASCII

2021-9-9 写技术

<head> <title>String to ASCII</title> </head> Input String: <textarea id="in"></textarea> Output ASCII: <textarea id="out"></textarea> <input type="button" value="Transfor" onclick="transf();" /> <br /> <br /> ...

阅读全文>>

标签: JS

评论(0) 浏览(929)

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) 浏览(2927)

[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) 浏览(1257)

[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) 浏览(1400)

[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) 浏览(1466)

[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) 浏览(2565)

[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) 浏览(1578)

[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) 浏览(1506)

[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) 浏览(1480)

Powered by anycle 湘ICP备15001973号-1