Ajax style prototypes for the Web
Here's an example that fades & closes the image when the user clicks on it. (It's live, so go ahead and try it!)
The protoscript above says: for an image with id avatar, fade it out when the user clicks on it and close it when the fade completes.
Want to see it in action? Here are the current set of behaviors.
Click any of them to see live examples.
Animate ColorAnimate Fade Move Spotlight Close DragDrop Hide Open Popup ReplaceClass ScriptSetClass SetStyle Show ToggleClass ToggleOpenClose ToggleShowHide FetchHtml SetHtml Blur ClickDblClick Focus Keypress Mousedown Mousemove Mouseout Mouseover Mouseup Timer