home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 July & August / PCWorld_2005-07-08_cd.bin / komunikace / netscape / nsb-install-8-0.exe / res / samples / toolbarTest1.xul < prev    next >
Extensible Markup Language  |  2004-11-25  |  2KB  |  52 lines

  1. <?xml version="1.0"?> 
  2. <?xml-stylesheet href="chrome://navigator/skin/navigator.css" type="text/css"?> 
  3.  
  4. <!DOCTYPE window> 
  5.  
  6. <window orient="vertical" xmlns:html="http://www.w3.org/1999/xhtml"
  7.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  8.         onConstruction="Startup()"> 
  9.  
  10. <html:div>
  11.     <html:h1>Toolbar Test 1</html:h1>
  12.  
  13.     <html:h3>
  14.         You should see a two toolbars with buttons that don't do anything. This test is useful for checking layout
  15.         and look/feel of rollover and clicks. Note that the last toolbar is empty, and should be of
  16.         normal size because of min-height.
  17.     </html:h3>
  18.  
  19.     <html:hr/>
  20. </html:div>
  21.  
  22. <toolbox style="min-width: 10px">  
  23.    <toolbar>
  24.       <button id="back-button"    align="top" value="Back"/>    
  25.       <button id="forward-button" align="top" value="Forward"/>
  26.       <button id="reload-button"  align="top" value="Reload"/>
  27.       <button id="stop-button"    align="top" value="Stop"/>
  28.       <button id="home-button"    align="top" value="Home"/>
  29.       <button id="print-button"   align="top" value="Print"/> 
  30.  
  31.           <vbox flex="100%">
  32.             <spacer flex="100%"/>
  33.             <html:input id="urlbar" type="text"/>   
  34.         <spacer flex="100%"/>
  35.           </vbox>
  36.  
  37.           <button src="resource:/res/throbber/anims00.gif" align="right"/>
  38.     
  39.     </toolbar>
  40.  
  41.     <toolbar>
  42.       <button align="left" id="translate-button" value="Mozilla" />
  43.       <button align="left" id="translate-button" value="ABC News"/>
  44.       <spacer flex="100%"/>
  45.     </toolbar>
  46.     
  47.     <toolbar>
  48.     </toolbar>
  49.   </toolbox>
  50.  
  51. </window>
  52.