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

浙公网安备 33010602011771号