SiteExperts.com Logo Home | Community | Developer's Paradise | Jobs
User Groups | Site Tools | Site Information | Search

Inside Technique : Rubbery Text Behaviors
By Scott Isaacs

Converting your DHTML scripts to behaviors is often extremely simple. In this article, we show you how to convert two of our original text effects scripts we wrote in 1997 into DHTML Behaviors:

These scripts were extremely simple but had one inherent problem - they were tied to the ID of a specific element on your page. If you wanted to use the same effect on multiple elements you would have to customize the script. One of the benefits of behaviors is you can make your scripts more generic and more easily reused. When our effects are converted to a behavior there is no limit to the number of times you can use the effect on your page.

On the next page, we take you through the expanding text example.

Page 1:Rubbery Text Behaviors
Page 2:Expanding Text
Page 3:Elastic Text
Page 4:Download Behaviors