~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/layout/xul/base/src/grid/examples/jumpygrid.xul

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?> 
 
2
 
 
3
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
 
4
<?xml-stylesheet href="gridsample.css" type="text/css"?> 
 
5
 
 
6
<!DOCTYPE window> 
 
7
 
 
8
 
 
9
<window orient="vertical" style="border: 2px solid green"
 
10
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 
 
11
 
 
12
    <script>
 
13
          function flip(child)
 
14
          {
 
15
            var jump = child.getAttribute("jumpy");
 
16
                if (jump != "true")
 
17
                  child.setAttribute("jumpy","true");
 
18
                else
 
19
                  child.setAttribute("jumpy","false");
 
20
          }
 
21
 
 
22
        </script>
 
23
    <hbox>
 
24
                <grid style="border: 2px solid yellow;">
 
25
                   <columns>
 
26
                   </columns>
 
27
 
 
28
                   <rows>
 
29
                         <row>
 
30
                           <button label="button" class="jumpy"/>
 
31
                           <button label="button" class="jumpy"/>
 
32
                           <button label="button" class="jumpy"/>
 
33
                           <button label="button" class="jumpy"/>
 
34
                           <button label="button" class="jumpy"/>
 
35
                         </row>
 
36
                         <row>
 
37
                           <button label="button" class="jumpy"/>
 
38
                           <button label="button" class="jumpy"/>
 
39
                           <button label="button" class="jumpy"/>
 
40
                           <button label="button" class="jumpy"/>
 
41
                           <button label="button" class="jumpy"/>
 
42
                         </row>
 
43
                         <row>
 
44
                           <button label="button" class="jumpy"/>
 
45
                           <button label="button" class="jumpy"/>
 
46
                           <button label="button" class="jumpy"/>
 
47
                           <button label="button" class="jumpy"/>
 
48
                           <button label="button" class="jumpy"/>
 
49
                         </row>
 
50
                         <row>
 
51
                           <button label="button" class="jumpy"/>
 
52
                           <button label="button" class="jumpy"/>
 
53
                           <button label="button" class="jumpy"/>
 
54
                           <button label="button" class="jumpy"/>
 
55
                           <button label="button" class="jumpy"/>
 
56
                         </row>
 
57
                         <row>
 
58
                           <button label="button" class="jumpy"/>
 
59
                           <button label="button" class="jumpy"/>
 
60
                           <button label="button" class="jumpy"/>
 
61
                           <button label="button" class="jumpy"/>
 
62
                           <button label="button" class="jumpy"/>
 
63
                         </row>
 
64
                         <row>
 
65
                           <button label="button" class="jumpy"/>
 
66
                           <button label="button" class="jumpy"/>
 
67
                           <button label="button" class="jumpy"/>
 
68
                           <button label="button" class="jumpy"/>
 
69
                           <button label="button" class="jumpy"/>
 
70
                         </row>
 
71
 
 
72
                   </rows>
 
73
                </grid>
 
74
                <spacer style="border: 2px solid white;" flex="1"/>
 
75
    </hbox>
 
76
        <spacer style="border: 2px solid white;" flex="1"/>
 
77
 
 
78
</window>