CSS BEHAVIOR - CSS3 Examples

CSS BEHAVIOR

Written by jon on 12:16 AM
The Behavior property specifies one or more space separated URLs indicating script(s) to attach to a CSS selector. Behaviors allow the default functionality of a given element to be extended. Using simple CSS syntax that allows script to be separated from style and content, CSS behaviors offer a fairly elegant and efficient way to re-use script code.

Example
blockquote { behavior: url(hilight.htc) url(#behaveBinObject) }

<blockquote style=”behavior: url(hilight.htc) url(#behaveBinObject)”>Some text</blockquote>

Possible Values
Value Description
[Script URL] Provides an absolute or relative URL reference to the Behavior.
[#Object ID] The Behavior is a binary implementation. This syntax consists of a pound sign (”#”) followed by an OBJECT element ID within the document that instantiates the binary implementation.
[Default Behavior] Quite a few default behaviors ship with Internet Explorer 5.0. This syntax allows each default behavior to be easily referenced.

Related Posts by Categories



Widget by John | Interviewghost
  1. 0 comments: Responses to “ CSS BEHAVIOR ”

RECENT COMMENTS

SUBSCRIBE TO CSS3 EXAMPLES

 Subscribe to css3 Examples via RSS
Or, subscribe via email:
Find CSS3 Examples Entries :