Webmaster Tools from 4ni
(Click here if you would like artwork and code to link to 4ni)
Display Northern Ireland Local News On Your Own Website For Free
The 4ni journalism team produces daily stories from our offices in Belfast. You can enhance your website with this news to encourage people who use your website to visit more often.Here is some example code which you can use. https://test.4ni.co.uk/misc/testnews.aspx
Overview
This is a simple script that takes news from our RSS feed and uses the Google feeds service to extract the content and insert it into your page. You can dissect the code and modify it as you wish. You can also host the scripts locally if you want.
To install:
Put this in the <head> portion of your HTML on the page you want to display news on
Put this in the page where you want the news to show. Change niHeadlineCount to match the number of stories you want to show and change showNiNewsSnippet to false if you want to hide the story snippets.
Optional Add this to the <head> portion of the page if you want to style the content. You can add / remove from the css classes, this is just for testing. (remove style tags if you are adding to an existing <style> section).
Please contact us if you have any problems with this script or have any suggestions.
Example
-
Northern Ireland WeatherToday:A showery start with outbreaks most frequent north of Lough Neagh and through the morning, before dwindling during the afternoon as the northwest breezes ease and brighter spells of weak sunshine prosper. Maximum temperature 8 °C.Tonight:A dry night, save for a few light showers around the coasts, with prolonged clear spells and light winds bringing a frosty dawn for many in central and southern parts. Minimum temperature -3 °C.