Sunday, August 5, 2007

How to Present the Ushanka.us Top Five

Now you can add the top rated articles widget from Ushanka.us to your site. These articles are rated by Ushanka.us visitors and provide insight into MSM bias. At present, we publish the top five articles. Adding the articles widget to your site is as easy as 1,2 and 3. You can also customize the look and feel and header of the widget.

1. Adding widget with default header

Just add following lines to your page or side bar

<script language="javascript" src="http://www.ushanka.us/TopRated.ashx" type="text/javascript"></script>

It will add articles with "Top rated articles from Ushanka.us" as header

2. Adding widget with customized header

Just add following lines to your page or side bar

<script language="javascript" type="text/javascript">
var ushanka_header = 'My own header';
</script>
<script language="javascript" src="http://www.ushanka.us/TopRated.ashx" type="text/javascript"></script>


3. Customizing look and feel of the widget

Widget will render standard html with div tags. There are three sections with three different div class.
  • UshankaTopRated - This is container for the entire widget.
  • UshankaHeader - This is container for header section.
  • UshankaArticles - This is container for article links section.

You can customize look and feel by adding above three classes to your CSS and modifying it.