home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
phoenx05.zip
/
phoenix
/
chrome
/
browser.jar
/
content
/
browser
/
aboutDialog.xul
< prev
next >
Wrap
Extensible Markup Language
|
2002-10-10
|
2KB
|
48 lines
<?xml version="1.0"?> <!-- -*- Mode: HTML -*- -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % aboutDialogDTD SYSTEM "chrome://browser/locale/aboutDialog.dtd" >
%aboutDialogDTD;
]>
<dialog xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
buttons="accept"
onload="onLoad();"
title="&aboutDialog.title;"
width="300" height="335">
<script type="application/x-javascript">
<![CDATA[
function onLoad() {
var userAgentField = document.getElementById("userAgent");
userAgentField.value = navigator.userAgent;
}
]]>
</script>
<vbox align="center" flex="1">
<image src="chrome://browser/content/about.gif"/>
<separator class="thin"/>
<hbox>
<label value="&brandShortName;" style="font-weight: bold;"/>
<label value="&version;"/>
</hbox>
<spacer flex="1"/>
<textbox id="userAgent" multiline="true" readonly="true" cols="60"/>
<spacer flex="1"/>
/* XXXBlake This is a workaround. I find that if I try to use href and I open
About as a modal dialog, a new browser window opens when I click the link
but the page doesn't load in it. */
<html:a onclick="window.openDialog('chrome://browser/content', 'Phoenix', 'chrome,all,dialog=no', '©rightLink;');"
href=""
style="display: block; color: blue; text-decoration: underline;">©right;</html:a>
<spacer flex="1"/>
</vbox>
<separator class="groove"/>
</dialog>