Mail&Guardian Online
 
  Make this your homepage
  RSS for your website, blog or reader 
17 June 2007 10:13 Africa's first online newspaper. First with the news.

 SEARCH: M&G Online The web    Business directory  [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
Body Language
Obituaries
Supplements
Leisure
ARTS
M&G; Money
Motoring
Tech
Travel
Special reports
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
Notes & Queries
Letters
Partner Sites
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!

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

MOBILE SERVICES

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

QUICK LINKS

- Get your free blog
- Notes & Queries

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
» WIN EURO LOTTO
» BIG PRIZES@WIN NOW
» ONLINE IT STORE
» PROPERTY
» HOLIDAY RENTALS
» MAP SEARCH
» INSURANCE QUOTE
» HOLIDAY ACCOMMODATION
» FIND A DATE
» ONLINE AUCTIONS
» HOLIDAY FINDER
» ONLINE SHOPPING
» INSURANCE
» SUBSCRIBE TO M&G;
» PLACE AN ADVERT

Today's Zapiro

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

Current: R14,000.00
F Claerhout

Would underperforming public-service workers do better if they were paid more?
Have your say
Columnists
- Tom Eaton
- John Matshikiza
- Binyavanga Wainaina
- Guy Berger
- Nick Said
- Matthew Buckland
- Maya Fisher-French
- Richard Calland
- Franz Krüger
- Harry Herber


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












Get news by e-mail

HTML
Text   

[ More about this ]
VERBATIM
I'm not a black American, I'm not a white American. I'm an Ethiopian.
Read the full story
More verbatims


CONTACT US  |  ABOUT US  |  M&G HISTORY  |  SUBSCRIPTIONS  |  M&G CSI  |  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