Nitesh is back to blogging.. Apologies for no updates since last 2 months..
TopBottom

Display posts as headlines - blogger widget

Posted by Nitesh Kothari on 28 October 2008
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Do you like the way news channels display moving headlines? If yes, then you should check out this blogger widget called WH Headlines. This blogger hack displays recent posts as headlines. You can see live demo above this post.

How to Add WH Headlines blogger widget to your blog


Copy the following code to a new HTML/javascript gadget in layout section.

<script style="" src="http://ads.googlecode.com/files/Headlines%20widget%20.js"> </script><script style=""> var nMaxPosts = 15; var sBgColor; var nWidth; var nScrollDelay = 175; var sDirection="left"; var sOpenLinkLocation="N"; var sBulletChar="»»"; </script> <script style="" src="http://Yourblog.blogspot.com/feeds/posts/default?alt=json-in-script&amp;callback=RecentPostsScrollerv2"> </script>

How to Customize this widget/Gadget

var nMaxPosts = 15; - This code sets the no of posts in this widget.

var sBgColor; - If you want to set background color then change this code to var sBgColor= grey;

var nWidth; - Modify this code to change the width to var nWidth= 100px;

var nScrollDelay = 175; - This code is used to set the speed of scrolling. Lesser the no, higher the speed of scrolling.

var sDirection="left"; - This code sets the direction of scroll. left = Right to left; Right = Left to right; Up = Down to up; Down = Up to down

var sBulletChar="»»"; - This bullet appears before each post link in this widget. You can replace this to any other bullet.

http://Yourblog.blogspot.com - Replace this code by your Blog address.

Final Words
I am planning to write a series of posts on this hack. Comment here and tell me how did you like this hack?

Labels:

4 comments:

Nikolai said...

Hi there! Good Day! Just Dropping by and making my daily drop routine... I think there's something wrong with your messaging script..

best regards,
raphael nikolai

Attalib said...

Hi thnx so much for this hack
i wrote about it and i edited it (fit to RTL)so on my blog it works great but on other blogs they got this erro /objPost is undefined"
what i can do?

الـطـالـب said...

well excus eme but i told you it works with som blogger templates but i got error msg on others!

Post a Comment

Thank you for commenting at NiteshKothari.com. I follow "U comment I comment" movement. All the comment are dofollow. Please do not spam or leave meaningless or short comments. I expect you to leave me meaningful, relative and genuine comments. Thank you.