Our website uses a number of JavaScripts that might be
helpful for Information Providers (IP). JavaScript is a powerful client-side computer
language that is embedded within standard web browsers. JavaScript is related to the more
powerful Java, but is easier to use, more versatile, and less demanding on the user's
computer resources. JavaScript code can be included within the HTML code of your pages or
called from a separate file. The scripts listed below are stored in separate files. In
order to include these scripts on your own pages, include a <script> tag such as the
following example:
<script language="Javascript" src="../txt/nospam.js"></script>
- This <script> tag calls a JS file (nospam.js) from the txt
directory, and parses it using the Javascript functions of the user's browser.
- Change the script name to one listed below.
- Place these <script> tags immediately following the
<body> tag in your page. Some browsers (e.g. Opera) will not execute scripts called
from within the <head> tag.
- Note the directory path of the script collection.
"../txt/" is a relative path to the txt directory directly under the main
domain: i.e. www.ecumenism.net/txt/. Please use relative paths rather than fixed paths, to
ensure that your scripts will work from both our domains.
- For security reasons browsers will not execute a script from another
domain. Attempting to call a script from another site will be ignored. If you would like
to add a new script to our collection, please discuss it with the webeditor.
- Please ensure that you use the precise spelling and punctuation
shown here. JavaScript is case sensitive.
- Javascripts are "client-side" operations. This means that
the visitor's browser will download the script and execute it using their own computing
power. This is different from a "server-side" script such as ASP, CGI, PERL, or
Java. You cannot execute server-side scripts from your IP space.
- Javascripts have very little built-in security. However, it is
impossible to execute a Javascript from outside the domain that hosts it. So if you link
to a script on someone else's pages, don't expect it to work.
JavaScript collection
- milonic_src.js, mmenudom.js, mmenuns4.js
- These three scripts are used to produce Milonic menus. All three scripts must be loaded,
along with a specially formatted data file. The website has a license for use of this menu
system, so each IP can use the menus on their own site without registering. Instructions
on installing the menus can be found at http://www.milonic.com.
nospam.js
- This script prevents robots and search engines from indexing your email addresses. This
will result in reduced SPAM. Place the script tags immediately after the <body> tag,
and then place the following script wherever an email address appears on your pages:
<script>nospam('user','domain.net','Full Name');</script>
Replace the variables user, domain.net, and Full Name with the appropriate values. The
user will see the Full Name with a link opening their email service. For example: click to
email the . The reason that this script works is that search engines do
not execute JavaScript, thus the address is not recognised as an email address and is not
harvested. When the visitor's browser executes the script it renders a formatted address.
- validemail.js
- This script tests an email address to ensure that it is a validly formatted. You will
only need this script if the webeditor authorises you to use a formmail script. It is not
needed with nospam.js.