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 >
Wrap
Extensible Markup Language
|
2010-07-12
|
2KB
|
47 lines
<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="more"
inheritstyle="false">
<resources>
<stylesheet src="more.css"/>
</resources>
<content>
<xul:button class="button" oncommand="onButton();">
<xul:label class="label-opened" xbl:inherits="value=label-opened" value="свернуть"/>
<xul:label class="label-closed" xbl:inherits="value=label-closed" value="развернуть"/>
<xul:image/>
</xul:button>
<xul:vbox class="content">
<children/>
</xul:vbox>
</content>
<implementation>
<property name="open">
<getter><![CDATA[
return this.hasAttribute("open");
]]></getter>
<setter><![CDATA[
if (val)
this.setAttribute("open", "true");
else
this.removeAttribute("open");
]]></setter>
</property>
<method name="onButton">
<body><![CDATA[
this.open = !this.open;
window.document.documentElement.sizeToContent();
]]></body>
</method>
</implementation>
</binding>
</bindings>