The Cochrane Collaboration

The Cochrane Collaboration

            The reliable source of evidence in health care

Snippet: Cochrane calendars

Calendar sample

Add a calendar of events and lists of workshops to your web pages:

1. Paste the 'snippet' of HTML below, as a single line of code with no line breaks, into the code of the web page where you want the calendar to appear:

<script type="text/javascript" 
id="version1.1" src="http://news.cochrane.org/view/item/javascript_calendar.jsp?channel=X">
</script>

2. Replace the "X" in the snippet with the ID number of the category (see table of channels, below) you want to display. Note: only select an 'event' or a 'workshop' channel, as 'news' channels should be displayed by the 'news' snippet.

3. (optional) Adjust the styles:

You can include the following style snippet in the head of the web page (anywhere between <head> and </head>) to use cochrane.org's news pages styles (colours, fonts, borders, etc):

<link 
        rel="stylesheet"
        type="text/css"
        href="http://www.cochrane.org/assets/style_sheets/news/calendar.css"
        />

Or you can create your own styles to tailor the resulting calendar to fit in with the rest of your website. Get the stylesheet from the address in the code above, modify as you wish, and place it on your site, and adjust the code above to point to it.

4. (optional) Tell your non-javascript-enabled visitors what news is available. The snippets won't be visible to the small percentage of visitors who have disabled their web browser's JavaScript feature. To accommodate them, include the following code just after the </script> part of your snippet:

<noscript>
    <p>
        <strong>JavaScript Disabled!</strong> If you 
        are reading this, JavaScript is not enabled in
        your web browser.  Please turn on your browser's 
        JavaScript feature to reveal the complete 
        contents of this web page. The news you are trying 
        to view may also be available at 
        <a href="http://www.cochrane.org">www.cochrane.org</a>
    </p>
</noscript>
Versions : print this page printable

 

Search

A-Z index      Help

 

From the newsroom (more...)

===========

This news column is also available as RSS. Copy this link to your news reader software.

Additional Newsroom columns can be viewed at cochrane.org/news.

 
top of page | contact us | about this site | disclaimer | privacy