]> pere.pagekite.me Git - text-free-culture-lessig.git/blob - docbook-css-0.4/db-bindings.xml
Fix grammar and spelling errors.
[text-free-culture-lessig.git] / docbook-css-0.4 / db-bindings.xml
1 <?xml version="1.0"?>
2 <bindings xmlns="http://www.mozilla.org/xbl"
3 xmlns:html="http://www.w3.org/1999/xhtml">
4 <binding id="ulink">
5 <handlers>
6 <handler event="click" button="0"
7 action="window.location=this.attributes.url.value;"/>
8 <handler event="mouseover"
9 action="window.status=this.attributes.url.value;"/>
10 <handler event="mouseout"
11 action="window.status=null;"/>
12 </handlers>
13 </binding>
14
15 <binding id="image">
16 <content>
17 <html:img xbl:inherits="src=fileref"/>
18 </content>
19
20 <implementation>
21 <constructor>
22 var img = document.getAnonymousNodes(this)[0];
23 var file = this.getAttribute("fileref");
24 // HACK: using img.src=file 'inline' doesn't seem to work
25 // but it does when called from a setTimeout()
26 var f = function() { img.src = file; }
27 setTimeout(f, 0);
28 </constructor>
29 </implementation>
30 </binding>
31 </bindings>