上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: 要求:点击按钮时,下拉框显示;点击页面其他部分时,下拉框消失;1. 不靠谱代码 1 2 3 4 5 6 14 27 28 29 30 31 32 不靠谱原因:当点击按钮时,(1)点击事件在btn上触发并执行,此时下拉框显示;(2)事件一直向上... 阅读全文
posted @ 2015-06-08 15:19 林大勇 阅读(330) 评论(0) 推荐(0) 编辑
摘要: http://bbs.zhinengshe.com/thread-1199-1-1.html1. 在空白的页面加点击事件,是加在body上么 ? 1 2 3 4 5 6 13 14 15 16 2. document是什么 ? 1 2 3 4 5 ... 阅读全文
posted @ 2015-06-08 15:06 林大勇 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * Created by linxd on 2015/6/6. 3 */ 4 5 6 function getStyle(obj, name) { 7 if (getComputedStyle) { 8 return getComputedStyle... 阅读全文
posted @ 2015-06-07 15:33 林大勇 阅读(152) 评论(0) 推荐(0) 编辑
摘要: github地址: [https://github.com/linxd5/pictureShow]PS: 新建一个github项目很简单,只要new一个repo,后面按照提示做就可以了~项目思路:1. 左右按钮巧妙的应用了opacity属性,并使用两个div来简化计算;2. 大图切换使用了z-ind... 阅读全文
posted @ 2015-06-07 12:36 林大勇 阅读(141) 评论(0) 推荐(0) 编辑
摘要: [智能社视频]1. 相比于单物体运动框架,多物体运动框架多了一个参数obj,用来指明需要哪个物体运动 ~运行效果图:点击这里问题一:但鼠标快速在多个div中移动时,会出现问题原因:共用一个计数器解决方案:把计时器作为obj的属性,每个obj上有且仅有一个计时器。运行效果图:点击这里2. 在单物体运动... 阅读全文
posted @ 2015-06-06 18:22 林大勇 阅读(177) 评论(0) 推荐(0) 编辑
摘要: The styleobject offers no information about the styles that have cascaded from style sheets and affect the element. DOM Level 2 provide a method calle... 阅读全文
posted @ 2015-06-06 16:26 林大勇 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 1. 右侧底部悬浮框运行效果图: [http://runjs.cn/code/zvjocat0]要点:oDiv.style.top=document.documentElement.clientHeight-oDiv.offsetHeight+scrollTop;2. 右侧中部悬浮框运行效果图:[h... 阅读全文
posted @ 2015-06-06 11:31 林大勇 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 这次笔试真的是越写越烦躁。出乎意料的是,里面考的全都是基础知识,而我几乎都快忘光了。 之前一直想找个时间来复习基础知识。但是不知道为什么要复习基础知识,为了笔试? 进度太慢了,学了3个月的前端,却一直还是在做一些简单的界面显示 。。。 暑假吧,用Web把基础知识串起来,用JS实现基本的数据... 阅读全文
posted @ 2015-06-04 17:01 林大勇 阅读(134) 评论(0) 推荐(0) 编辑
摘要: http://stackoverflow.com/questions/22675126/what-is-offsetheight-clientheight-scrollheighthttp://www.jb51.net/article/17719.htm 阅读全文
posted @ 2015-06-04 12:37 林大勇 阅读(142) 评论(0) 推荐(0) 编辑
摘要: http://bbs.zhinengshe.com/thread-1195-1-1.html要求:速度逐渐变慢,直到停止。运行效果:[http://runjs.cn/code/wju7kucq]问题:物体无法运动到准确的位置[http://runjs.cn/code/i5cbxnxn]原因:像素不能... 阅读全文
posted @ 2015-06-04 12:21 林大勇 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页