by Tech Million
Blogger Posts Random Slideshow As News Headlines or you can say Rotating random posts blogger widget. In this widget all the blog posts of your blog are displayed randomly same way as you see the slideshow of pictures or you see in some news sites which show of there latest headlines as an slideshow of one coming after another.
Some Of Its Feautres:-
1. Shows one post title at a time. 2. Links to the post. 3. Shows post excerpt also. 4. Every 5 seconds shows a new post. 5. Cycles through all the posts in the blog. 6. Starts a new cycle at the end of the list. 7. Once loaded continues cycling even when not connected to the Internet. 8. Uses official Google AJAX technology. 9. Can be used on other blogging platforms (not tested). 10. Hovering with mouse cursor over the post title halts the rotation till mouse moves off the gadget
Visit Here For Its Demo - Tech Billion
How to insall the widget:-
Go To Layout > Page Element > Add A Gadget > Html/Javascript
Add the below codes and save it
<style type="text/css"> .gfg-root { width : 100%; height : auto; position : relative; overflow : hidden; text-align : center; font-family: "Arial", sans-serif; font-size: 20px; border: 1px solid #BCCDF0; }
.gfg-title { font-size: 24px; font-weight : bold; color : #3366cc; background-color: #E5ECF9; line-height : 1.4em; overflow : hidden; white-space : nowrap; }
.gfg-title a { color : #3366cc; }
.gfg-subtitle { font-size: 20px; font-weight : bold; color : #3366cc; background-color: #E5ECF9; line-height : 1.4em; overflow : hidden; white-space : nowrap; margin-bottom : 0px; }
.gfg-subtitle a { color : #3366cc; display:none !important; }
.gfg-entry { background-color : white; width : 100%; height : 6.9em; position : relative; overflow : hidden; text-align : left; margin-top : 3px; }
/* To allow correct behavior for overlay */ .gfg-root .gfg-entry .gf-result { position : relative; background-color : white; width : auto; height : 100%; padding-left : 20px; padding-right : 5px; }
.gfg-list { position : relative; overflow : hidden; text-align : left; margin-bottom : 5px; display:none !important; }
.gfg-listentry { line-height : 1.5em; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; -o-text-overflow : ellipsis; padding-left : 15px; padding-right : 5px; margin-left : 5px; margin-right : 5px; }
.gfg-listentry-odd { background-color : #F6F6F6; }
.gfg-listentry-even { }
.gfg-listentry-highlight { background-image : url('garrow.gif'); background-repeat: no-repeat; background-position : center left; }
/* * FeedControl customizations. */
.gfg-root .gfg-entry .gf-result .gf-title { font-size: 24px; line-height : 1.2em; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; -o-text-overflow : ellipsis; margin-bottom : 2px; }
.gfg-root .gfg-entry .gf-result .gf-snippet { height : 3.8em; color: #000000; margin-top : 3px; }
/* * Easy way to get horizontal mode, applicable via js options to gadget. */
.gfg-horizontal-container { position : relative; }
.gfg-horizontal-root { height : 1.5em; _height : 100%; position : relative; white-space : nowrap; overflow : hidden; text-align : center; font-family: "Arial", sans-serif; font-size: 13px; border: 1px solid #AAAAAA; padding : 5px; margin-right : 80px; }
.gfg-horizontal-root .gfg-title { font-weight : bold; background-color: #FFFFFF; line-height : 1.5em; overflow : hidden; white-space : nowrap; float : left; padding-left : 10px; padding-right : 12px; border-right: 1px solid #AAAAAA; }
.gfg-horizontal-root .gfg-title a { color : #444444; text-decoration : none; }
.gfg-horizontal-root .gfg-entry { width : auto; height : 1.5em; position : relative; overflow : hidden; text-align : left; margin-top : 0px; margin-left : 0px; padding-left : 10px; }
/* To allow correct behavior for overlay */ .gfg-horizontal-root .gfg-entry .gf-result { position : relative; background-color : white; width : 100%; height : 100%; line-height : 1.5em; overflow : hidden; white-space : nowrap; }
.gfg-horizontal-root .gfg-list { display : none; }
/* * FeedControl customizations. */
.gfg-horizontal-root .gfg-entry .gf-result .gf-snippet, .gfg-horizontal-root .gfg-entry .gf-result .gf-author { display : none; }
.gfg-horizontal-root .gfg-entry .gf-result .gf-title { color: #0000cc; margin-right : 3px; float : left; }
.gfg-horizontal-root .gfg-entry .gf-result .gf-spacer { float : left; }
.gfg-horizontal-root .gfg-entry .gf-result .gf-spacer, .gfg-horizontal-root .gfg-entry .gf-result .gf-relativePublishedDate { display : block; color: #AAAAAA; }
.gfg-branding { white-space : nowrap; overflow : hidden; text-align : left; position : absolute; right : 0px; top : 0px; width : 80px; }
.gfg-collapse-open, .gfg-collapse-closed { background-repeat : no-repeat; background-position : center; cursor : pointer; float : right; width : 17px; height : 20px; }
.gfg-collapse-open { background-image : url('arrow_open.gif'); }
.gfg-collapse-closed { background-image : url('arrow_close.gif'); }
.gfg-collapse-href { float : left; }
.clearFloat { clear : both; } #feedGadget { margin-top : 5px; margin-left: auto; margin-right: auto; width : 440px; font-size: 10px; color: #9CADD0; } </style> <noscript><a href="http://techmillion.blogspot.com" target="_blank">Blogger Hacks</a></noscript> <script src="http://www.google.com/jsapi/?key=internal-sample" type="text/javascript"></script> <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script>
<script type="text/javascript">
function showGadget() { var feeds = [ {title:'title', url:'http://techmillion.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=999'},
];
new GFdynamicFeedControl(feeds, 'feedGadget', {numResults : 1000, stacked : true, title: "BLOG_TITLE ~ Random Posts."}); } google.load("feeds", "1"); google.setOnLoadCallback(showGadget); </script> <noscript><a href="http://techmillion.blogspot.com" target="_blank">Blogger Hacks</a></noscript> <div id="feedGadget">Loading...</div> <div id="feedGadget"><a href="http://techmillion.blogspot.com/2009/03/all-blogger-posts-slideshow-as-news.html" target="_blank">Click Here To Grab This Widget</a>~Design By-<a href="http://www.techmillion.blogspot.com" target="_blank">Tech Million</a>.</div>
Just Replace the codes written in red above with your blog url,with Heading of your widget and your width of the widget.Please dont remove Credits If you use them.
If you want only Posts title to display in this widget Then use below codes...
<style type="text/css"> .gfg-root { width : 100%; height : auto; position : relative; overflow : hidden; text-align : center; font-family: "Arial", sans-serif; font-size: 20px; border: 1px solid #BCCDF0; }
.gfg-title { font-size: 20px; font-weight : bold; color : #3366cc; background-color: #E5ECF9; line-height : 1.0em; overflow : hidden; white-space : nowrap; text-align : center; margin-bottom:40px !important; }
.gfg-title a { color : #3366cc; }
.gfg-subtitle { font-size: 20px; font-weight : bold; color : #3366cc; background-color: #E5ECF9; line-height : 1.4em; overflow : hidden; white-space : nowrap; margin-bottom : 0px; }
.gfg-subtitle a { color : #3366cc; display:none !important; }
.gfg-entry { background-color : white; width : 100%; height : 6.9em; position : relative; overflow : hidden; text-align : left; margin-top : 3px; }
/* To allow correct behavior for overlay */ .gfg-root .gfg-entry .gf-result { position : relative; background-color : white; width : auto; height : 100%; padding-left : 20px; padding-right : 5px; }
.gfg-list { position : relative; overflow : hidden; text-align : left; margin-bottom : 5px; display:none !important; }
.gfg-listentry { line-height : 1.5em; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; -o-text-overflow : ellipsis; padding-left : 15px; padding-right : 5px; margin-left : 5px; margin-right : 5px; }
.gfg-listentry-odd { background-color : #F6F6F6; }
.gfg-listentry-even { }
.gfg-listentry-highlight { background-image : url('garrow.gif'); background-repeat: no-repeat; background-position : center left; }
/* * FeedControl customizations. */
.gfg-root .gfg-entry .gf-result .gf-title { font-size: 24px; line-height : 1.2em; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; -o-text-overflow : ellipsis; margin-bottom : 2px; }
.gfg-root .gfg-entry .gf-result .gf-snippet { height : 3.8em; color: #000000; margin-top : 3px; }
/* * Easy way to get horizontal mode, applicable via js options to gadget. */
.gfg-horizontal-container { position : relative; width:600px; height:40px; }
.gfg-horizontal-root { height : 1.5em; _height : 100%; position : relative; white-space : nowrap; overflow : hidden; text-align : center; font-family: "Arial", sans-serif; font-size: 13px; border: 1px solid #AAAAAA; padding : 5px; margin-right : 80px; }
.gfg-horizontal-root .gfg-title { font-weight : bold; background-color: #FFFFFF; line-height : 1.5em; overflow : hidden; white-space : nowrap; float : left; padding-left : 10px; padding-right : 12px; border-right: 1px solid #AAAAAA; }
.gfg-horizontal-root .gfg-title a { color : #444444; text-decoration : none; }
.gfg-horizontal-root .gfg-entry { width : auto; height : 1.5em; position : relative; overflow : hidden; text-align : left; margin-top : 0px; margin-left : 0px; padding-left : 10px; }
/* To allow correct behavior for overlay */ .gfg-horizontal-root .gfg-entry .gf-result { position : relative; background-color : white; width : 100%; height : 100%; line-height : 1.5em; overflow : hidden; white-space : nowrap; }
.gfg-horizontal-root .gfg-list { display : none; }
/* * FeedControl customizations. */
.gfg-horizontal-root .gfg-entry .gf-result .gf-snippet, .gfg-horizontal-root .gfg-entry .gf-result .gf-author { display : none; }
.gfg-horizontal-root .gfg-entry .gf-result .gf-title { color: #0000cc; margin-right : 3px; float : left; }
.gfg-horizontal-root .gfg-entry .gf-result .gf-spacer { float : left; }
.gfg-horizontal-root .gfg-entry .gf-result .gf-spacer, .gfg-horizontal-root .gfg-entry .gf-result .gf-relativePublishedDate { display : block; color: #AAAAAA; }
.gfg-branding { white-space : nowrap; overflow : hidden; text-align : left; position : absolute; right : 0px; top : 0px; width : 80px; }
.gfg-collapse-open, .gfg-collapse-closed { background-repeat : no-repeat; background-position : center; cursor : pointer; float : right; width : 17px; height : 20px; }
.gfg-collapse-open { background-image : url('arrow_open.gif'); }
.gfg-collapse-closed { background-image : url('arrow_close.gif'); }
.gfg-collapse-href { float : left; }
.clearFloat { clear : both; }
#feedGadget { margin-top : 5px; margin-left: auto; margin-right: auto; width : 440px; font-size: 16px; color: #9CADD0; } #feedGadget2 { margin-top : 5px !important; float:left; width : 440px;
color: #9CADD0; } .feedGadget2 {
} #big { width : 440px; font-size: 10px; } </style> <noscript><a href="http://techmillion.blogspot.com" target="_blank">Blogger Hacks</a></noscript> <script src="http://www.google.com/jsapi/?key=internal-sample" type="text/javascript"></script> <script src="http://www.google.com/uds/solutions/dynamicfeed/gfdynamicfeedcontrol.js" type="text/javascript"></script>
<script type="text/javascript">
function showGadget() { var feeds = [ {title:'BLOG', url:'http://techmillion.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=999'},
];
new GFdynamicFeedControl(feeds, 'feedGadget', {numResults : 1000, horizontal : true, }); } google.load("feeds", "1"); google.setOnLoadCallback(showGadget); </script> <noscript><a href="http://techmillion.blogspot.com" target="_blank">Blogger Hacks</a></noscript> <div id="big"> <div id="feedGadget">Loading...</div> <div id="feedGadget2"><a href="http://techmillion.blogspot.com/2009/03/all-blogger-posts-slideshow-as-news.html" target="_blank">Click Here To Grab This Widget</a>~Design By-<a href="http://techmillion.blogspot.com/" target="_blank">Tech Million</a>.</div>
Just Replace the codes written in red above with your blog url,with Heading of your widget and your width of the widget.Please dont remove Credits If you use them.
And rest if you want to change some colors,fonts and all,you have to do it yourself as its impossible to do it for everybody to match your template.
Continue Reading...
by Tech Million
Seen a lot people finding a Random Post widget for there blog? Then thought should have an tutorial on how to install it too in the blog.Well, here it is. If you want to know what it do is, whenever a reader click on link created by this widget all the times a different post will open for the reader in the blog as by luck.
Now lets see how to install it in your blog as it is very simple.
Go to Page Elements and click on Add a Gadget on the sidebar. Select HTML/Javascript and add the javascript code given below and save the widget/gadget.
<div id="myLuckyPost"></div> <script type="text/javascript"> function showLucky(root){ var feed = root.feed; var entries = feed.entry || []; var entry = feed.entry[0]; for (var j = 0; j < entry.link.length; ++j){if (entry.link[j].rel == 'alternate'){window.location = entry.link[j].href;}}} function fetchLuck(luck){ script = document.createElement('script'); script.src = '/feeds/posts/summary?start-index='+luck+'&max-results=1&alt=json-in-script&callback=showLucky'; script.type = 'text/javascript'; document.getElementsByTagName('head')[0].appendChild(script); } function feelingLucky(root){ var feed = root.feed; var total = parseInt(feed.openSearch$totalResults.$t,10); var luckyNumber = Math.floor(Math.random()*total);luckyNumber++; a = document.createElement('a'); a.href = '#random'; a.rel = luckyNumber; a.onclick = function(){fetchLuck(this.rel);}; a.innerHTML = 'Are ya feeling lucky, punk?'; document.getElementById('myLuckyPost').appendChild(a); } </script> <script src="/feeds/posts/summary?max-results=0&alt=json-in-script&callback=feelingLucky"></script><noscript><a href="http://techmillion.blogspot.com" target="_blank">Blogger Hacks</a></noscript>
I hope you will install it very easily and please add comments!!
Continue Reading...
by Tech Million
Popular Post Widget i.e Most commented Posts for blogger as is very great widget to show of your posts,which your readers most liked and expressed there love in comments.You will love to use this widget in your blog for sure.It is very easy to install just have to add small bit of javascript codes to your blog sidebar.
How to install this widget:-
Go to Layout > Add page Element > Html/Javascript
Add the below code there :
<script type="text/javascript"> function pipeCallback(obj) { document.write('<ol style="text-transform: capitalize;">'); var i; for (i = 0; i < obj.count ; i++) { var href = "'" + obj.value.items[i].link + "'"; var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>"; document.write(item); } document.write('</ol>'); } </script> <script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=1cf38ae68efbe859c4ba1ee239cec099&url=http%3A%2F%2Ftechmillion.blogspot.com&num=10" type="text/javascript"></script> <noscript><a href="http://techmillion.blogspot.com" target="_blank">Blogger Hacks</a></noscript>
Change the code in red above with the your blog name and in green to show how many posts you want to display and please don't remove he credit's.Now save it.
Using above codes will show total no of comments in front of posts if you dont want to show them use below codes
<script type="text/javascript"> function pipeCallback(obj) { document.write('<ol style="text-transform: capitalize;">'); var i; for (i = 0; i < obj.count ; i++) { var href = "'" + obj.value.items[i].link + "'"; var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>"; document.write(item); } document.write('</ol>'); } </script> <script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=1a1c6e4e6d4f148e3650fda46910e15f&url=http%3A%2F%2Ftechmillion.blogspot.com&num=10" type="text/javascript"></script> <noscript><a href="http://techmillion.blogspot.com" target="_blank">Blogger Hacks</a></noscript>
It's one of the best widgets for blogger !!!
Continue Reading...
by Tech Million
Top commentators widget for blogger with backlinks to there blogs is very nice widget to show of the names of the readers of your blog with maximum comments with the link to there blog.As this can show any no of names you want with most comments. It's plugin was easily available in wordpress blog to install but for blogspot users was difficult to use.
Now follow an easy way to add it to your blog by just adding small bit of javascript to your blog page element.Now lets see how to install it in your blogspot.
Go To LAYOUT > Page Elements > Add a Gadget > Html/Javascript
Now add the below codes to it..
<script type="text/javascript"> function pipeCallback(obj) { document.write('<ol>'); var i; for (i = 0; i < obj.count ; i++) { var href = "'" + obj.value.items[i].link + "'"; var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>"; document.write(item); } document.write('</ol>'); } </script> <script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=918c4b96efdf63fee389f2f025085904&EntertheURL=http%3A%2F%2Ftechmillion.blogspot.com&number=10&Nametobeexcluded=Name" type="text/javascript"></script> <noscript><a href="http://techmillion.blogspot.com" target="_blank">Blogger Hacks</a></noscript>
Change the codes above with in red with name of your blog,total no of names you want to show and Name with any name you want to exclude from the list of yours.
Now save It . And view your blog. It show up the list of the top of your blog with how many comments they have done.Isn't it very easy to add up this widget.
Continue Reading...
by Tech Million
Fixed side menu for blogger blogspot or some says it as fixed slide in menu for blogger as was seen only in wordpress but now can be used in bloggers also.As you could see it in my blog i have side menu that moves together with you scroll movement up and down on my blog.I am sharing this with you because many of my readers were asking how to make it as they liked it much and wanted to add it to there blogs so if you liked side menu in my blog you can go further to install it in your blog too.
 First Download these two files to your computer. ssm.js ssmItems.js
Now open the ssmItems.js file in notepad After opening it in notepad you will see the codes like written below.
<!--
/* Configure menu styles below NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors */ YOffset=150; // no quotes!! XOffset=0; staticYOffset=30; // no quotes!! slideSpeed=20 // no quotes!! waitTime=100; // no quotes!! this sets the time the menu stays out for after the mouse goes off it. menuBGColor="black"; menuIsStatic="yes"; //this sets whether menu should stay static on the screen menuWidth=150; // Must be a multiple of 10! no quotes!! menuCols=2; hdrFontFamily="verdana"; hdrFontSize="2"; hdrFontColor="white"; hdrBGColor="#170088"; hdrAlign="left"; hdrVAlign="center"; hdrHeight="15"; linkFontFamily="Verdana"; linkFontSize="2"; linkBGColor="white"; linkOverBGColor="#FFFF99"; linkTarget="_top"; linkAlign="Left"; barBGColor="#444444"; barFontFamily="Verdana"; barFontSize="2"; barFontColor="white"; barVAlign="center"; barWidth=20; // no quotes!! barText="SIDE MENU"; // <IMG> tag supported. Put exact html for an image to show.
///////////////////////////
// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header ssmItems[0]=["MENU"] //create header ssmItems[1]=["Home", "http://techmillion.blogspot.com", ""] ssmItems[2]=["Widgets", "http://techmillion.blogspot.com/search/label/Widgets?max-results=5",""] ssmItems[3]=["Designing", "http://techmillion.blogspot.com/search/label/Designing?max-results=5", ""] ssmItems[4]=["Photoshop", "http://techmillion.blogspot.com/search/label/Photoshop?max-results=5", "_new"] ssmItems[5]=["Grab This Menu Here", "http://techmillion.blogspot.com/2009/03/fixed-side-menu-for-blogger.html", ""] ssmItems[6]=["Blogging", "http://techmillion.blogspot.com/search/label/Blogging?max-results=5", ""]
ssmItems[7]=["FAQ", "#nogo", "", 1, "no"] //create two column row ssmItems[8]=["Email", "#nogo", "",1]
ssmItems[9]=["External Links", "", ""] //create header ssmItems[10]=["KK Stocks", "http://kkstocks.blogspot.com", ""] ssmItems[11]=["Tech Billion", "http://techbillion.blogspot.com", ""] ssmItems[12]=["Cricket 4 Fans", "http://cricket4fans.blogspot.com", ""]
buildMenu();
//-->
Now just edit the the links in red in codes to place your own link which you want to display and text in blue which you want to show up the title for that link.
After editing all these links just save the file. Now upload both files ssm.js and ssmItems.js to your own server.
Now GO To LAYOUT > EDIT HTML and find the </head> tag and place the below codes before it.
<style type="text/css"> <!-- A.ssmItems:link {color:black;text-decoration:none;} A.ssmItems:hover {color:black;text-decoration:none;} A.ssmItems:active {color:black;text-decoration:none;} A.ssmItems:visited {color:black;text-decoration:none;} //--> </style>
<SCRIPT SRC="http://techbmillion.googlepages.com/ssm.js" language="JavaScript1.2"> //Dynamic-FX slide in menu v6.5 //Updated July 8th, 03' for doctype bug //For full source, and 100's more DHTML scripts, visit http://www.techmillion.blogspot.com </SCRIPT> <SCRIPT SRC="http://techbmillion.googlepages.com/ssmItems.js" language="JavaScript1.2"></SCRIPT>
And don't forget to change the links in red above with the links of yours where ssm.js and ssmItems.js file is uploaded to your own server.
And now SAVE It.
Yup you have just Done now. View your blog. If you have any problem please write below in comments i will help you out.I think you will enjoy this widget for sure.
Continue Reading...
|