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 真阿当 阅读(136) 评论(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 真阿当 阅读(109) 评论(0) 推荐(0) 编辑
摘要: ================= php生成xml文件头 ================header('Content-Type: text/xml'); echo'' 阅读全文
posted @ 2008-05-07 12:31 真阿当 阅读(138) 评论(0) 推荐(0) 编辑
摘要: ================= php生成xml文件头 ================header('Content-Type: text/xml'); echo'' 阅读全文
posted @ 2008-05-07 12:31 真阿当 阅读(60) 评论(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 真阿当 阅读(71) 评论(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 真阿当 阅读(80) 评论(0) 推荐(0) 编辑
摘要: =======================常用正则表达式=================================//字符处理;//去左右空格; function trim(s){ return rtrim(ltrim(s)); }//去左空格; function ltrim(s){... 阅读全文
posted @ 2008-05-07 12:29 真阿当 阅读(80) 评论(0) 推荐(0) 编辑
摘要: =======================常用正则表达式=================================//字符处理;//去左右空格; function trim(s){ return rtrim(ltrim(s)); }//去左空格; function ltrim(s){... 阅读全文
posted @ 2008-05-07 12:29 真阿当 阅读(113) 评论(0) 推荐(0) 编辑
摘要: document.body.oncontextmenu = function(event){oEvent=event?event:window.event;oEvent.preventDefault();} 阅读全文
posted @ 2008-05-07 12:28 真阿当 阅读(77) 评论(0) 推荐(0) 编辑
摘要: document.body.oncontextmenu = function(event){oEvent=event?event:window.event;oEvent.preventDefault();} 阅读全文
posted @ 2008-05-07 12:28 真阿当 阅读(150) 评论(0) 推荐(0) 编辑