-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack.xul
54 lines (45 loc) · 1.57 KB
/
stack.xul
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<window title="XUL Stacks and Decks"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script>
<![CDATA[
function setDeck(index)
{
document.getElementById("my-deck").setAttribute("selectedIndex",index);
}
]]>
</script>
<description><html:h1>XUL Stacks and Decks</html:h1></description>
<vbox flex="1" style="overflow: auto">
<hbox>
<groupbox >
<caption label="stack" />
<stack >
<image id="betty-image" src="images/betty_boop.xbm" />
<image src="images/BC-R.jpg" />
<label value="Chicks" style="font-weight:bold" top="80px" />
<button image="images/chick.png" left="60px" top="60"
style="height: 30px; width:25px; background-color: #663333;"/>
</stack>
</groupbox>
<groupbox >
<caption label="deck" />
<deck id="my-deck">
<image id="betty-image" src="images/betty_boop.xbm" />
<image id="blindchick-image" src="images/BC-R.jpg" />
<label value="Chicks" style="font-weight:bold" top="80px" />
<button image="images/chick.png" left="60px" top="60"
style="height: 30px; width:25px; background-color: #663333;"/>
</deck>
<radiogroup flex="1" orient="horizontal" >
<radio label="0" oncommand="setDeck('0');" />
<radio label="1" oncommand="setDeck('1');" />
<radio label="2" oncommand="setDeck('2');" />
<radio label="3" oncommand="setDeck('3');" />
</radiogroup>
</groupbox>
</hbox>
</vbox>
</window>