脚 本 之 家 www.jb51.net
页面导航:  不限条件-->效
本地搜索:
1、十六进制的颜色值对位数与大小写 编写十六进制颜色值时你可能会用小写字母或省略成3位数,关于这写法没找到确实的数据证明对浏览器的渲染效率是否有影响,但十六进制的颜色值默认标准是大写及6位数标注。在未知情况下不希望冒险而降低了渲染的效率。 * 不赞成 - color:#f3a; * 建议用 - color:#FF33AA; 2、display与visibility的差异 他们用于设置或检索是否显示对象。display隐藏对象不保留物理空间,visibility为隐藏对象保留占据的物理空...
http://www.jb51.net//article/15384.htm
首先看看原来是怎么样做的:[code]function toTXT(str){     str = str.replace(/\&/g, "& amp;");     str = str.replace(/\>/g, "& gt;");     str = str.replace(/\</g, ...
http://www.jb51.net//article/15354.htm
可以任意转载,但转载时必须标明原作者charlee、原始链接http://tech.idv2.com/2006/11/23/javascript-strreplace-benchmark/以及本声明我对这两个函数作了benchmark,发现新函数的效率约为原函数的1.4倍。虽然没有预想中那么高效率,但当要替换的字符串更多时,效率应该会提高吧。测试方法为,对一个2048字节长的字符串分别执行两个函数100次,取其执行时间。下面为10次测试的结果。toTXT_1为通常的作法,toTXT_2为Clear的方法。toTXT_1(ms)toTXT_2(ms)toTXT_1/toTXT_216091204...
http://www.jb51.net//article/15353.htm
不用组件的话有两种办法: set objFile = CreateObject("SAFRCFileDlg.FileOpen") Set objShell = CreateObject("Shell.Application") 本blog里都有示例。 如果调用vb组件,可以是: flag = &h200 whichone = OpenFile("Choose a File!", "C:\",&nbs...
http://www.jb51.net//article/15346.htm
// HISTORY// ------------------------------------------------------------------// Jan 23, 2004: Fixed problems which caused the script not to work in//            &n...
http://www.jb51.net//article/15334.htm
雅虎的YSlow插件的规则之一:Rule 9 – Reduce DNS Lookups提到:Reducing the number of unique hostnames has the potential to reduce the amount of parallel downloading that takes place in the&nb...
http://www.jb51.net//article/15258.htm
HTML部分:<html><head><scrīpt language="javascrīpt">function postRequest(strURL){var xmlHttp;if(window.XMLHttpRequest){ // For Mozilla, Safari, ...var xmlHttp = new XMLHttpRequest();}else if(window.ActiveXObject){ /...
http://www.jb51.net//article/15253.htm
[b]方法一、尽量使用复杂的SQL来代替简单的一堆SQL[/b]同样的事务,一个复杂的SQL完成的效率高于一堆简单SQL完成的效率,有多个查询时,要善于使用JOIN。oRs=oConn.Execute("Select * FROM Books") while not ors.Eof     strSQL = "Select * FROM Authors Where AuthorID="&oRs("Author...
http://www.jb51.net//article/15225.htm
Marquee.js参数说明:  demo  字幕区域标签(div)的ID; demo1/demo2  显示内容标签(div或td)的ID   demo1为原始内容,demo2是它的拷贝;  direction 字幕方向(up,down,left,right) ; delay 字幕播放的延迟时间(毫秒); step 字幕播放的步长(即pix,步长越小,如step=1,滚动越平滑)function Marqu...
http://www.jb51.net//article/15205.htm
[html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html;&n...
http://www.jb51.net//article/15184.htm
核心代码[code]function slide(src,link,text,target,attr,desc) {  this.desc = desc  this.src = src;  this.link = link;  this.text = text;  this.target = target;  this.attr = at...
http://www.jb51.net//article/15144.htm
共有:478/10,当前7/48页  [首页] [上一页] 3 4 5 6 7 8 9 10 [下一页]  [尾页] 转到: