home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / browser.jar / content / browser / aboutDialog.xul < prev    next >
Extensible Markup Language  |  2002-10-10  |  2KB  |  48 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> 
  2.  
  3.  
  4. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
  5.  
  6. <!DOCTYPE window [
  7. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  8. %brandDTD;
  9. <!ENTITY % aboutDialogDTD SYSTEM "chrome://browser/locale/aboutDialog.dtd" >
  10. %aboutDialogDTD;
  11. ]>
  12.  
  13. <dialog xmlns:html="http://www.w3.org/1999/xhtml"
  14.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  15.         buttons="accept"
  16.         onload="onLoad();"
  17.         title="&aboutDialog.title;"
  18.         width="300" height="335"> 
  19.     
  20.     <script type="application/x-javascript">
  21.       <![CDATA[
  22.         function onLoad() {
  23.           var userAgentField = document.getElementById("userAgent");
  24.           userAgentField.value = navigator.userAgent;
  25.         }
  26.       ]]>
  27.     </script>
  28.  
  29.     <vbox align="center" flex="1">
  30.       <image src="chrome://browser/content/about.gif"/>
  31.       <separator class="thin"/>
  32.       <hbox>
  33.         <label value="&brandShortName;" style="font-weight: bold;"/>
  34.         <label value="&version;"/>
  35.       </hbox>
  36.       <spacer flex="1"/>
  37.       <textbox id="userAgent" multiline="true" readonly="true" cols="60"/>
  38.       <spacer flex="1"/>
  39.       /* XXXBlake This is a workaround.  I find that if I try to use href and I open
  40.                   About as a modal dialog, a new browser window opens when I click the link
  41.                   but the page doesn't load in it.  */
  42.       <html:a onclick="window.openDialog('chrome://browser/content', 'Phoenix', 'chrome,all,dialog=no', '©rightLink;');"
  43.               href=""
  44.               style="display: block; color: blue; text-decoration: underline;">©right;</html:a>
  45.       <spacer flex="1"/>
  46.     </vbox>
  47.     <separator class="groove"/>
  48. </dialog>