|
This is the
old BARC! website. Go to the new improved
BARC! website for current information
Include BARC! Content in Your Website!
All content of the BARC! website is made freely available for distribution
under the OpenContent License (OPL) http://opencontent.org/opl.shtml
You can include any (or all) of the following pages directly
into your own website to improve the content that you have to offer your users:
Action, Calendar, Email Lists, Help Wanted, Local Organisations, National
Organisations, Resources.
Following are three different methods that you can use for
including page content. The best method, by far, uses some very simple
javascript. Just copy and paste the lines of javascript below and you will
incorporate BARC! content into your webpage that changes its appearance to look
like the rest of your page!
How to include dynamic content using javascript
A huge thank-you to Nicholas Haase of the Refugee Action
Collective for telling me how to do this.
Using this method, you will be able to include any page of BARC!
content into the body of your selected webpage. The content will keep itself up
to date. If you are using stylesheets (which you should be - they are the core
of good design) then the content will automatically adopt the appearance of the
rest of your webpage. You can also place the content within a table or some
other formatting and you can use stylesheets to change the format of the content
further. If you are not using stylesheets, then the content will have a set
format that you will not be able to modify. (Note that some HTML editors create
stylesheets automatically in your page, so you may have active stylesheets
without knowing it).
To see some examples of this in action, take a look at the
following pages on different websites:
All of these pages use shared content from the BARC! website. It
integrates perfectly with their site and stays up to date without requiring any
work from the site owners!
To learn how to use cascading stylesheets (CSS), take a look at
the tutorials at www.w3schools.com.
You will need to place a couple of lines of javascript within
the body of your web page (somewhere between the <body> and </body>
tags). You can have your own page content before and after the component that you include.
Following (in blue) is the javascript to include for each different page
Action:
<script src="http://www.barc.org.au/javascript/action.js">
</script>
<script type = "text/javascript"> write1() </script>
Calendar:
<script src="http://www.barc.org.au/javascript/calendar.js">
</script>
<script type = "text/javascript"> write1() </script>
Email Lists:
<script src="http://www.barc.org.au/javascript/elists.js">
</script>
<script type = "text/javascript"> write1() </script>
Gifts:
<script src="http://www.barc.org.au/javascript/gifts.js">
</script>
<script type = "text/javascript"> write1() </script>
Help Wanted:
<script src="http://www.barc.org.au/javascript/helpwant.js">
</script>
<script type = "text/javascript"> write1() </script>
Local Organisations:
<script src="http://www.barc.org.au/javascript/locorgs.js">
</script>
<script type = "text/javascript"> write1() </script>
National and International Organisations:
<script src="http://www.barc.org.au/javascript/natorgs.js">
</script>
<script type = "text/javascript"> write1() </script>
Resources:
<script src="http://www.barc.org.au/javascript/resource.js">
</script>
<script type = "text/javascript"> write1() </script>
Resources for Groups:
<script src="http://www.barc.org.au/javascript/res_grps.js">
</script>
<script type = "text/javascript"> write1() </script>
NB: If you use the copy and paste functions to put this text into
your HTML, you may need to use 'paste special' and then choose 'unformatted text'.
With some HTML editors, if you just use 'paste' you will end up including the HTML formatting
from this web page.
By default, the BARC! content will adopt the appearance of your
site. However, if you wish to gain more control over the appearance of the BARC!
content, you can do it by manipulating the specific BARC! styles.
Share the content of your website!
Some utilities that may help:
You are are free to copy and distribute both under the GNU
General Public License. I wrote the html to
javascript converter to both convert HTML documents into javascript and
convert relative URLs to absolute URLs. It is a simple batch file that is easy
to modify for the directory names that you use. It calls the program Minitrue
so you will have to install this simple program as well.
To provide feedback on this site, make corrections or for any other
comments,
please email Chris Gibbings admin@barc.org.au
|