摘要: 链式运动框架开发 回调函数 •运动停止时,执行函数 /** * @author miaov */ //获取行间样式 function getStyle(obj, attr) { if(obj.currentStyle) { return obj.currentStyle[attr]; } else 阅读全文
posted @ 2016-06-05 21:57 distant-遥远 阅读(259) 评论(0) 推荐(0)
摘要: 多个物体同时运动 •例子:多个Div,鼠标移入变宽 –单定时器,存在问题 –每个Div一个定时器 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml 阅读全文
posted @ 2016-06-05 06:23 distant-遥远 阅读(154) 评论(0) 推荐(0)
摘要: 运动基础 •让Div运动起来 •速度——物体运动的快慢 •运动中的Bug –不会停止 –速度取某些值会无法停止 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DT 阅读全文
posted @ 2016-06-05 04:13 distant-遥远 阅读(167) 评论(0) 推荐(0)
摘要: 默认行为 •什么是默认行为 l阻止表单默认行为 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <htm 阅读全文
posted @ 2016-06-05 01:51 distant-遥远 阅读(178) 评论(0) 推荐(0)