home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / AIMP2 / aimp_2.61.583.exe / $TEMP / YandexPackSetup.msi / fil784DD810D02AA2CD79FA61724F692F6A < prev    next >
Extensible Markup Language  |  2010-07-12  |  2KB  |  47 lines

  1. <?xml version="1.0"?>
  2.  
  3. <bindings xmlns="http://www.mozilla.org/xbl"
  4.           xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  5.           xmlns:xbl="http://www.mozilla.org/xbl"
  6.           xmlns:html="http://www.w3.org/1999/xhtml">
  7.     
  8.     <binding id="more"
  9.              inheritstyle="false">
  10.         <resources>
  11.             <stylesheet src="more.css"/>
  12.         </resources>
  13.         
  14.         <content>
  15.             <xul:button class="button" oncommand="onButton();">
  16.                 <xul:label class="label-opened" xbl:inherits="value=label-opened" value="╤ü╨▓╨╡╤Ç╨╜╤â╤é╤î"/>
  17.                 <xul:label class="label-closed" xbl:inherits="value=label-closed" value="╤Ç╨░╨╖╨▓╨╡╤Ç╨╜╤â╤é╤î"/>
  18.                 <xul:image/>
  19.             </xul:button>
  20.             <xul:vbox class="content">
  21.                 <children/>
  22.             </xul:vbox>
  23.         </content>
  24.         
  25.         <implementation>
  26.             <property name="open">
  27.                 <getter><![CDATA[
  28.                     return this.hasAttribute("open");
  29.                 ]]></getter>
  30.                 <setter><![CDATA[
  31.                     if (val)
  32.                         this.setAttribute("open", "true");
  33.                     else
  34.                         this.removeAttribute("open");
  35.                 ]]></setter>
  36.             </property>
  37.             
  38.             <method name="onButton">
  39.                 <body><![CDATA[
  40.                     this.open = !this.open;
  41.                     window.document.documentElement.sizeToContent();
  42.                 ]]></body>
  43.             </method>
  44.         </implementation>
  45.     </binding>
  46. </bindings>
  47.