摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;MySQLDriverCS是MySQL数据库的一个免费开源的.NET驱动程序,... 阅读全文
posted @ 2010-07-03 17:17 Blue Sky ...... 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Google Search实现其实通过传递查询关键字构建一个url,然后根据Http请求获取相关内容以json格式返回到客户端。关键是url的构建格式:http://www.google.cn/complete/search?hl=en&client=suggest&js=true&qu=" + Request.QueryString["qu"] 下面根据url创建http... 阅读全文
posted @ 2010-07-03 11:05 Blue Sky ...... 阅读(329) 评论(1) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--执行左移右移函数:var$get=function(id){return"string"==typeofid?document.getElementById(id):id;};varExtend=fu... 阅读全文
posted @ 2010-07-03 10:55 Blue Sky ...... 阅读(480) 评论(0) 推荐(0) 编辑
摘要: function StringBuilder(value) { this.strings = new Array(""); this.append(value); } // Appends the given value to the end of this instance. StringBuilder.prototype.append = function (value) { if (valu... 阅读全文
posted @ 2010-07-03 10:48 Blue Sky ...... 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--setInterval(fun,time)函数fun以间隔time循环执行clearInterval(timer)清除定时器setTimeout(fun,time)函数fun在time后执行一次下面实... 阅读全文
posted @ 2010-07-03 10:47 Blue Sky ...... 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 获取图片大小:var originImage = new Image();function GetImageWidth(oImage) { if (originImage.src != oImage.src) originImage.src = oImage.src; return originImage.width;}function GetImageHeight(oImage) { if (o... 阅读全文
posted @ 2010-07-03 10:39 Blue Sky ...... 阅读(368) 评论(0) 推荐(0) 编辑