Mail&Guardian Online
 
  Make this your homepage
  RSS for your website, blog or reader 
12 December 2007 13:07 The smart news source

 SEARCH: M&G Online The web [Advanced Search]

Breaking News
Front Page
National
Africa
International
Business
Sport
And in other news ...
Photo galleries
News Insight
National
Africa
International
Comment & Analysis
Business
Columnists
Editorials
The Weekly Wrap
Monitor
Thought Leader
Body Language
Obituaries
Supplements
Leisure
ARTS
M&G; Money
Motoring
Tech
Travel
Special reports
ANC conference
Rugby World Cup
100 Young S Africans
Zuma special report
A new Zimbabwe
Aids, malaria & TB
Other reports
Regulars
Zapiro
Madam & Eve
Podcasts
Corrections
HIV/AIDS BAROMETER
Interact
Forums
Letters
Partner Sites
Blogs
The Teacher
The Media Online
SA Good News
Find your match now!
I am a:
Looking for:
Age Range: to

Career search
Search South Africa's #1 job listings and career advice site.
Find me a job!

- Michael Trapido
- Ndumiso Ngcobo
- Na'eem Jeenah
- Arthur Goldstuck
- Tony Lankester
- Steven Friedman
- Ivo Vegter
Brought to you by

More blogs ...

Discount on books!
Subscribe to the Mail & Guardian newspaper or the M&G; Online's free email newsletter and get 15% discount on books at the Exclusive Books website.
Get the paper
Get the newsletter

M&G; podcasts
The hottest news and views on our daily news podcasts and weekly podcasts with Tony Lankester
Read more ...

Mobile news
M&G; Online news, alerts and more on your cellphone.
Read more ...

FIND

- A job
- A date
- A destination
- An insurance quote
- Business search

QUICK LINKS

- News on your cellphone
- SMS news alerts
- M&G; Online mobizine
- Get your free blog

SERVICES

- Subscribe to M&G;
- Subscription queries
- Free news for your site
- Place an advert
FREE HEADLINES FOR YOUR SITE
Do-it-yourself news headline feeds
Mail & Guardian Online offers external feeds of its content in two formats, XML/RSS and javascript. The javascript feeds are easy to use by simply cutting & pasting the code below onto your web page. The XML feeds are more complicated to use, but can be more powerful.

1. Javascript feeds
Get free, automatic news headline feeds for your website from Africa's top news source, the Mail & Guardian Online. It is a simple and easy process and you can do it yourself by simply cutting and pasting elements of code onto your webpage. The feeds are updated and changed throughout the day, seven days a week, 365 days a year.

Step 1. Choose one or more of the feeds you want below. Then cut and paste the following pieces of code (below) into the HTML body of your web page in the desired location and the feed will appear. You will need to apply your own formatting and stylesheets to match the style and fonts of your website:


A. General feed (Six breaking news headlines from South Africa, Africa and around the world, including two sport headlines).

<script src="http://www.mg.co.za/feeds/legacy/freenews.aspx"></script>



B. National/local feed (Six breaking news headlines from South Africa only).

<script src="http://www.mg.co.za/feeds/js.aspx?inc=a|11|5"></script>



C. Africa feed (Five breaking news headlines from Africa).

<script src="http://www.mg.co.za/feeds/js.aspx?inc=a|37|5"></script>



D. Business feed (Five breaking news business headlines).

<script src="http://www.mg.co.za/feeds/js.aspx?inc=a|12|5"></script>



E. Sport feed (Five breaking news sport headlines).

<script src="http://www.mg.co.za/feeds/js.aspx?inc=a|18|5"></script>



F. International feed (Five breaking news international headlines).

<script src="http://www.mg.co.za/feeds/js.aspx?inc=a|13|5"></script>


Step 2. By cutting and pasting one or more of the pieces of code above, your feed should look similar to this (in the case of Feed A, the general feed), below, bar the colour and formatting changes you make to it:



Step 3. You can adjust the amount of headlines your javascript feed shows by adjusting the last number that appears in the code url. For example:


5 headlines: <script src="http://www.mg.co.za/feeds/js.aspx?inc=a|13|5"></script>



10 headlines: <script src="http://www.mg.co.za/feeds/js.aspx?inc=a|13|10"></script>



18 headlines: <script src="http://www.mg.co.za/feeds/js.aspx?inc=a|13|18"></script>



2. XML/RSS feed
Our breaking news RSS feed delivers about 50+ news stories daily (and about 10-15 stories per day on weekends). You can get the full, general feed which contains all our news, or choose specific channels such as sport, national or business news, depending on your preference.


General RSS feed (All areas)

National/local news RSS

Sport news RSS

Business news RSS

International news RSS

Africa news RSS

And in other news/offbeat news RSS




Click to add M&G; Online's RSS feed to your Google Homepage or RSS Reader



 Get news by e-mail
HTML Text   
   
[ More about this ]
Your M&G; Online
» ON YOUR PHONE
» ON YOUR DESKTOP
» VIA PODCAST
» ON YOUR WEBSITE
» VIA RSS FEED
» IN DIGITAL PDF
» VIA EMAIL

Online services
» FIND A JOB
» SUBSCRIBE TO M&G;
» HOTELS AND LODGES
» COMPARE INSURANCE QUOTES
» LIFE INSURANCE
» ACCOMMODATION
» FIRST FOR WOMEN
» CREDIT CARDS
» WIN EURO LOTTO
» BUY TECHNOLOGY
» PROPERTY
» MAP SEARCH
» INSURANCE QUOTE
» FIND A DATE
» HOLIDAY FINDER
» ONLINE SHOPPING
» INSURANCE
» PLACE AN ADVERT

Today's Zapiro

[ View more Zapiro cartoons ]
[ Daily Zapiro by e-mail ]

SA aircraft maintenance mishaps: Do you still trust flying?
Have your say
Columnists
- Tom Eaton
- Binyavanga Wainaina
- Guy Berger
- Ferial Haffajee
- Nick Said
- Matthew Buckland
- Fikile-Ntsikelelo Moya
- Fred Khumalo
- Matebello Motloung
- Maya Fisher-French
- Richard Calland
- Franz Krüger


WHAT'S ON
Find out what's on in your city ...











VERBATIM
There is a time to lead and a time to follow.
Read the full story
More verbatims


CONTACT US  |  ABOUT US  |  M&G HISTORY  |  SUBSCRIPTIONS  |  FREE NEWS FEED  |  ADVERTISING

All material copyright Mail&Guardian.
Material may not be published or reproduced in any form without prior written permission.
Read the Mail&Guardian's privacy policy
RSS feed JavaScript feed