event:Selectors for Prototype

May 25, 2006

http://encytemedia.com/event-selectors/

Very interesting idea of defining events such as mouseover, mouseout, etc. in javascript using CSS syntax combined with Prototype and Script.aculo.us.


While I am not entirely sold on the use of CSS syntax to define these kinds of behavior, it really makes sense from the perspective of separating the content from the presentation layer. Since most of us already use CSS for managing the appearance of the site and applying effects to elements seems like the same concept, it makes a lot of sense to use the same technique for managing both pieces.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.