02 2011 档案

(备忘)
摘要:/[\?&]{1}_ajax[&\s]{1}|[\?&]{1}_ajax$/|代表或hidefocus="true" ie虚线问题 (IE67不支持)事件监听的时候通过传入变量来产生局部变量(JAVASCRIPT DOM高级编程 PAGE33),如下解释:var a=1; .click(function(){ alert(a); })a++; a如果不是传入进去的,变量作用域在外面,当上面的东东循环的时候会出问题.var a=1; .click(function(a){ //在包一层来产生临时变量 return function(){ }}(a))a 阅读全文

posted @ 2011-02-24 18:20 liushan 阅读(284) 评论(0) 推荐(0)

jquery键盘事件的更改
摘要:/***修改JQ的键盘事件,使文本等标签也可以监听键盘事件,兼容:chrome Firefox 3.5 3.6 opera IE 6 7 8 (IE67有虚线)*@param{Object}Jquery*@authorLonely*/(function($){varno_ie_pr=function... 阅读全文

posted @ 2011-02-24 14:53 liushan 阅读(1002) 评论(0) 推荐(0)

浏览器常用高宽的JQ插件
摘要:View Code /***兼容BackCompat,CSS1Compat两模式渲染的页面,测试的浏览器 :friefox ie678 chrome opera*@authorLonely*/(function($){/***取得浏览器视图的宽度*/$.viewWidth=function(){va... 阅读全文

posted @ 2011-02-22 19:31 liushan 阅读(441) 评论(0) 推荐(0)

Finding the size of the browser window
摘要:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->functionalertSize(){varmyWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number'){//Non-IEmyWidth=window.innerWidth;myHeight=window.innerHeight;}elseif(document.documentElement&& 阅读全文

posted @ 2011-02-14 10:54 liushan 阅读(193) 评论(0) 推荐(0)

Mysql 存储过程
摘要:转换结束符: delimiter / 存储过程: createproceduretest()#或者是(aint,bint,outbint)begin#这里写你的操作end/调用:call test()/ 存储函数: createfunctiontest()#或者是(aint,bint)returnsint#函数体必须包含一个RETURNvalue语句begin#这里写你的操作return1;end/调用:select test()/ 备注:存储函数内不能查表(不能使用select 语句)储过程可以 语法: 存储过程中的局部变量前面无@符号用declare定义,且只能在begin end块中,全 阅读全文

posted @ 2011-02-13 20:53 liushan 阅读(935) 评论(0) 推荐(0)