Hi, >On a given site, I mark every book title, every film title, every show >title, using appropriate CSS classes, typically by doing <SPAN >CLASS="booktitle">The Wind In The Willow</SPAN>. It would be nice if I could >specify a mouse click handler for the entire class, so I don't waste time >(and probably sometimes forget) specifying the handler each time. This kind of functionality is provided by DHTML "behaviours", which are something Microsoft has put into Internet Explorer 5, and have submitted to the W3C for consideration. It uses a new CSS attribute 'behavior' (ugh, should be a "u" in there!) to specify a behaviour for a given CSS class. That behaviour can add new properties to those elements, as well as provide standard event handlers (eg, onclick()) for every element of the class. See: http://www.microsoft.com/workshop/author/behaviors/overview.asp for more info. Peter ________________________________________ Peter Torr, Applications Developer Vantage Systems - Making Time Pay http://www.vantagesystems.com.auReceived on Thursday, 18 February 1999 16:10:00 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:58 GMT