16. A computer-implemented method of providing dynamic effects to an HTML document, comprising, encapsulating code in an external component that affects a behavior of one or more elements contained in the HTML document while being external to the HTML document, including elements of different HTML documents, wherein code for determining a behavior of the one more elements contained in the HTML document is not included in the HTML document and is defined by one or more extensible markup language (XML) namespaces associated with the external component; inserting an element into the HTML document; attaching a reference in the HTML document to associate the element with an instance of the external component, such that another instance of the element is referenced by a different HTML document, and wherein the reference associating the element with the external component is maintained in a cascading style sheet and comprises a reference to the one or more XML namespaces; and providing the HTML document to a renderer, wherein the renderer is capable of instantiating the external component, the renderer being configured to: modify a page image by accessing the one or more XML namespaces associated with the external component to initiate drawing of information on the page image based at least in part on code included in the one or more XML namespaces; make a plurality of calls to the one or more XML namespaces to initiate the drawing of the information on the page image; draw the information on the page image responsive to one or more of the plurality of calls to the one or more XML namespaces; instantiate the external component to reveal one or more of the XML namespaces associated with the external component the one or more of the XML namespaces being external to the HTML document and specifying one or more behaviors to be applied to the element; and access the one or more XML namespaces to retrieve a new behavior to be applied to a representation of the element rendered on the page image the new behavior being configured to enhance a default behavior for the element.
24. The method of claim 16 further comprising receiving an event indicative of user interaction with the page image.