摘要: HTML: *Question1: + - *Question Type: Single Choice Multiple Choice Subjective Item Single Choice A... 阅读全文
posted @ 2013-11-01 21:22 seamar 阅读(463) 评论(0) 推荐(1) 编辑
摘要: 入口:http://codestar.alloyteam.com/1/5潜入工具: 1 (function(window){ 2 var 3 //初始化最大值 4 max = 0, 5 //记录遍历结点的值 6 levelPath = [], 7 8 finalKeyPathStr = '', 9 10 ShortPathVal = window.ShortPathVal= function(dataArr){11 trvaseGraph(createGraph(dataArr),max);12 ... 阅读全文
posted @ 2013-11-01 20:51 seamar 阅读(802) 评论(4) 推荐(0) 编辑
摘要: 我是正文我是正文我是正文我是正文我是正文我是正文我是正文 我是正文我是正文我是正文我是正文我是正文我是正文我是正文 我是正文我是正文我是正文我是正文我是正文我是正文我是正文 我是正文我是正文我是正文我是正文我是正文我是正文我是正文 我是正文我是正文我是正文我是正文我是正文我是正文我是正文 ... 阅读全文
posted @ 2013-01-09 15:22 seamar 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 解决方案:chrome/safari中的input onblur事件要先调用focus()的。示例:<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script><script type="text/javascript"> $(function(){ $('input').click(function() { this.fo 阅读全文
posted @ 2013-01-07 09:42 seamar 阅读(1484) 评论(2) 推荐(0) 编辑
摘要: 在Firefox下input type=”button”的文字是不好居中的,原因在于Firefox的私有属性,导致以下问题的出现:按钮左右本身有2px的间距(FF私有属性写了padding:0 2px所致);按钮文字居中是不行的(此时设置padding-bottom是没用的) ;等等…解决办法:input[type="reset"]::-moz-focus-inner,input[type="button"]::-moz-focus-inner,input[type="submit"]::-moz-focus-inner,input[ 阅读全文
posted @ 2012-10-17 23:29 seamar 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 在jquery下 连续使用removeClass(“oldClassName”).addClass("newClassName")后在IE6/IE7下新增加的class名称前面会多余的添加空格。分开写就能兼容了。 阅读全文
posted @ 2011-11-25 21:19 seamar 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 1.获取元素坐标var getPos:function(o){//取元素坐标 var x = 0, y = 0; do{ x += o.offsetLeft; y += o.offsetTop; }while(o=o.offsetParent); return {'x':x,'y':y};}2.获取当前script文件的路径var strJsPath='';(function(){ try { throw Error("获取路径") }catch(ex){ if(ex.fileName)//Firefo... 阅读全文
posted @ 2011-09-16 10:13 seamar 阅读(1266) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function(){$(window).height(); //浏览器当前窗口可视区域高度$(document).height(); //浏览器当前窗口文档的高度$(document.body).height();//浏览器当前窗口文档body的高度$(document.body).outerHeight(true);//浏览器当前窗口文档body的总高度 包括border padding margin$(window).width(); //浏览器当前窗口可视区域宽度$(document).width();//浏览器当前窗口文档对象宽度$(documen 阅读全文
posted @ 2011-09-15 11:26 seamar 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键<table border oncontextmenu=return(false)><td>no</table> 可用于Table2. <body onselectstart="return false"> 取消选取、防止复制3. onpaste="return false" 不准粘贴4. oncopy="return false;" oncut=&q 阅读全文
posted @ 2011-08-17 20:11 seamar 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 一、call 方法调用一个对象的一个方法,以另一个对象替换当前对象(其实就是更改对象的内部指针,即改变对象的this指向的内容)。Js代码call([thisObj[,arg1[, arg2[, [,.argN]]]]])参数thisObj可选项。将被用作当前对象的对象。arg1, arg2, , argN可选项。将被传递方法参数序列。说明call 方法可以用来代替另一个对象调用一个方法。call 方法可将一个函数的对象上下文从初始的上下文改变为由 thisObj 指定的新对象。如果没有提供 thisObj 参数,那么 Global 对象被用作 thisObj。Js代码复制代码代码如下:< 阅读全文
posted @ 2011-08-08 16:51 seamar 阅读(345) 评论(0) 推荐(0) 编辑