mc.cai
2011-12-29 19:12:34
2011-12-27 18:12:15
clientX/clientY at KEY EVENTS
键盘事件的 鼠标坐标值 是用不上的. 但却在某些浏览器下可以取到:
position relative to the client area of the wind...
document.onkeydown=function(){
console.log(window.event.clientY);
}
console.log(window.event.clientY);
}
position relative to the client area of the wind...
2011-10-06 13:10:12
1.7版本不是那么遥远
1.7版本不是那么遥远,面对这满满一桌的丰盛大菜,我伸出筷子不知道到夹向哪一盘!心情是那么激动......先尝尝最近看的effect/animate部分吧?其余的统统打包!慢慢品尝!惭愧,已经积累了一些了,真的要留着是舍不得...
2011-10-04 21:10:03
Deferred物件移植到animate源码备忘笔记
动画结束从表象上看有2种形式:
常规形式:
opt.complete是动画(队列中的某一个,或独立动画[queue===false])结束时必然执行的函数。
stop形式:
gotoEnd参数布尔值:
true时:即动画结束时...
常规形式:
opt.complete是动画(队列中的某一个,或独立动画[queue===false])结束时必然执行的函数。
stop形式:
gotoEnd参数布尔值:
true时:即动画结束时...
2011-09-26 13:09:35
jQuery同步动画
一个容易忽略的细节,可能没有人会考虑到,但jQuery却很好地解决了它,让我佩服:
复杂的dom操作前后之间之间会有时间差,虽然几乎可以不用考虑,但在一定数量级别时,差异是存在的:
[url=http://cmc3.cn/anima...
复杂的dom操作前后之间之间会有时间差,虽然几乎可以不用考虑,但在一定数量级别时,差异是存在的:
[url=http://cmc3.cn/anima...
2011-09-04 22:09:12
jQuery's Animated properties can be 'show', 'hide', and 'toggle'
动画的目标属性值一般为一个数值:比如500(?px),今天下午看了最新的effect部分的源码,发现jQuery的animate不知道是从那个版本开始这个值可以为'show'/
'hide'/'toggle':
[code]div.animate({
width: ...
'hide'/'toggle':
[code]div.animate({
width: ...
2011-08-09 15:08:25
BASE标签引起IE文字无法选中
BASE标签可能会引起IE文字无法选中(或选中时选中的是一整块区域):[code]
<!DOCTYPE html>
<html>
<head>
<base target="_top" />
</head>
<body>
<div st...
<!DOCTYPE html>
<html>
<head>
<base target="_top" />
</head>
<body>
<div st...