摘要: function fnOpenBox(objId,animateD,speed,tween,hide){ var oOpenBox = $(objId); oOpenBox.show(); oOpenBox.animate(animateD,speed,tween,function(){ if(hi 阅读全文
posted @ 2016-03-02 10:20 sunbey80 阅读(247) 评论(0) 推荐(0) 编辑
摘要: var obj = document.getElementById('pDiv'); obj.addEventListener('touchmove', function(event) { // if finger one touched if (event.targetTouches.length 阅读全文
posted @ 2016-03-01 15:10 sunbey80 阅读(324) 评论(0) 推荐(0) 编辑
摘要: index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ajax</title> <style> #btn{ width: 120px; background-color: #ff4500; c 阅读全文
posted @ 2016-02-25 15:38 sunbey80 阅读(219) 评论(0) 推荐(0) 编辑
摘要: var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser 阅读全文
posted @ 2016-02-24 13:02 sunbey80 阅读(325) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Province_three</title> <style> *{ margin: 0; padding: 0; list-style: none; font: 400 12px/ 阅读全文
posted @ 2016-02-23 10:21 sunbey80 阅读(1058) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(260) 评论(0) 推荐(0) 编辑
摘要: myAnimatetween.js //animation caculate /* Linear:uniform Quadratic:2 square Cubic:3 square Qua... 阅读全文
posted @ 2016-01-19 13:19 sunbey80 阅读(193) 评论(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 阅读(134) 评论(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 阅读(518) 评论(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 阅读(1832) 评论(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 阅读(471) 评论(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 阅读(226) 评论(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 阅读(127) 评论(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 阅读(920) 评论(0) 推荐(0) 编辑