Script
文章平均质量分 50
solaris_navi
https://www.linkedin.com/in/deytian/
展开
-
My Desktop :)
body bgcolor="black">script language = "javascript">function loadframe(url){ mainone.innerHTML = " + url + " width=100% height=500>iframe>";}function loadframefrominput(url){ var tmpstr;原创 2008-12-29 16:36:00 · 789 阅读 · 0 评论 -
Ajax Initializer
function xmlhttpPost() { var xhr; var method = "GET"; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xhr = new XMLHttpRequest(); if ("withCredentials" in xhr)原创 2012-04-19 21:44:21 · 438 阅读 · 0 评论 -
JSONP - jQuery, Passing by Cross Site Policy
JSONP - Json with Paddingfunction myfunction(data) { }原创 2012-04-19 20:36:00 · 514 阅读 · 0 评论 -
Add new function to a prototype in javascript
// add escape function to StringString.prototype.escape = function() { return this.replace(/&/gm, '&').replace(//gm, '>');};原创 2012-05-02 23:15:03 · 661 阅读 · 0 评论 -
Using encodeURIComponent to avoid errors caused by special chars
var url = "/tryrest/analytics/addQuery?pid="+pid+"&qname="+encodeURIComponent(qname)+"&sqlstmt="+encodeURIComponent(qscript)+"&dtep="+encodeURIComponent(qedpt);原创 2012-04-30 21:02:54 · 597 阅读 · 0 评论 -
AJAX Sample
Simple Ajax Examplefunction xmlhttpPost(strURL) { var xmlHttpReq = false; var self = this; // Mozilla/Safari if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest转载 2012-04-17 22:33:16 · 667 阅读 · 0 评论 -
Get element by ID in SAPUI5
var homeItem = sap.ui.getCore().byId(current_pid); homeItem.destroy();原创 2012-04-27 21:26:26 · 1336 阅读 · 0 评论 -
Netstat to to find number of connections from each IP
Hello,Below is command to find out number of connections from each ip to server using netstat , sort, uniq, awk.netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c转载 2012-01-21 07:05:36 · 528 阅读 · 0 评论 -
Split table
Sub runtest() Dim i i = 1 Dim a, b a = 1 b = 1 For i = 1 To 350 If i Mod 2 = 0 Then Tabelle2.Cel原创 2011-09-29 22:11:38 · 665 阅读 · 0 评论 -
html文本框input特效
输入框景背景透明:鼠标划过输入框,输入框背景色变色:<INPUT value="Type here" NAME="user_pass" TYPE="text" SIZE="29" onmouseover="this.style.borderColor='black';原创 2011-04-12 18:58:00 · 1237 阅读 · 0 评论 -
Debian 下配置 apache2 的 SSL
sudo apt-get install opensslsudo apt-get install ssl-certsudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf //etc/ssl/private/apache2.p转载 2011-01-21 23:35:00 · 2924 阅读 · 0 评论 -
合并分割的文件
好久没写blog啦 其实合并分割的文件很简单不需要任何工具哦因为咱的操作系统就是工具哦 在Windows下: type FILENAME.TYPE.* > FILENAME.TYPE 在Linux/Unix/Mac下:cat FILENAME.TYPE.* > FILENAME.TYPE 就可以啦 assumption就是1. 文件是原创 2011-06-23 01:25:00 · 734 阅读 · 0 评论 -
GB2312 --> UTF8 BY VBSRCIPT
/*========================================================================= * Intro 拖动所有要转换的gb2312编码文件到这个文件上,程序会将它们自动转换为utf-8编码文件 * FileName GB2312.To.UTF-8.vbs * Author转载 2009-08-11 03:00:00 · 527 阅读 · 0 评论 -
提取HTML代码中的文字的ASP实现
用ewebeditor编辑完成的内容存到数据库是html代码,有时候需要在主页显示前多少个字符用做预览。如果直接读取存到数据库的部分会含有html代码,这样就会显示错误。这个函数的功能就是读取html代码中间的文字内容,可以设定读取的前length个字符。还是比较有用的。函数代码如下:**************************************************函转载 2009-03-02 22:40:00 · 1176 阅读 · 0 评论 -
How to detect Safari, Chrome, IE, Firefox and Opera browser?
http://jsfiddle.net/9zxvE/http://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browservar isOpera = !!(window.opera && window.opera.version); // Opera 8.0+转载 2012-12-03 20:05:41 · 795 阅读 · 0 评论