01 2016 档案

摘要:function leftMove(obj,direction,lis){ var num = 0; var liWidth = lis[0].offsetWidth; setInterval(function(){ if(num-liWidth*(lis.length-... 阅读全文
posted @ 2016-01-22 16:33 sunbey80 阅读(264) 评论(0) 推荐(0)
摘要:myAnimatetween.js //animation caculate /* Linear:uniform Quadratic:2 square Cubic:3 square Qua... 阅读全文
posted @ 2016-01-19 13:19 sunbey80 阅读(201) 评论(0) 推荐(0)
摘要:function getStyle(obj,attr){ if(obj.currentStyle){ //for IE return obj.currentStyle[attr]; }else{ return getComput... 阅读全文
posted @ 2016-01-18 10:58 sunbey80 阅读(142) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-01-15 22:30 sunbey80 阅读(3) 评论(0) 推荐(0)
摘要:function addEvent(obj,sEvent,fn){ if(obj.attachEvent){ obj.attachEvent("on"+sEvent,fn); }else{ obj.addEventListene... 阅读全文
posted @ 2016-01-15 22:20 sunbey80 阅读(523) 评论(0) 推荐(0)
摘要://fadeOut //function start function fadeOut(ele,speed){ var ele=document.getElementById(ele); var opacitynum=ele.style.opacity||1; var speed=(speed/10 阅读全文
posted @ 2016-01-15 21:23 sunbey80 阅读(1868) 评论(0) 推荐(0)
摘要:function byClass(oParent,className){ if(document.getElementsByClassName){ //if it is Firefox return oParent.getElementsByClassName(className); }else{ 阅读全文
posted @ 2016-01-15 21:15 sunbey80 阅读(475) 评论(0) 推荐(0)
摘要:获取ev目标元素 ev.srcElement || ev.target;判断ev目标元素类型 var obj = ev.srcElement || ev.target; obj.nodeName 判断浏览器类型是否为Firefox isFirefox=navigator.userAgent.toUp 阅读全文
posted @ 2016-01-14 16:00 sunbey80 阅读(242) 评论(0) 推荐(0)
摘要:HTML5+CSS3 Javascript Node.js NoSQL mongoDB PHP AMD规范 全称Asynchronous Module Definition 即异步模块加载机制 MVC 全称Moduel View Control 模型-视图-控制器 一种软件构件模式 PhoneGap 阅读全文
posted @ 2016-01-13 16:19 sunbey80 阅读(130) 评论(0) 推荐(0)
摘要:<html> <head> <title>scroll up auto smooth</title> <style> *{ margin: 0; padding: 0; list-style: none; } #scroll_outer{ width: 300px; height: 90px; ma 阅读全文
posted @ 2016-01-12 13:01 sunbey80 阅读(942) 评论(0) 推荐(0)