December 27, 2008

Auto Scrolling - Recent Posts Widget For Blogger/Blogspot Blogs


Recently I have posted an article on how to make an auto scrolling text/image widget. Now if you want to display your blog posts in this way either at the top or at the bottom of your blog, then you can use this new widget:


To add this widget to your blog, log in to Blogger
Go to Layout -> Add a Gadget -> HTML/JavaScript type, then add this code to it.

<script style="" src="http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/recentpostsscrollerv2.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>

You can modify the code (variables) according to your requirements, for ex.
in case of "var nScrollDelay", lower the number, higher will be the speed.

First, simply add and test the code without changing anything [ofcourse you have to add the blog address], then after watching it live on your blog, make further adjustments :)


22 comments:

Satya Madridista said...

i try but error
showing undefined undefines on each article tittle, like this

article tittle undefinedundefined article tittle undefinedundefined

Divya Sai said...

Hi Satya,
Thanks for commenting, yes there was an error, actually titles were being shown correctly, but there was a small error in the code due to which the symbol between titles was not being displayed.
Anyways, it's OK now, u can use this hack !

Regards
Sai

Satya Madridista said...

Thx so much, permission to catch the code, :D

btw credit to bloggerstop.net always shown on my article if i took a code from here .. cheers

Ivaylo Spasov said...

Hi, I have a problem with this code. I replased the red text with the address of my blog, but i'va got an error: "TypeError: objPost is undefined". What could be the problem? 10x in advance!

Ivaylo Spasov said...

Also I don't have any scrolling titles.

Divya Sai said...

Hi Ivaylo Spasov
I have checked the code in javascript4blogger.blogspot.com, and it's working fine there.

I think as you have only 1 post, so it might be having some problem, implement this code in your blog, once you have posted 10-15 posts !
(In the mean time you can show titles of any other blogger blog, if you have one)

Regards
Sai

Ivaylo Spasov said...

Thank you for the information. I'll try it later when there are more posts in the blog.

Ivaylo Spasov said...

So I have tested the code. It works with more than 13 posts. Under that number there is an error message.

Divya Sai said...

Thanks a lot for testing that Ivaylo !
This will be very helpful for other bloggers...

Regards
Sai

Srinivas said...

This widget is Grt man

Shilpa shetty said...

how do i change titel color thanks

Divya Sai said...

Well the titles take the same color as other links on your blog, you can change their background color, by this method:

add any of these (or any color) in the code above instead of var sBgColor;

var sBgColor=gray; or
var sBgColor="pink";etc

Shilpa shetty said...

thanks divya your help is very much appriciated thanks again love your blog thanks god bless you..

Ms Hetal Patil said...

Hello Divya,

I have used this widget on all my blogs (total of 6 blogs) and its working fine. Thanks a lot for this widget.

But I wish to show updates of all the blogs in one widget like 5 posts from one blog and 5 posts from other blog. Can u help me on this?

I really like ur blog and its a boon for bloggers like me

May Baba Bless u

Sai Ki Deewani
Hetal Patil

Divya Sai said...

Hello Hetal,

Of course it is possible to show updates 5 or more blogs, but now the updates will not be shown in a single line, rather in 5 different lines/rows of a table...and I think it will look more meaningful too ;)

Use this Code:

<table border="1"><tr>
<td>CODE_FOR_FIRST_BLOG</td>
</tr></table>
<table border="1"><tr>
<td>CODE_FOR_SECOND_BLOG</td>
</tr></table>
<table border="1"><tr>
<td>CODE_FOR_THIRD_BLOG</td>
</tr></table>
<table border="1"><tr>
<td>CODE_FOR_FOURTH_BLOG</td>
</tr></table>
<table border="1"><tr>
<td>CODE_FOR_FIFTH_BLOG</td>
</tr></table>


Regards
Sai

Ms Hetal Patil said...

Hello Divya,

Thanks for lovely widget.

May Babaji bless u

Sai Ki Deewani
Hetal Patil

Divya Sai said...

Sai Ram Hetal....

I'm still for your entry at the contest :)


Regards
Sai

Soufiane said...
This comment has been removed by the author.
Riley Smith Fan Site said...

Preserving this too for my new blog. Good idea to display the content :)

AMIT SHARMA said...

nice bro working on my site
govalerts.blogspot.com

check all viewvers

Asif Icbal said...

hi,
i just installed the widget in

http://www.wbxpress.com

but i want to increase the font size. Is this possible?

Najaf said...

thanks a lot but how to add this widged on blogger classic templates

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

comment on this post Share Your Views

Allowed HTML tags: <b>, <i> and <a>

Join and share your views with other bloggers at BloggerStop Community

Comment Like This! and Optimize your blog...

SPAMMER OF THE MONTH: www[.]TopRankLinks[.]com

Next Post Homepage Previous Post

Regular Readers


What They Say...

Divya Sai is the ingenious webmaster of Bloggerstop.Net. Divya is extremely patient, knowledgeable and responsive... Bloggerstop.net has an abundance of articles on creating widgets, templates, hacks and ways to make your blog search engine friendly.
- Stacey @Pets With Allergies
I stumbled onto a great site. Sai, over at Bloggerstop.net has helped me tremendously and with great patience...for any and all questions regarding computer issues. And again, THANK YOU Sai.
- Cheryl @Cmash Loves To Read

More Here...

Popular Posts

Get this widget

| © 2010 BloggerStop.net | Blogger Widgets | Template by Dicas Blogger | Enhanced By Divya Sai | Privacy Policy