Friday, 17 August 2007

My new (improved) blog headlines widget

I have now made a new (and much better) blog headlines widget using only javascript (no php required). This has allowed me to include links, and possibly images in the feed which is displayed in the widget, whereas the previous widget did not!






To create this widget, I used the gAjax Pausing RSS Scroller scripts from Dynamic Drive. Rather than relying on a php script to parse the rss feed before it is displayed on my page, this one instead uses Google Ajax Feed API to host/cache the desired RSS feeds, so you don't have to install or host anything on your own server.

In order to make the script work, I needed to upload two javascripts to my web host, and add a small amount of code to my template which includes the Google API specific to this site.

This version of the scrolling headlines is much easier to use and install, and I would highly recommend it to anyone who would like to install such a widget on their own blog. To download all the files needed to create your own scrolling headlines widget, please visit this page on the Dynamic Drive site.

Technorati Tags: | | | | |


No comments:

Post a Comment