Skip to content

24 ways to impress your friends

Vote down?

Tony Summerville

@Alex: Behaviour allows you to add JavaScript functions to HTML objects unobtrusively.

One of the things I came across was how to keep the effects persistent from page to page. For example, if the user “closes” a box on one page, it should remain “closed” on all pages until the user reopens or expands it.

I wrote a tutorial on my site on how to use Sciptaculous in conjunction with Behaviour and cookies to create Unobtrusive & Persistent Sciptaculous Effects