Posts by :

add onfocus functionality to input fields 

The focus behavior of form elements is not supported correctly in all browsers. That’s why I created this simple small script to add this functionality to all text fields in a page. It uses the YUI javascript library, but it off course can be made also for other libraries like jQuery or Prototype.

Image slideshow based on YUI 

An image slideshow based on YUI. Just build a unordered list (UL) with links to the big images. Add the script and it will generate a image slideshow with navigation.

Accordion based on YUI 

Within applications / websites you want to stack panels vertically and open up one panel at the time while collapsing the other panels . By adding a class “accordion” to a definition list this will be converted to an accordion.