Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

evoluzione

macrumors 68020
Original poster
anyone have any idea how i get that BBC News website headlines box onto my website? i looked at the BBC site but don't see anything obvious as to ho i'd get the code or whatever i need.

bit vague i know, but i can't think of any sites as an example :(
 
Hi.
I'm in the UK and regularly go the BBC website. Can you give some more details of just what you want? I'll try to help if you tell me. :)
 
Do mean you want the headlines from the BBC RSS feed? I'm sure you could find a simple PHP implementation of an RSS reader for your site. Also, check this note on the BBC site. The actual links to the RSS feeds are at the top right of that page.

EDIT- Here's some javascript to pull the top 5 headlines of the Front Page headlines:
Code:
<script language="JavaScript" src="http://tools.blogharbor.com/rss2js/rss2js.php?src=http%3A%2F%2Fnewsrss.bbc.co.uk%2Frss%2Fnewsonline_uk_edition%2Ffront_page%2Frss.xml&num=5&date=no&css=no"></script>
I got it from this site.
 
If you look at the site I linked to you can choose the custom css option and then use the code on your website and write a style sheet to make it look however you want it to.
 
Hi again.
OK, so you want to go the BBC sports link? Um - do you want to reproduce the third-party link box that you gave in the link or do you want to get to the BBC direct? Sorry, but I'm still confused as to just what you want? :confused:
 
Oryan, thanks again, i'll have to take a good look at that site, too tired to take it all in now.

UKnjb, basically, i want this (well, just Liverpool specific headlines if at all possible)...
 

Attachments

  • Picture 1.png
    Picture 1.png
    11.6 KB · Views: 380
Hi.
Well, I THINK I know what you want --- The box in your link is created from the following code (lifted directly by 'Viewing Source'):

<table width="194" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="4"><img src="http://www.sigames.com/graphics/skins/default/table_head_left_red.gif" border="0" height="26" width="4"><br></td>
<td style="margin: 0px; padding: 0px; background-image: url(http://www.sigames.com/graphics/skins/default/table_head_mid_red.gif); background-repeat: repeat-x;" width="521"><div class="head_sinews">BBC Sport</div></td>
<td width="63"><img src="http://www.sigames.com/graphics/skins/default/table_head_right_red.gif" border="0" height="26" width="63"><br></td>
</tr>
</table>
<table width="194" border="0" cellpadding="0" cellspacing="0" style="margin-bottom:4px">
<tbody>
<tr>
<td
style="margin: 0px; padding: 8px; background-image: url(http://www.sigames.com/graphics/skins/default/table_small_white.gif); background-repeat: repeat-y; background-position: center;">


<style type="text/css"> <!--#BBCSportCol div{font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif, "MS sans serif";color:#000000;padding:0px;letter-spacing:normal;font-variant:normal;vertical-align:baseline;text-indent:0;text-transform:none;word-spacing:normal;position:relative;} #BBCSportCol a{font-family:Verdana, Arial, Helvetica, sans-serif, "MS sans serif";font-weight:bold;font-size:10px;}#BBCSportCol a:link{color:#000099;text-decoration:none;font-weight:bold;background:transparent;font-size:10px}#BBCSportCol a:visited{color:#666699;text-decoration:none;font-weight:bold;background:transparent;font-size:10px}#BBCSportCol a:hover{color:#CC3300;text-decoration:none;font-weight:bold;background:transparent;font-size:10px}#BBCSportCol #BBCSectionXtra a{font-weight:normal;border:0px;}#BBCSportCol #BBCBoxWidth{width:175px;}#BBCSportCol #BBCBorder{border:6px solid #FFCC00;background:#FFFFFF}#BBCSportCol #BBCLogo{background:#FFCC00 url("http://newsimg.bbc.co.uk/shared/bsp/hi/services/htmlsyndication/img/hbox/bbcsport_col.gif");background-repeat:no-repeat;text-align:left;}#BBCSportCol #BBCSectionX{background:#000000;padding-left:3px;font-weight:bold;color:#FFFFFF;border-bottom:1px solid #000000;border-top:1px solid #000000;position:relative;text-align:left;}#BBCSportCol .BBCSectionX{color:#FFFFFF;text-align:left;}#BBCSportCol #BBCSectionXtra {font-weight:normal;text-align:right;position:absolute;top:0px;right:8px;}#BBCSportCol #BBCSectionXtra a:link{color:#FFCC00;text-decoration:none;}#BBCSportCol #BBCSectionXtra a:hover{color:#FFFFFF;text-decoration:none;}#BBCSportCol #BBCSectionXtra a:visited{color:#FFCC00;text-decoration:none;}#BBCSportCol #BBClink{background: #FFFFFF url("http://newsimg.bbc.co.uk/shared/bsp/hi/services/htmlsyndication/img/hbox/arrow.gif");background-repeat:no-repeat;padding:0 0 3px 16px;border-top:1px solid #CCCCCC;font-weight:bold;text-align:left;}#BBCSportCol #BBCAV{background:#CCCCCC url("http://newsimg.bbc.co.uk/shared/bsp/hi/services/htmlsyndication/img/hbox/audio.gif");background-repeat:no-repeat;padding-left:16px;background-position:0 2;font-weight:bold;text-align:left;}#BBCSportCol #BBCForm{border:0px;margin:0px;padding-bottom:3px;text-align:left;}#BBCSportCol #BBCSearch{background-color:#000000;border-top:1px solid #000000;border-bottom:1px solid #000000;font-weight:bold;padding-left:3px;margin-top:3px;margin-bottom:3px;color:#FFFFFF}#BBCSportCol #BBCFoot{padding:3px;letter-spacing:-1px;background:#CCCCCC;font-weight:normal;border-top:1px solid #000000;text-align:left;}--></style><div id="BBCSportCol"> <div id="BBCBoxWidth"> <div id="BBCBorder"> <div id="BBCLogo"><a href="http://www.bbc.co.uk/go/click/hs/10010451/bbc_sport/colour/-/sport" target="_blank"><img src="http://www.bbc.co.uk/go/display/hs/10010451/bbc_sport/colour/-/syndication/metrics/n.gif" width="145" height="35" alt="BBC Sport: Updated every minute of every day..." border="0" /></a></div> <div id="BBCSectionX">Football</div> <div id="BBClink"> <a href="http://news.bbc.co.uk/go/click/hs/10010451/bbc_sport/colour/-/sport1/hi/football/eng_prem/4955410.stm" class="BBCLink" target="_BBC"> Blues revel in title celebrations </a></div> <div id="BBClink"> <a href="http://news.bbc.co.uk/go/click/hs/10010451/bbc_sport/colour/-/sport1/hi/football/eng_prem/4933716.stm" class="BBCLink" target="_BBC"> Chelsea 3-0 Man Utd </a></div> <div id="BBClink"> <a href="http://news.bbc.co.uk/go/click/hs/10010451/bbc_sport/colour/-/sport1/hi/football/eng_prem/4958306.stm" class="BBCLink" target="_BBC"> Birmingham & Baggies relegated </a></div> <div id="BBCFoot">BBC Sport is editorially independent. Its appearance on this site should not be taken as an endorsement.</div> </div> </div></div></td>
</tr>
<tr>
<td><img src="http://www.sigames.com/graphics/skins/default/table_small_bottom.gif" border="0" height="3" width="194"><br></td>
</tr>
</tbody>
</table>


You can adjust any of the colours/links by substituting appropriately. Sorry fi this is not what you were wanting, but tit is the best I can do - and I have to get to bed now. Good luck! :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.