1 |
2 |
fpga_is_fu |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
2 |
|
|
<HTML>
|
3 |
|
|
<HEAD>
|
4 |
|
|
<TITLE>The Joust Outliner - Menu Controls</TITLE>
|
5 |
|
|
<META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW">
|
6 |
|
|
<script language="JavaScript">
|
7 |
|
|
<!--
|
8 |
|
|
if ((self.name != 'menuHdr') & (self.location.protocol != "file:")) {
|
9 |
|
|
self.location = "index.htm";
|
10 |
|
|
}
|
11 |
|
|
if (parent.theBrowser) {
|
12 |
|
|
if (parent.theBrowser.canOnError) {window.onerror = parent.defOnError;}
|
13 |
|
|
}
|
14 |
|
|
//-->
|
15 |
|
|
</script>
|
16 |
|
|
<SCRIPT SRC="../scripts/is.js">
|
17 |
|
|
</SCRIPT>
|
18 |
|
|
<script language='javascript'>
|
19 |
|
|
|
20 |
|
|
//---------------------------------------------------------------------------
|
21 |
|
|
// Code for handling Toolbar like buttons
|
22 |
|
|
//
|
23 |
|
|
var loaded = false;
|
24 |
|
|
var imageDir = "../images/menu/hds/";
|
25 |
|
|
|
26 |
|
|
if (document.images) {
|
27 |
|
|
BtnExpandAlloff = new Image();BtnExpandAlloff.src = imageDir + "BtnExpandAll.gif";
|
28 |
|
|
BtnCollapseAlloff = new Image();BtnCollapseAlloff.src = imageDir + "BtnCollapseAll.gif";
|
29 |
|
|
BtnHomeoff = new Image();BtnHomeoff.src = imageDir + "BtnHome.gif";
|
30 |
|
|
}
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
function imageLoad() {
|
34 |
|
|
if (document.images) {
|
35 |
|
|
BtnExpandAllon = new Image();BtnExpandAllon.src = imageDir + "BtnExpandAllOver.gif";
|
36 |
|
|
BtnCollapseAllon = new Image();BtnCollapseAllon.src = imageDir + "BtnCollapseAllOver.gif";
|
37 |
|
|
BtnHomeon = new Image();BtnHomeon.src = imageDir + "BtnHomeOver.gif";
|
38 |
|
|
return (loaded = true);
|
39 |
|
|
}
|
40 |
|
|
}
|
41 |
|
|
|
42 |
|
|
function rollOut(imgName) {
|
43 |
|
|
if (document.images) {
|
44 |
|
|
if (is.nav4) {
|
45 |
|
|
document.toolbar.document[imgName].src = eval(imgName+"off.src");
|
46 |
|
|
} else {
|
47 |
|
|
document[imgName].src = eval(imgName+"off.src");
|
48 |
|
|
}
|
49 |
|
|
}
|
50 |
|
|
}
|
51 |
|
|
|
52 |
|
|
function rollIn(imgName) {
|
53 |
|
|
if (document.images && (loaded == true)) {
|
54 |
|
|
if (is.nav4) {
|
55 |
|
|
document.toolbar.document[imgName].src = eval(imgName+"on.src");
|
56 |
|
|
} else {
|
57 |
|
|
document[imgName].src = eval(imgName+"on.src");
|
58 |
|
|
}
|
59 |
|
|
}
|
60 |
|
|
}
|
61 |
|
|
|
62 |
|
|
function addToolbarBtn(btnName, btnTip, btnStatus, btnFunction) {
|
63 |
|
|
str = "<A HREF='javascript:parent.toolbarHtml()' ";
|
64 |
|
|
|
65 |
|
|
if (btnFunction != "") str += "onclick='" + btnFunction + "();return false' ";
|
66 |
|
|
|
67 |
|
|
str += "onMouseOver=\"rollIn('" + btnName + "');window.status='" + btnStatus + "';return true\" " +
|
68 |
|
|
"onMouseOut=\"window.status='';rollOut('" + btnName + "');return true\">" +
|
69 |
|
|
"<img NAME='" + btnName + "' SRC='" + imageDir + btnName + ".gif' ALT='" + btnTip + "' width=24 height=22 BORDER=0>" +
|
70 |
|
|
"</A>";
|
71 |
|
|
return str;
|
72 |
|
|
}
|
73 |
|
|
|
74 |
|
|
function loadToolbar() {
|
75 |
|
|
var imgDef='<IMG height="1" src="' + imageDir + 'linespacer.gif" width="1">';
|
76 |
|
|
var toolbarStr='';
|
77 |
|
|
toolbarStr = "<table border=0 cellspacing=0 cellpadding=0 width=\"100%\" bgColor=#D4D0C8><tr>";
|
78 |
|
|
toolbarStr += '<td bgColor=white rowSpan="3" width="1">' + imgDef + '</TD>';
|
79 |
|
|
toolbarStr += '<TD bgColor=white height="1">' + imgDef + '</TD>'
|
80 |
|
|
toolbarStr += '<TD bgColor=#808080 rowSpan=3 width="1">' + imgDef + '</TD></TR><TR><td width="100%">'
|
81 |
|
|
|
82 |
|
|
toolbarStr += addToolbarBtn('BtnExpandAll', 'Expand All', 'Click to expand all folders in the menu.', 'parent.theMenu.openAll');
|
83 |
|
|
toolbarStr += addToolbarBtn('BtnCollapseAll', 'Collapse All', 'Click to collapse all folders in the menu.', 'parent.theMenu.closeAll');
|
84 |
|
|
toolbarStr += addToolbarBtn('BtnHome', 'Home', 'Click to go to the Home page.', 'gohome');
|
85 |
|
|
toolbarStr += "</td></tr><tr>";
|
86 |
|
|
toolbarStr += '<TD bgColor=#808080 height="1">' + imgDef + '</TD></TR>'
|
87 |
|
|
toolbarStr += "</tr></table>";
|
88 |
|
|
if (is.nav4) {
|
89 |
|
|
with (document.toolbar.document) {
|
90 |
|
|
open();
|
91 |
|
|
write(toolbarStr);
|
92 |
|
|
close();
|
93 |
|
|
}
|
94 |
|
|
} else {
|
95 |
|
|
document.getElementById('toolbar').innerHTML = toolbarStr;
|
96 |
|
|
}
|
97 |
|
|
}
|
98 |
|
|
|
99 |
|
|
function refreshToolbar() {
|
100 |
|
|
rollOut('BtnExpandAll');
|
101 |
|
|
rollOut('BtnCollapseAll');
|
102 |
|
|
rollOut('BtnHome');
|
103 |
|
|
}
|
104 |
|
|
|
105 |
|
|
function gohome() {
|
106 |
|
|
parent.text.location = '../titlepage.htm';
|
107 |
|
|
}
|
108 |
|
|
|
109 |
|
|
</script>
|
110 |
|
|
</HEAD>
|
111 |
|
|
<BODY BGCOLOR=#FFFFCC marginwidth="0" marginheight="0" onLoad="imageLoad();loadToolbar()" onResize="refreshToolbar()">
|
112 |
|
|
<DIV ID=toolbar style="position:absolute; left: 0px; top: 26px">
|
113 |
|
|
</DIV>
|
114 |
|
|
</BODY>
|
115 |
|
|
</HTML>
|