|
||
| Inside Technique : Rubbery Text Behaviors 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 © 1997-2000 InsideDHTML.com, LLC. All rights reserved. |