PDA

View Full Version : Adding a 'top 3 latest news' section using javascript?


coogie
06-06-2009, 08:02 PM
Hi there,

I'd like to build an HTML/javascript/Ajax site which will be quite basic. menu at top, content in middle etc.

I am trying to find out how I can integrate a news section. Basically, I want to add monthly just one project our company has worked on. This would include 1 picture and a very small amount of text about it.

Then on the homepage, i'd like to just have a smaller version of that news, only including the latest 3 items. Or even better, the user can use a -> to view older news without changing the page.

How easy to do that / or are there some scripts you can point me to ? I am a 'newbie' to javascript etc as I work only with Flash, Php and Mysql ! Any help or advise what i should be searching for is greatly appreciated.

On one note, I don't want to install an entire CMS for the whole website! As i tried that once, drove me mad!

Dzynit
06-09-2009, 05:34 PM
You could install a quick wordpress blog easily in a sub directory and use it for the news section only. Then use a feed script to display your 3 latest news articles.

Usually, your hosting would offer the instant automated wordpress install and then you just login, write your news posts, and add the feed script. You can use the javascript option of the Feedcommander for that: http://www.feedcommander.com/category/free/

If you installed the wordpress in a folder named blog, your feed would be:
http://www.yourdomain.com/blog/rss/