[JS]How to transform from float to buffer by javascript
<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
[JS]Transform from string to ASCII
<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
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
日历
最新微语
- 有的时候,会站在分叉路口,不知道向左还是右
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 ...