This effect changes an elements width and height dimensions and the base for em units. This allows for smooth, automatic relative scaling of elements contained within the scaled element.
此效果基于em单位改变元素的宽度和高度尺寸。允许平滑的自动的缩放元素。
用法 :new Effect.Scale('id_of_element', percent, [options]);
new Effect.Scale(element, percent, [options]);
Effect-specific parameters
可选参数
Option Description
scaleX Sets whether the element should be scaled horizontally, defaults to true.
scaleY Sets whether the element should be scaled vertically, defaults to true.
scaleContent Sets whether content scaling should be enabled, defaults to true.
scaleFromCenter If true, scale the element in a way that the center of the element stays on the same position on the screen, defaults to false.
scaleMode Either ‘box’ (default, scales the visible area of the element) or ‘contents’ (scales the complete element, that is parts normally only visible byscrolling are taken into account). You can also precisely control the size the element will become by assigning the originalHeight and originalWidth variables to scaleMode as follows:
scaleMode: { originalHeight: 400, originalWidth: 200 }
scaleFrom Sets the starting percentage for scaling, defaults to 100.0.
http://wiki.script.aculo.us/scriptaculous/show/Effect.Scale
分享到:
相关推荐
《Prototype and script.aculo.us终极揭秘》试读样章
script.aculo.us框架是构建在prototype之上的JavaScript脚本库,它的定位就是帮助开发人员快速有效地创建页面展示及操作的特效。 对于中小型的Ajax应用项目应用项目而言,prototype+script.aculo.us是一个非常不错的...
解压密码在:http://www.pin5i.com/showtopic-php-and-script.aculo.us-web-2.0-application-interfaces.html
Practical.Prototype.and.script.aculo.us.Jun.2008
Prototype.and.script.aculo.us.Dec.2007.pdf
script.aculo.us框架的完整的文档包
用script.aculo.us实现googleSuggest效果.内附说明你文件
Pragmatic.Prototype.and.script.aculo.us.Dec.2007 学习 javascript 和prototype
Script.Aculo.Us开发系列教程,来自CnBlog的文章,本人搜集,下载,打包,o(∩_∩)o...
一本关于使用Prototype和script.aculo.us的英文书。
包含了Prototype 1.6.0以及script.aculo.us 1.8.0最终版的介绍
Rails采用的Javascript框架Script.aculo.us的英文文档,
Practical Prototype and script.aculo.us (Expert's Voice in Web Development) 有关prototype的好书,英文的
基于Prototype框架的一个非常优秀的开源Ajax框架,封装了许多控件:AotuComplete,Accordion,Slider等,很多的动画效果,还有拖拽,DOM Utility等等 刚才在Download里面Search了一下好像没有,所以传上来一个,这个...
prototype.js是一个非常优雅的javascript基础类库,对javascript做了大量的扩展,而且很好的支持Ajax.
因为有90M所以分4卷上传.请全部下载到一个目录再解压其中一个即可. 内有SN.... *支持流行AJAX框架的Code Assist功能:AFLAX,Dojo,JQuery,MochiKit,Prototype,Rico,script.aculo.us,Yahoo UI。
因为有90M所以分4卷上传.请全部下载到一个目录再解压其中一个即可. 内有SN.... *支持流行AJAX框架的Code Assist功能:AFLAX,Dojo,JQuery,MochiKit,Prototype,Rico,script.aculo.us,Yahoo UI。
因为有90M所以分4卷上传.请全部下载到一个目录再解压其中一个即可. 内有SN.... *支持流行AJAX框架的Code Assist功能:AFLAX,Dojo,JQuery,MochiKit,Prototype,Rico,script.aculo.us,Yahoo UI。