This commit is contained in:
peterl%netscape.com 1999-02-12 08:15:17 +00:00
Родитель 3fa4aedea7
Коммит 0c21a47524
5 изменённых файлов: 114 добавлений и 120 удалений

Просмотреть файл

@ -1,52 +1,52 @@
<?xml version="1.0"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40">
<window xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<?xml-stylesheet href="xul.css" type="text/css"?>
<!DOCTYPE window>
<html:script LANGUAGE="JavaScript">
<xul:window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
function StartUp()
{
appCore = AppCoresManager.Find("MailAppCore");
if (appCore==null) {
appCore = new MailCore();
if (appCore != null) {
dump("MailAppCore was created!\n");
appCore.Init("MailAppCore");
appCore.MailCompleteCallback("MailSent();");
appCore.SetWindow(window);
<html:script language="JavaScript">
function StartUp()
{
appCore = AppCoresManager.Find("MailAppCore");
if (appCore==null) {
appCore = new MailCore();
if (appCore != null) {
dump("MailAppCore was created!\n");
appCore.Init("MailAppCore");
appCore.MailCompleteCallback("MailSent();");
appCore.SetWindow(window);
}
}
}
}
function SendMailMessage()
{
dump("SendMailMessage!\n");
var appCore = AppCoresManager.Find("MailAppCore");
if (appCore != null) {
dump("Mail was sent!\n");
appCore.SendMail(window.parent.frames[1].document.forms[0].elements[1].value,
window.parent.frames[1].document.forms[0].elements[2].value,
window.parent.frames[1].document.forms[0].elements[4].value);
}
function SendMailMessage()
{
dump("SendMailMessage!\n");
var appCore = AppCoresManager.Find("MailAppCore");
if (appCore != null) {
dump("Mail was sent!\n");
appCore.SendMail(window.parent.frames[1].document.forms[0].elements[1].value,
window.parent.frames[1].document.forms[0].elements[2].value,
window.parent.frames[1].document.forms[0].elements[4].value);
}
}
}
function MailSent()
{
function MailSent()
{
// Clear Them
window.parent.frames[1].document.forms[0].elements[1].value = "";
window.parent.frames[1].document.forms[0].elements[2].value = "";
window.parent.frames[1].document.forms[0].elements[4].value = "";
// Clear Them
window.parent.frames[1].document.forms[0].elements[1].value = "";
window.parent.frames[1].document.forms[0].elements[2].value = "";
window.parent.frames[1].document.forms[0].elements[4].value = "";
}
}
</html:script>
</html:script>
<window>
<xul:commands>
<xul:command name="nsCmd:StartUp" onCommand="StartUp();"/>
<xul:command name="nsCmd:MailSendMsg" onCommand="SendMailMessage();"/>
@ -56,22 +56,22 @@ function MailSent()
<xul:toolbar>
<html:button cmd="nsCmd:MailSendMsg" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/Mail_SendMsg.gif"/><html:BR/>Send
<html:img src="resource:/res/toolbar/Mail_SendMsg.gif"/><html:br/>Send
</html:button>
<html:button cmd="nsCmd:MailGetMsg" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/Mail_GetMsg.gif"/><html:BR/>GetMsg
<html:img src="resource:/res/toolbar/Mail_GetMsg.gif"/><html:br/>GetMsg
</html:button>
<html:button cmd="nsCmd:MailNewMsg" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/Mail_NewMsg.gif"/><html:BR/>New Msg
<html:img src="resource:/res/toolbar/Mail_NewMsg.gif"/><html:br/>New Msg
</html:button>
<html:button cmd="nsCmd:MailReply" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/Mail_Reply.gif"/><html:BR/>Reply
<html:img src="resource:/res/toolbar/Mail_Reply.gif"/><html:br/>Reply
</html:button>
<html:button cmd="nsCmd:MailForward" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/Mail_Forward.gif"/><html:BR/>Forward
<html:img src="resource:/res/toolbar/Mail_Forward.gif"/><html:br/>Forward
</html:button>
<html:button cmd="nsCmd:BrowserPrint" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/TB_Print.gif"/><html:BR/>Print
<html:img src="resource:/res/toolbar/TB_Print.gif"/><html:br/>Print
</html:button>
<html:a style="position:relative; direction:rtl; right:3; top: 2px;" href="http://www.netscape.com">
<html:img alt="Throbber!" border=0 src="resource:/res/throbber/anims00.gif"/>
@ -79,14 +79,14 @@ function MailSent()
</xul:toolbar>
<xul:toolbar>
<html:FORM>
<html:SELECT style="width:200px;">
<html:OPTION>INBOX</HTML:OPTION>
</html:SELECT>
</html:FORM>
<html:form>
<html:select style="width:200px;">
<html:option>INBOX</html:option>
</html:select>
</html:form>
</xul:toolbox>
</xul:toolbox>
</window>
</xul:window>

Просмотреть файл

@ -1,62 +1,61 @@
<?xml version="1.0"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40">
<window xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<?xml-stylesheet href="xul.css" type="text/css"?>
<!DOCTYPE window>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:xul ="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script>
function StartUp()
{
appCore = AppCoresManager.Find("BrowserAppCore");
if (appCore==null) {
appCore = new BrowserAppCore();
if (appCore != null) {
appCore.Init("BrowserAppCore");
appCore.setToolbarWindow(window);
appCore.setContentWindow(window.parent.frames[1]);
appCore.setWebShellWindow(window.parent);
appCore.setDisableCallback("DoDisableButtons();");
appCore.setEnableCallback("DoEnableButtons();");
<html:script>
function StartUp()
{
appCore = AppCoresManager.Find("BrowserAppCore");
if (appCore==null) {
appCore = new BrowserAppCore();
if (appCore != null) {
appCore.Init("BrowserAppCore");
appCore.setToolbarWindow(window);
appCore.setContentWindow(window.parent.frames[1]);
appCore.setWebShellWindow(window.parent);
appCore.setDisableCallback("DoDisableButtons();");
appCore.setEnableCallback("DoEnableButtons();");
}
}
}
}
function DoDisableButtons()
{
// Find buttons in the UI and disable them
dump("Browser disabling buttons\n");
}
function DoEnableButtons()
{
// Find buttons in the UI and enable them
dump("Browser enabling buttons\n");
}
function BrowserBack()
{
appCore = AppCoresManager.Find("BrowserAppCore");
if (appCore != null) {
appCore.back();
} else {
dump("BrowserAppCore has not ben created!\n");
function DoDisableButtons()
{
// Find buttons in the UI and disable them
dump("Browser disabling buttons\n");
}
}
function BrowserForward()
{
appCore = AppCoresManager.Find("BrowserAppCore");
if (appCore != null) {
appCore.forward();
} else {
dump("BrowserAppCore has not ben created!\n");
function DoEnableButtons()
{
// Find buttons in the UI and enable them
dump("Browser enabling buttons\n");
}
}
</html:script>
function BrowserBack()
{
appCore = AppCoresManager.Find("BrowserAppCore");
if (appCore != null) {
appCore.back();
} else {
dump("BrowserAppCore has not ben created!\n");
}
}
function BrowserForward()
{
appCore = AppCoresManager.Find("BrowserAppCore");
if (appCore != null) {
appCore.forward();
} else {
dump("BrowserAppCore has not ben created!\n");
}
}
</html:script>
<window>
<xul:commands>
<xul:command name="nsCmd:StartUp" onCommand="StartUp();"/>
<xul:command name="nsCmd:BrowserBack" onCommand="BrowserBack();"/>
@ -87,43 +86,43 @@ function BrowserForward()
<xul:toolbar>
<html:button cmd="nsCmd:BrowserBack" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/TB_Back.gif"/><html:BR/>Back
<html:img src="resource:/res/toolbar/TB_Back.gif"/><html:br/>Back
</html:button>
<html:button cmd="nsCmd:BrowserForward" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/TB_Forward.gif"/><html:BR/>Forward
<html:img src="resource:/res/toolbar/TB_Forward.gif"/><html:br/>Forward
</html:button>
<html:button cmd="nsCmd:BrowserReload" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/TB_Reload.gif"/><html:BR/>Reload
<html:img src="resource:/res/toolbar/TB_Reload.gif"/><html:br/>Reload
</html:button>
<html:button cmd="nsCmd:BrowserStop" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/TB_Stop.gif"/><html:BR/>Stop
<html:img src="resource:/res/toolbar/TB_Stop.gif"/><html:br/>Stop
</html:button>
<html:button cmd="nsCmd:BrowserHome" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/TB_Home.gif"/><html:BR/>Home
<html:img src="resource:/res/toolbar/TB_Home.gif"/><html:br/>Home
</html:button>
<html:button cmd="nsCmd:BrowserPrint" style="background-color:rgb(192,192,192);">
<html:img src="resource:/res/toolbar/TB_Print.gif"/><html:BR/>Print
<html:img src="resource:/res/toolbar/TB_Print.gif"/><html:br/>Print
</html:button>
<html:input style="width:325px;"></html:input>
<html:button cmd="nsCmd:BrowserHome">
<html:input style="width:325px;"/>
<html:button cmd="nsCmd:BrowserHome">
<html:img src="resource:/res/throbber/anims00.gif"/>
</html:button>
</html:button>
</xul:toolbar>
<xul:toolbar>
<html:button cmd="nsCmd:BrowserHome">
<html:img src="resource:/res/toolbar/TB_Location.gif"/>Mozilla.org
</html:button>
</html:button>
<html:button cmd="nsCmd:BrowserHome">
<html:img src="resource:/res/toolbar/TB_Location.gif"/>Mozilla.org
</html:button>
</html:button>
<html:button cmd="nsCmd:BrowserHome">
<html:img src="resource:/res/toolbar/TB_Location.gif"/>Mozilla.org
</html:button>
</xul:toolbox>
</html:button>
</xul:toolbar>
</xul:toolbox>
</window>
</xul:window>

Просмотреть файл

@ -17,7 +17,7 @@ toolbox {
background-color:darkgray;
}
:TOOLBOX-NORMAL {
:toolbox-normal {
background-color: lightgray;
color: lightgray;
border-bottom: solid darkGray 1px;
@ -25,7 +25,7 @@ toolbox {
border-left: solid white 0px;
border-right: solid darkGray 1px;
}
:TOOLBOX-ROLLOVER {
:toolbox-rollover {
background-color: purple;
color: green;
border-bottom: solid darkGray 1px;
@ -45,6 +45,6 @@ button.throbber {
background-color:red;
background-image:url("resource:/res/throbber/anims00.gif");
}
throbber [busy] {
throbber[busy] {
background-image:url("resource:/res/throbber/anims07.gif");
}

Просмотреть файл

@ -1,19 +1,16 @@
<style type="text/css">
BODY,TD, FORM, INPUT {
body,td, form, input {
background-color: #ffffff;
}
#find { width: 80px; left: 255px; top: 120px; font-style: normal; position: absolute; visibility: height: 32px; visible; z-index: auto}
#cancel { width: 80px; left: 165px; top: 120px; font-style: normal; position: absolute; visibility: height: 32px; visible; z-index: auto}
BODY,TD {
body,td {
font-size: 8pt;
}
BODY {
body {
height:200px;
margin: 0px 0px 0px 0px;
background-color:#ffffff;
}
</style>

Просмотреть файл

@ -1,6 +1,4 @@
<style type="text/css">
BODY,TD, FORM {
body,td, form {
font-family: Sans-Serif;
background-color: #bbbbbb;
}
@ -9,11 +7,11 @@ BODY,TD, FORM {
#cancel { width: 80px; left: 350px; top: 40px; font-style: normal; position: absolute; visibility: height: 32px; visible; z-index: auto}
BODY,TD {
body,td {
font-size: 8pt;
}
BODY {
body {
margin: 0px 0px 0px 0px;
height: 200px;
background-color: #bbbbbb;