摘要: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
阅读全文
摘要:// 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.
阅读全文
摘要:概要iScroll 4 这个版本完全重写了iScroll这个框架的原始代码。这个项目的产生完全是因为移动版webkit浏览器(诸如iPhone,iPad,Android 这些系统上广泛使用)提供了一种本地化的方式来对一个限定了高度和宽度的元素的内容进行滑动。很不幸的是,这种情况下所有的web应用的页面就不能够包含具有position:absolute的头、页尾或者是一个内容可滚动的中间区域。然而,Android系统最新修订版已经可以支持这种功能了(尽管支持的力度还不是特别好),Apple公司似乎不太情愿将one-finger滑动事件运用到div元素上。除了以前版本的iScroll的特性以外,i
阅读全文
摘要:/**! * 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'
阅读全文
摘要:<!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-
阅读全文
摘要: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
阅读全文
摘要:<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
阅读全文
摘要:<img src="/phone/img/bg.jpg" style="-webkit-transform:rotate(45deg)" /></div>
阅读全文
摘要: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库“解构”系列旨在以可
阅读全文
摘要:<!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-
阅读全文
摘要:<!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
阅读全文
摘要: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
阅读全文
摘要:// 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
阅读全文
摘要:// 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
阅读全文
摘要:<!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
阅读全文
摘要:<!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
阅读全文
摘要:<!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
阅读全文
摘要:用法: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
阅读全文
摘要:子页面:/AAA/AAA.html父页面:/BBB/BBB.html子页面中代码如下parent.window.location="CCC.html"结果:父页面跳转到:/AAA/CCC.html
阅读全文