02 2012 档案

知识点记录
摘要:css动画el.style.webkitTransitionDuration = "0";el.style.webkitTransitionTimingFunction = "none";el.style.webkitTransform = "none";<div style="width: 4em; height: 4em; margin: 2em; background-color: blue; color: white; -webkit-transition-duration: 5s; -webkit-trans 阅读全文

posted @ 2012-02-22 19:46 kxdhm 阅读(222) 评论(0) 推荐(0)

zepto.js 手机web开发 js 框架,类似于jquery
摘要:// Zepto.js// (c) 2010, 2011 Thomas Fuchs// Zepto.js may be freely distributed under the MIT license.(function(undefined){ if (String.prototype.trim === undefined) // fix for iOS 3.2 String.prototype.trim = function(){ return this.replace(/^\s+/, '').replace(/\s+$/, '') }; // For iO. 阅读全文

posted @ 2012-02-21 18:37 kxdhm 阅读(2480) 评论(0) 推荐(0)

iscroll.js 用法介绍
摘要:概要iScroll 4 这个版本完全重写了iScroll这个框架的原始代码。这个项目的产生完全是因为移动版webkit浏览器(诸如iPhone,iPad,Android 这些系统上广泛使用)提供了一种本地化的方式来对一个限定了高度和宽度的元素的内容进行滑动。很不幸的是,这种情况下所有的web应用的页面就不能够包含具有position:absolute的头、页尾或者是一个内容可滚动的中间区域。然而,Android系统最新修订版已经可以支持这种功能了(尽管支持的力度还不是特别好),Apple公司似乎不太情愿将one-finger滑动事件运用到div元素上。除了以前版本的iScroll的特性以外,i 阅读全文

posted @ 2012-02-21 18:35 kxdhm 阅读(5668) 评论(0) 推荐(0)

iscroll.js 触屏手机web-kit浏览器滚动效果代码库
摘要:/**! * iScroll v4.1.8 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org * Released under MIT license, http://cubiq.org/license */(function(){var m = Math, vendor = (/webkit/i).test(navigator.appVersion) ? 'webkit' : (/firefox/i).test(navigator.userAgent) ? 'Moz' : 'opera' 阅读全文

posted @ 2012-02-21 18:34 kxdhm 阅读(2480) 评论(0) 推荐(0)

火狐下的ul li inline-block float导致的差异
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文

posted @ 2012-02-17 12:55 kxdhm 阅读(520) 评论(0) 推荐(0)

a标签几种状态在IE6 7下的表现
摘要:a{text-decoration:none;color:#84a8c8;}a:link{color:#4199d7}a:visited{color:#0ff;}a:hover{color:#f00;cursor: pointer;}a:active{color:#ff0;}<a href="javascript:;">asdfasdf</a>IE6 7 下,点击,鼠标up时,颜色始终为active的颜色,其他浏览器为hover的颜色与设计的效果不符,添加事件,mouseover mouseout click 阅读全文

posted @ 2012-02-16 12:06 kxdhm 阅读(261) 评论(0) 推荐(0)

webkit webkitTransform -webkit-transition-duration -webkit-transition-function
摘要:<div style="width: 4em; height: 4em; margin: 2em; background-color: blue; color: white; -webkit-transition-duration: 5s; -webkit-transition-function: ease-out;" onclick='style.webkitTransform="translate(16em, -16em) scale(6) rotate(720deg)"; style.backgroundColor="red 阅读全文

posted @ 2012-02-16 10:55 kxdhm 阅读(533) 评论(0) 推荐(0)

-webkit-transform
摘要:<img src="/phone/img/bg.jpg" style="-webkit-transform:rotate(45deg)" /></div> 阅读全文

posted @ 2012-02-16 10:55 kxdhm 阅读(402) 评论(0) 推荐(0)

有用的网址
摘要:iphone开发https://developer.apple.com/library/safari/navigation/index.htmlhttps://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/Introduction/Introduction.html#//apple_ref/doc/uid/TP40002079-SW1http://www.cn-cuckoo.com/deconstructed/JavaScript库“解构”系列旨在以可 阅读全文

posted @ 2012-02-14 18:10 kxdhm 阅读(253) 评论(0) 推荐(0)

IE6 fixed
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文

posted @ 2012-02-13 15:07 kxdhm 阅读(800) 评论(0) 推荐(0)

HTML5 Geolocation
摘要:<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Geolocation API</title></head><body><p><script>if(navigator.geolocation){ navigator.geolocation.getCurrentPosition( f 阅读全文

posted @ 2012-02-10 18:11 kxdhm 阅读(218) 评论(0) 推荐(0)

手机端userAgent
摘要:iphone3gs自带的Safari浏览器Mozilla/5.0 (iPhone:U;CPU iPhone OS 4_1 like Mac OS X;zh-cn) AppleWebKit/532.9(KHTML,like Gecko)Version/4.0.5 Mobile/8B117 Safari/6531.22.7QQ浏览器MQQBrowser/2801Mozilla/5.0 (iPhone:U;CPU iPhone OS 4_1 like Mac OS X;zh-cn) AppleWebKit/532.9(KHTML,like Gecko)Version/4.0.5 Mobile/8B1 阅读全文

posted @ 2012-02-07 12:40 kxdhm 阅读(754) 评论(1) 推荐(0)

javascript RSA算法(三)
摘要:// RSA, a suite of routines for performing RSA public-key computations in// JavaScript.//// Requires BigInt.js and Barrett.js.//// Copyright 1998-2005 David Shapiro.//// You may use, re-use, abuse, copy, and modify this code to your liking, but// please keep this header.//// Thanks!// // Dave Shapir 阅读全文

posted @ 2012-02-02 18:09 kxdhm 阅读(1339) 评论(0) 推荐(0)

javascript RSA算法(二)
摘要:// BigInt, a suite of routines for performing multiple-precision arithmetic in// JavaScript.//// Copyright 1998-2005 David Shapiro.//// You may use, re-use, abuse,// copy, and modify this code to your liking, but please keep this header.// Thanks!//// Dave Shapiro// dave@ohdave.com// IMPORTANT THING 阅读全文

posted @ 2012-02-02 18:08 kxdhm 阅读(656) 评论(0) 推荐(0)

javascript RSA算法
摘要:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html lang="en"><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><meta name="Author" content="Dave Shapiro"><meta n 阅读全文

posted @ 2012-02-02 18:07 kxdhm 阅读(4230) 评论(0) 推荐(0)

ul li 的list-style样式有何差别?
摘要:如题,在哪里找资料? 阅读全文

posted @ 2012-02-02 17:06 kxdhm 阅读(226) 评论(0) 推荐(0)

javascript DES算法(二)
摘要:<!DOCTYPE html><html lang="zh-cn"><head><meta http-equiv="content-type" content="text/html;charset=utf-8"><title>DES算法</title></head><body><script>//Javascript version//Paul Tero, July 2001//http://www.shopable.co.uk 阅读全文

posted @ 2012-02-02 10:37 kxdhm 阅读(390) 评论(0) 推荐(0)

javascript DES算法(一)
摘要:<!DOCTYPE html><html lang="zh-cn"><head><meta http-equiv="content-type" content="text/html;charset=utf-8"><title>DES算法-Code by 梅雪香</title><style type="text/css">textarea{width:600px; height:150px;}body{font-size:12px}i 阅读全文

posted @ 2012-02-02 10:04 kxdhm 阅读(897) 评论(0) 推荐(0)

javascript md5加密算法
摘要:用法:md5Value = hex_md5("asdfasdf")<script>/** A JavaScript implementation of the RSA Data Security, Inc. MD5 Message* Digest Algorithm, as defined in RFC 1321.* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet* Distrib 阅读全文

posted @ 2012-02-02 09:47 kxdhm 阅读(2411) 评论(0) 推荐(0)

javascript parent.window.location
摘要:子页面:/AAA/AAA.html父页面:/BBB/BBB.html子页面中代码如下parent.window.location="CCC.html"结果:父页面跳转到:/AAA/CCC.html 阅读全文

posted @ 2012-02-01 12:27 kxdhm 阅读(640) 评论(0) 推荐(1)