2008年5月7日
摘要: function randomColor(){ r = Math.floor(Math.random()*255).toString(16); g = Math.floor(Math.random()*255).toString(16); b = Math.floor(Math.random()*... 阅读全文
posted @ 2008-05-07 12:33 真阿当 阅读(143) 评论(0) 推荐(0)
摘要: function randomColor(){ r = Math.floor(Math.random()*255).toString(16); g = Math.floor(Math.random()*255).toString(16); b = Math.floor(Math.random()*... 阅读全文
posted @ 2008-05-07 12:33 真阿当 阅读(115) 评论(0) 推荐(0)
摘要: ================= php生成xml文件头 ================header('Content-Type: text/xml'); echo'' 阅读全文
posted @ 2008-05-07 12:31 真阿当 阅读(145) 评论(0) 推荐(0)
摘要: ================= php生成xml文件头 ================header('Content-Type: text/xml'); echo'' 阅读全文
posted @ 2008-05-07 12:31 真阿当 阅读(90) 评论(0) 推荐(0)
摘要: function numcompare(a,b){return a-b;}nums = new Array(30,10,200,4);sortednums = nums.sort(numcompare);源自《javascript 入门经典》 阅读全文
posted @ 2008-05-07 12:31 真阿当 阅读(85) 评论(0) 推荐(0)
摘要: function numcompare(a,b){return a-b;}nums = new Array(30,10,200,4);sortednums = nums.sort(numcompare);源自《javascript 入门经典》 阅读全文
posted @ 2008-05-07 12:31 真阿当 阅读(88) 评论(0) 推荐(0)
摘要: =======================常用正则表达式=================================//字符处理;//去左右空格; function trim(s){ return rtrim(ltrim(s)); }//去左空格; function ltrim(s){... 阅读全文
posted @ 2008-05-07 12:29 真阿当 阅读(85) 评论(0) 推荐(0)
摘要: =======================常用正则表达式=================================//字符处理;//去左右空格; function trim(s){ return rtrim(ltrim(s)); }//去左空格; function ltrim(s){... 阅读全文
posted @ 2008-05-07 12:29 真阿当 阅读(120) 评论(0) 推荐(0)
摘要: document.body.oncontextmenu = function(event){oEvent=event?event:window.event;oEvent.preventDefault();} 阅读全文
posted @ 2008-05-07 12:28 真阿当 阅读(91) 评论(0) 推荐(0)
摘要: document.body.oncontextmenu = function(event){oEvent=event?event:window.event;oEvent.preventDefault();} 阅读全文
posted @ 2008-05-07 12:28 真阿当 阅读(162) 评论(0) 推荐(0)