This effect moves an element. Effect.MoveBy is older name.
This will move object to corner of the window (x=0; y=0):
This will move object 30px up and 20px to the right (the default mode is ‘relative’):
http://wiki.script.aculo.us/scriptaculous/show/Effect.Move
This will move object to corner of the window (x=0; y=0):
new Effect.Move (obj,{ x: 0, y: 0, mode: 'absolute'});
This will move object 30px up and 20px to the right (the default mode is ‘relative’):
new Effect.Move (obj,{ x: 20, y: -30, mode: 'relative'});
http://wiki.script.aculo.us/scriptaculous/show/Effect.Move
本文介绍了如何使用Effect.Move效果来移动页面上的元素。通过设置不同的参数,可以实现元素的绝对定位或者相对当前位置进行偏移。
3662

被折叠的 条评论
为什么被折叠?



