2014年11月27日

Day8---------messageGet

摘要: oEvent.cancelBubble=true;------------取消事件冒泡 ctrlKey.shiftKey,altKey //-----------获取用户的回车键码来完成内容的输入 //-----尚未完成-------发现Google,FF,IE的oTextarea.style... 阅读全文

posted @ 2014-11-27 17:11 fleshy 阅读(162) 评论(0) 推荐(0) 编辑

2014年11月26日

Day7-----mouseTail

摘要: //---------使用onmousedown/onmouseup/onmousemove事件分别给以不同的行为完成“当鼠标按下时移动有尾巴,抬起消失”的兼容性功能 //--尚未解决的问题------只是一种伪消失,并不是真正的取消onmousemove的行为,应当使用onmousemove=n... 阅读全文

posted @ 2014-11-26 20:35 fleshy 阅读(129) 评论(0) 推荐(0) 编辑

Day7--------stringOperate

摘要: charAt-------------获取字符charCodeAt--------获取字符的ascii编码str[i]------------IE6以下不兼容fromCharCode-----------使用ascii编码来获取字符indexOf('char')-----------------寻找... 阅读全文

posted @ 2014-11-26 12:00 fleshy 阅读(127) 评论(0) 推荐(0) 编辑

2014年11月25日

Day6--------smoothScroll

摘要: //--------兼容版本的平滑滚动效果 //-------------使用百分比减值达到平滑的效果,使用body.scrollTop||documentElement.scrollTop检测浏览器内核,使用bySys检测用户的滚动行为 1 2 3 4 5 smoothScroll 6 ... 阅读全文

posted @ 2014-11-25 23:30 fleshy 阅读(166) 评论(0) 推荐(0) 编辑

Day6--------runCodeOfUser

摘要: //----------------使用了window.open和document.write在新页面中打开用户提交的代码codeWindow 阅读全文

posted @ 2014-11-25 21:15 fleshy 阅读(116) 评论(0) 推荐(0) 编辑

Day6-------BOM

摘要: BOM:Browser Object Model(浏览器对象模型)window.open(url,target);------打开一个新窗口,target=_self(自身框架中打开),=_blank(新的框架)document.write();-------------清空当前界面并输入东西oNe... 阅读全文

posted @ 2014-11-25 21:13 fleshy 阅读(111) 评论(0) 推荐(0) 编辑

Day6--------DOM nodes

摘要: DOM:Document Object Model(文件对象模型)childNodes---------子节点IE:childNodes.length是实际具有的子节点个数FF:其包含了空文本作为的节点,可以使用noteType属性,其中1:元素节点 3:文本节点children:兼容版子节点pa... 阅读全文

posted @ 2014-11-25 19:34 fleshy 阅读(103) 评论(0) 推荐(0) 编辑

Day6--------operateElement&&pageOfCnblogs

摘要: oLi=document.createElement('li');------------创建元素oLioUl.appendChild(oLi);------------------------插入元素到oUl尾部oUl.insertBefore(oLi,aLi[0]);--------------... 阅读全文

posted @ 2014-11-25 13:35 fleshy 阅读(160) 评论(0) 推荐(0) 编辑

2014年11月24日

Day5------------arrayFunction

摘要: var arr=Array[1,2,3,4];arr.length=10;---------------------数组直接控制长度arr.length=0;----------------------快速清空数组push();----------------------------从尾部添加元素u... 阅读全文

posted @ 2014-11-24 23:12 fleshy 阅读(83) 评论(0) 推荐(0) 编辑

Day5------------functionCss

摘要: style只能获取行间样式,如果需要获取所需要元素的当前属性值,IE: 可以使用object. currentStyle.width;FF: 可以使用getComputedStyle(object,false).width;创建了函数Css来控制样式提供了UI交互,并完成了参数匹配 1 2 ... 阅读全文

posted @ 2014-11-24 21:54 fleshy 阅读(105) 评论(0) 推荐(0) 编辑

导航