Sticky bar with auto scrolling recent post widget is no so impressive on blogger. I am just sharing it. I have provided a demo for you. You may like this. You have to place the widget at the header, if there is an option to your template because This widget does not get placed at sticky position itself. A sticky bar may irritate your readers. So there is a cancellation button on the widget
How To Make Stylish Sticky Bar with scrolling recent posts for blogger
- Go to Blogger Dashboard
- Click on DropDown Menu and select Template
- Backup your Template before making any changes to your blog
- Now Click on Edit HTML --> Proceed --> Expand Widget Templates
- Press Ctrl + F and search the code shown below
]]></b:skin>
- Replace the above code with the code shown below
#latesthack-stickybar{background:#000000 url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1HalUQSVmJi3MvR0rgEuNHIKiLYmPMe3SvRkY4bEfcqCGoncXvQ-gR9HweTZaciWB2cYoC7W8BbK-evq8y2JjV6AlwSrCZ62CMSNiMb3HAQh5WOzNE08lR14PxkdryOzSlkO91NwsBsM/s1600/stickybar.png') repeat-x;width:100%;margin:0 auto;text-align:center;padding:0px 0;top:0px;color:#F40045;border-bottom:2px solid #000;/*box-shadow*/-webkit-box-shadow:#666666 0px 1px 3px;-moz-box-shadow:#666666 0px 1px 3px;box-shadow:#666666 0px 1px 3px;z-index:999;display:none;height:28px;position:absolute;line-height:1.85em;vertical-align:baseline;letter-spacing:1px;}
#latesthack-stickybar a{text-decoration:none;color:#FFFFFF;font-size:13px;font-weight:bold;font-family:arial,"Helvetica",sans-serif;line-height:24px;}
#latesthack-stickybar a:hover{text-decoration:underline;}
#latesthack-stickybar p{margin:0;list-style:none;}
#latesthack-stickybar img{vertical-align:middle;margin-right:6px;}
#latesthackclose{padding:0px;float:right;cursor:hand;cursor:pointer;color:#ddd!important;}
]]></b:skin>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
<script src="http://js.howtouses.com/blogger/latesthackstickybar.js"></script>
<script src="http://js.howtouses.com/blogger/latesthackstickybar1.js"></script>
#latesthack-stickybar a{text-decoration:none;color:#FFFFFF;font-size:13px;font-weight:bold;font-family:arial,"Helvetica",sans-serif;line-height:24px;}
#latesthack-stickybar a:hover{text-decoration:underline;}
#latesthack-stickybar p{margin:0;list-style:none;}
#latesthack-stickybar img{vertical-align:middle;margin-right:6px;}
#latesthackclose{padding:0px;float:right;cursor:hand;cursor:pointer;color:#ddd!important;}
]]></b:skin>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
<script src="http://js.howtouses.com/blogger/latesthackstickybar.js"></script>
<script src="http://js.howtouses.com/blogger/latesthackstickybar1.js"></script>
- Now find the code shown below using Ctrl+F
<body>
- Now Paste the following code after/below <body>
<div id='latesthack-stickybar'>
<script>
var nMaxPosts = 10;var nWidth = 95;var nScrollDelay = 100;var sDirection = "left";var sOpenLinkLocation = "N";var sBulletChar = ">>";
</script>
<script src="http://latesthack.com/feeds/posts/default?alt=json-in-script&callback=RecentPostsScrollerv2&max-results=10 " >
</script>
<a href="#" id="latesthackclose" onclick="return false;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioFQxBVKiWAmjQk5vU9amsUy4folIUcd0_lfY_SUggVu4Uy3JjAxgXJQhASvL4cm1vuBznpYzG55fSHm6m7iFC3_FJ17ESdthTkg9LXc11XpflgvY00zorz7CPxzdOBoJS23eGCpdbmIQ/s1600/cancel.png"/>
</a>
</div>
<script>
var nMaxPosts = 10;var nWidth = 95;var nScrollDelay = 100;var sDirection = "left";var sOpenLinkLocation = "N";var sBulletChar = ">>";
</script>
<script src="http://latesthack.com/feeds/posts/default?alt=json-in-script&callback=RecentPostsScrollerv2&max-results=10 " >
</script>
<a href="#" id="latesthackclose" onclick="return false;">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioFQxBVKiWAmjQk5vU9amsUy4folIUcd0_lfY_SUggVu4Uy3JjAxgXJQhASvL4cm1vuBznpYzG55fSHm6m7iFC3_FJ17ESdthTkg9LXc11XpflgvY00zorz7CPxzdOBoJS23eGCpdbmIQ/s1600/cancel.png"/>
</a>
</div>
- Now save your template
Customization to the widget
- Replace latesthack.com with your blog url
- 10 is the No of posts you want to display
- left is the direction of moving post title you can change it to right
- 100 is the speed of moving post titles you can set it according to your need
- For N the links will open in new window . If you want that the links open in same window then replace it with Y
- >> is the bullet charector you can change it as you want
- F40045 is the color of the bullet charector
- 000000 is the background color of the sticky bar
- FFFFFF is the color of the links
19 comments
what I was looking for soon I will try
Thanks
why the code not work in my template? no background colour and i can't setting a style colour of the text.
@Murusawa Gilang SaputraYou have done something wrong with the widget
i have problem the 1 part of code ask me to close this tags
And this >>> The character sequence "]]>" must not appear in content unless used to mark the end of a CDATA section.
How to solve this?
@Live_CyberDreamsPTYou have done something wrong with the widget. Try again with more attention.
dude pls forget it, i did sh1t 1st step lol bt fix it, thks for ur post :)
Can you please tell me what it's called.. where on your right side, the Facebook, Twitter, and Google + picture.. when you click it it expands..
Can you tell me what it's called or if you have a link how to do it, that'd be great. Also wondering if that can be done on top instead of a stickey bar.
@Anonymous Go here http://www.latesthack.com/2012/04/how-to-add-3-in-1-floatingsliding.html to add that widget
Hi Sonu....
I was searching this widget for a long time..... Thank you very much !!
I want to ask you one question for my blog http://techguru2012.blogspot.com...
I want to replace ">>" with my favicon of blog. Please help me.
I am waiting for your reply.....
Sonu...
In my blog http://techguru2012.blogspot.in when i am applying this.... My menu Script does not work... Please give me solution as soon as possible.....
Thanks...
@Ritesh Oza Replace >> with <img src='YOUR FAVICON URL'/>
@Ritesh Oza Send me your template
@sonu
Didn't you received my mail ?
@Ritesh Oza Fixed and sent back to you
thanks for this hack
problem with second step step :O
it is like there is something written after body also, tag isn't closed with body
body expr:class='"loading" + data:blog.mobileClass'
ok i've done that, it is showing posts from, i don't know whose blog...
thanks, i'm done
Thanks i've done very nice post by u..
Plz Help Me How to remove this word -> "Grab This Widget" from Sticky bar..
Click to Add a New Comment