dean.edwards.name/moz-behaviors/intro/

Introduction

the following abstract is from the W3C document Behavioral Extensions to CSS:

Behavioral extensions provide ways for declaration of standalone behaviors that can be attached to any HTML or XML element, without modification of the DTD. Partly based on extensions to Cascading Style Sheets (CSS), these behaviors can be applied to multiple documents using the existing CSS linking mechanisms.

Microsoft Internet Explorer supports DHTML Behaviors.

Cross-Browser Support

I am currently building cross-browser support for this important technology. This mainly involves writing a Mozilla wrapper in XBL.

these browsers are supported:

This is the cross-browser aim:

JavaScript:

var image = document.getElementById("ticker");
image.addBehavior("ticker.htc");

CSS:

img#ticker {
	behavior: url(ticker.htc);
	-moz-binding: url(moz-behaviors.xml#ticker.htc);
}

you may also associate behaviors with elements using inline style settings in HTML documents.