This page is for the Webservant. You can navigate from the sidebar at left or pick-a-box.
The page header, and the page footer including the pick-a-box site map, all display automatically on every page. Only the home page index.htm is written out in full to assist Google and to assist users whose browsers are not running JavaScript. All other pages simply have a few lines of code in the document head. These lines activate a control system that automatically generates and manages the header, footer, and site map, making them appropriate to the page. All this is accomplished by functions in cMajor.js, in association with various functions in cLibrary.js and series-specific data provided in a Minor script.
Each page is associated with a series of pages, and each series has its own appropriate Minor script for example, the series Spiritual Enlightenment uses data provided in cLight.js. Page specific information is supplied in data strings delimited with commas in the traditional manner. A function Slice() will turn these strings into small arrays for manipulation. This makes it easy for manually entering data into the Minor script.
In the Minor script, data is entered into simple functions which, in skeleton form, look like this:
function GetX(i)
{
var o = "";
if (i == "113") {o = "data, here";}
if (i == "114") {o = "";}
if (i == "115") {o = "";}
if (i == "116") {o = "";}
if (i == "117") {o = "";}
if (i == "118") {o = "";}
if (i == "996") {o = "";}
return o
}//end GetX
The Minor script has a function like that for each of the items listed and explained below. Note that the numbers in the skeleton above are only examples. In these slots the actual number in the page's file name should be inserted. The initial var o = ""; does not need to be null, but can contain a default string. An if statement is then needed only for cases where a different string is required.
In the control section of the page head, the line <script>document.write(cMinor);</script> occurs. The variable cMinor is an alias which takes the value of the appropriate Minor script. The name of the Minor script is supplied from the Filename Index in the Library.
There is a banner at the top of every page that includes...
The top of this page is an example. Below are some tips for entering data into the Minor script's various functions.
Lesson number
Enter a number or alternative such as "index". Note that all variables in the Minor script are strings. Thus, for clarity of data type, lesson numbers are, like other data, entered within quotes.
Title
Enter the title of the page as it should appear in the title box, placing a <br /> where the title should break if not short enough for one line. Other formatting will be done automatically.
Alt
This is what will appear (in IE) when a box is moused over. Use simple text only, and use the actual ’ for an apostrophe not the single quote mark.
Subtitle
This will appear in the green strip under the title box. If the same message is required on all pages, just insert it within the quotes in the initial var o = "";.
Now to the bottom of the page. The array of small boxes serves as a site map which gives excellent, comprehensive, and direct access to the site from any page. The yellow boxes are page-specific Their number and type will vary from page to page. These yellow boxes (other than NEXT and LIST) are also controlled with data provided in Minor script functions as follows....
Thread box
One datum is required for each thread box that is to appear. Just enter one or more thread names delimited by commas. A thread box will be created for each name supplied. The thread names are listed in the Library script.
Read Me Box
A ReadMe box requires a pair of data. The first is the numerical portion of the file name (without initial or extension). The second is an alt describing the file. Each datum is delimited with a comma. Here's an example entry: "103,Buried with Christ". More than one pair may be entered. Note: You may need to add the file initial to the numerical portion to overide the default. The default is in FilenameInitial. So if, for example, you wanted a ReadMe box linked to f189 you would normally enter 189,Simply Christians and the default initial f would be added. However if you wanted this ReadMe box on the page dbdalechurch.htm the default initial would be d instead of f, so you would enter f189,Simply Christians to over-ride the default. This fix is supported in section (E) of the the Library function GetReadMeBoxes(s).
Online Bible
This box requires a data triplet. First the book name not abbreviated except that ordinals such as 2nd Corinthians are written in the form 2Corinthians. The second datum is the chapter number. The third datum is a code. For a WEB box, use a lower case w. For a KJV box, use a k. If both boxes are required, use a b. More than one triplet can be accommodated.
Occasionally there may be a need for a special link with some prominence. A tab link can be constructed as follows, using white, red or yellow:
<p><img src="imgtabwhite.gif" /> <a href="f337.htm">Just an Example</a></p>
The bottom of every page (including this one) has a footer with a simplybibleFinder box, a picture of a Bible and the URL of the website. There is also some page-specific information which again is controlled with data provided in Minor script functions.
Copyright years
The year or years to be tacked on to the copyright notice are simply entered in the form "2001" or "2001,2004".
Adopt status
If the page is waiting to be adopted, just enter "W", (capital letter) otherwise enter the name of the person or church which will be automatically inserted into a thank you acknowledgement.
Usage notes
Usage data can be entered in any order, except that pairs of data must be together and in order. For example to note that the page originates with Urge, and was preached as a Sunday Sermon, the following form of entry would be made: "P,Jan 2003,U" however the U could as well be at the beginning as at the end of the string, whilst the P must be followed immediately by the 8-character date. The order in which the data are entered is not necessarily the order in which they appear, because the order is dictated by the function processing the data. For the appropriate usages and their codes, look at the Library script.
At the very bottom of the page, we hardwire some old fashioned and rudimentary navigation links for users whose browsers are not running Javascript. These go in a paragraph below the call to display the footer. For example, here is the code for the footer and end links of this page...
<script>new PrintPageEnd();</script> <p class="center"><a href="index.htm">Home</a> | <a href="dcontents.htm">Bible Topics</a> | <a href="dhub.htm">The Hub</a> <noscript><br />www.simplybible.com Copyright © Ron Graham 2001</noscript></p>
The result of this script is what you see below --which is the actual end of this page.