摘要:
function fnOpenBox(objId,animateD,speed,tween,hide){ var oOpenBox = $(objId); oOpenBox.show(); oOpenBox.animate(animateD,speed,tween,function(){ if(hi 阅读全文
摘要:
var obj = document.getElementById('pDiv'); obj.addEventListener('touchmove', function(event) { // if finger one touched if (event.targetTouches.length 阅读全文
摘要:
index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ajax</title> <style> #btn{ width: 120px; background-color: #ff4500; c 阅读全文
摘要:
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser 阅读全文
摘要:
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Province_three</title> <style> *{ margin: 0; padding: 0; list-style: none; font: 400 12px/ 阅读全文
摘要:
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 阅读全文