Chapter 5: Presentation and Behaviour
Download all as a zip file (39 KB)
-
Changing presentation by accessing the style directly
-
Changing presentation by dynamically adding and removing classes
-
Making it easy to define styles for scripting supported and unsupported versions
-
Adding a whole new Style Sheet when DOM is supported
-
Making maintenance easier by keeping the CSS class names in an own object
-
Keeping the CSS class names in an own JSON object
-
CSS Problem with column heights
-
JavaScript fix for the column heights problem
-
Rollover on list items (CSS only)
This example will not work in MSIE older than version 7!
-
Cross-Browser rollover on list items with JavaScript
-
Creating two different rollover states on parent elements
-
Event Bubbling
This example will only work in DOM-2 compliant browsers like Firefox!
-
Supressing Event Bubbling
This example will only work in DOM-2 compliant browsers like Firefox!
-
Preventing default actions
This example will only work in DOM-2 compliant browsers like Firefox!
-
Collapsing and expanding list items
This example will only work in DOM-2 compliant browsers like Firefox!
-
Collapsing and expanding list items (cross Browser)
-
Collapsing and expanding list items (shorter)
-
Collapsing and expanding list items without initial flashing of content
-
Checking which keys were hit to filter keyboard entry
-
Helper functions
Back to index
Go to the homepage