Script.aculo.us 简明教程

script.aculo.us - Modules

script.aculo.us 被划分为模块,每个模块都有其自己的 JavaScript 文件。此处对这些模块进行了说明 −

script.aculo.us is divided into modules, each with its own JavaScript file. These modules are explained here −

Effects

effects 模块包含二十五种以上的视觉效果和七种过渡模式。

The effects module comes with more than twenty-five visual effects and seven transition modes.

Drag and Drop

你将使用 drag and drop 模块使任何元素可拖动,将其变成一个拖放区域,甚至可以使整个系列元素可排序,以便你可以通过拖放重新排列它们。

You will use the drag and drop module to make any element draggable, turn it into a drop zone, or even make an entire series of elements sortable so that you can rearrange them by dragging and dropping.

Sliders

滑块是一种带有轨道或轨迹的小型控件,你可以在其上滑动一个手柄。它会转换为数值。你可以使用 script.aculo.us 创建出各种可控的滑块。

A slider is a sort of small rail or track, along which you can slide a handle. It translates into a numerical value. With script.aculo.us, you can create such sliders with a lot of control.

Autocompletion

Autocompleter 控件允许使用 Google Suggest 风格、本地和由服务器支持的自动完成文本输入字段。

Autocompleter controls allow Google-Suggest style, local and server-powered autocompleting text input fields.

In-place Editing

只要单击,即可让任何文本或集合中的项目就地可编辑。

You can make any text or collection of items editable in-place by simply clicking it.

Builder

适用于 JavaScript 中 DOM 片段构建的助手。这是一款开发者工具,可在极大程度上减轻 DOM 创建的工作量。

A helper to build DOM fragments in JavaScript. This is a developer tool that eases DOM creation considerably.

Sound

版本 1.7.1 引入了声音系统,使您能够轻松播放声音、排队、使用多条音轨,等等。

Version 1.7.1 introduced a sound system that lets you play sounds easily, queue them up, use multiple tracks, and so on.