This page is for the webservant. It documents simplybible.com’s annotation system. To escape from here, use Kanga Korna at top left or
When the user points to a
In the document head, the following entry is required below the normal control entries...
<script language="JavaScript" src="cAnotA.js"></script> In this example, the annotations required for the page are all included in cAnotA.js
The NoteClick() function in the Library and Annotate() function in simplybibleFinder provide the code and variables to drive
The annotations themselves are kept in cAnotA.js or cAnotB.js or similar. These files store the annotations in global variables in the form var A001="x"; where x is replaced with the annotation. In this way, all annotations in the file are accessible to, and loaded with, the page.
Immediately after the word that is to be annotated, place this code without
<script>new NoteClick(FName,"word","heading","srchterm","note");</script>
Note that the word after which the question mark symbol appears is jammed up against the script tag without any intervening space. This prevents a line break from separating the word and symbol. A
With the above code in place, all that is required
If using a variable reference such as B091 (and you normally will) then you need to write your annotation in the appropriate file. In this case it would be cAnotB.js. You would enter a new variable var B091="x"; and write your annotation in place of the x. This annotation would be accessible on any page carrying the entry <script language="JavaScript" src="cAnotB.js"></script> in the document head under the
When entering the note, the rules for strings apply. For example if an apostrophe is required, the single quote mark ' (that often doubles as an apostrophe) is unsuitable because it is used as a delimiter in the javascript. Thus it is necessary to use the
The annotation functions have the ability to process simple markup. For example you can insert images into the annotation or or apply style to it. Use single quotes to delimit attributes, not double quotes, since they delimit the entire annotation. More complex markup such as onclick cannot be used, nor any markup requiring
Many browsers are configured to block popus, sometimes even without a clickable option to allow them. So the popup windows have now been discontinued on this site. But what about all the pages with old popup calls? Will they no longer work? No, a patch has been provided in the Library to convert old popup window calls to the new annotations system. This allows all the annotations that used to appear in popup windows to now appear on the annotations page. As a page comes up for editing, its old popup calls can easily be converted to the new annotations system. Meanwhile the patch makes them work
Home | Bible Topics | The Hub