blogger widgets
English French German Spain Italian Dutch Russian Portuguese Japanese Korean Arabic Chinese Simplified
google

A Beautiful jQuery Drop-Down Menu For Blogger Blogspot

Steps Adding the jQuery Drop-Down menu

Step 1. If you are using the old Blogger interface:
  • Go to Dashboard - Design - Edit HTML - Expand Widget Template (make a backup)

If you are using the new Blogger interface:
  • Go to Dashboard - Template - Edit HTML - Proceed - Expand Widget Template (make a backup)

Step 2. Search for the following code:

]]></b:skin>

And before/above it, add the following CSS code:

#jsddm {
margin: 0;
padding: 15px;
z-index:1000000000;
position:relative;
}
#jsddm li {
float: left;
list-style: none;
font: 12px Tahoma, Arial;
}
#jsddm li a {
display: block;
white-space: nowrap;
margin:1px 3px;
border: 1px solid #AAAAAA;
background: #cccccc;
background: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#cccccc));
background: -moz-linear-gradient(top, #ebebeb, #cccccc);
padding: 5px 10px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
text-shadow: #ffffff 0 1px 0;
color: #363636;
font-size: 15px;
font-family: Helvetica, Arial, Sans-Serif;
text-decoration: none;
vertical-align: middle;
}
#jsddm li a:hover {
background: #C8C8C8;
}
#jsddm li ul {
margin: 0;
padding: 0;
position: absolute;
visibility: hidden;
border-top: 1px solid white;
}
#jsddm li ul li {
float: none;
display: inline;
}
#jsddm li ul li a {
width: auto;
background: #CAE8FA;
}
#jsddm li ul li a:hover {
background: #A3CEE5;
}

Step 3. Now find this piece of code:

</head>

And add this code immediately before/ABOVE it:

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js' type='text/javascript'/>
  <script type='text/javascript'>
  //<![CDATA[
var timeout    = 500;
  var closetimer = 0;
  var ddmenuitem = 0;
function jsddm_open()
  {  jsddm_canceltimer();
  jsddm_close();
  ddmenuitem = $(this).find('ul').css('visibility', 'visible');}
function jsddm_close()
  {  if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}
function jsddm_timer()
  {  closetimer = window.setTimeout(jsddm_close, timeout);}
function jsddm_canceltimer()
  {  if(closetimer)
  {  window.clearTimeout(closetimer);
  closetimer = null;}}
$(document).ready(function()
  {  $('#jsddm > li').bind('mouseover', jsddm_open)
  $('#jsddm > li').bind('mouseout',  jsddm_timer)});
document.onclick = jsddm_close;
  //]]>
  </script>

Step 4. Click on Save Template button.

Step 5. Now go to Design (or Add a layout) > Page Elements > click on "Add a gadget" link and choose HTML/JavaScript, then paste the following code in the empty box:

<ul id="jsddm">
  <li><a href="#">Home</a>
  <li><a href="#">Link 1</a>
  <ul>
  <li><a href="#">Drop 1-1</a></li>
  <li><a href="#">Drop 1-2</a></li>
  <li><a href="#">Drop 1-3</a></li>
  </ul>
  </li>
 <li><a href="#">Link 2</a>
  <ul>
  <li><a href="#">Drop 2-1</a></li>
  <li><a href="#">Drop 2-2</a></li>
  </ul>
  </li>
 <li><a href="#">Link 3</a>
  <ul>
  <li><a href="#">Drop 3-1</a></li>
  <li><a href="#">Drop 3-2</a></li>
  <li><a href="#">Drop 3-3</a></li>
  <li><a href="#">Drop 3-4</a></li>
  </ul>
  </li>
 <li><a href="#">Link 4</a></li>
  <li><a href="#">Link 5</a></li>
  <li><a href="#">Link 6</a></li>
  </li></ul>

Note :
You must change links titles and replace the # symbol with the URL address of each of your links
Then click on Save

Important:

- if your menu is on the sidebar, or footer, just drag it to your page header and click and click Save again.
- if drop down links are not showing, do the following:

Go back to Design > Edit HTML  and search (CTRL + F) for this code:

<b:section class='header' id='header' maxwidgets='1' showaddelement='no'>

You should change 1 with 3 and no with yes like this:

<b:section class='header' id='header' maxwidgets='3' showaddelement='yes'>

Save the Template.
Now go to Page Elements and drag your menu immediately below your header.

Here you can see the DEMO.
0

How to Replace Older Posts and Newer Posts Links with Blogger Post Titles

If you have ever visited a WordPress blog, you might have noticed that the blog pager on these blogs displays the actual post titles, not just links to the older and newer posts that you find at the bottom of your Blogger blog. This links are parts of the so-called blog pager which helps readers navigate between pages and posts.

If you want to increase your page impressions, one of the ways is to replace the older/newer posts links with the Blogger post titles.

How To Add Post Titles Instead of Older Post/Newer Post Links On Your Blog

1. Log in to Blogger, go to Design > Page Elements
2. Click on "Add A Gadget" link
3. Choose "HTML/JavaScript" and paste this code into the empty field of the HTML/JavaScript gadget:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
var olderLink = $("a.blog-pager-older-link").attr("href");
$("a.blog-pager-older-link").load(olderLink+" h3:first", function() {
var olderLinkTitle = $("a.blog-pager-older-link:first").text();
$("a.blog-pager-older-link").text(olderLinkTitle);
});
var newerLink = $("a.blog-pager-newer-link").attr("href");
$("a.blog-pager-newer-link").load(newerLink+" h3:first", function() {
var newerLinkTitle = $("a.blog-pager-newer-link:first").text();
$("a.blog-pager-newer-link").text(newerLinkTitle);
});
</script>

Note: The line in red is for acquiring jQuery framework. If you have acquired jQuery in your template, then you can just delete this part.

4. Now Save the Widget and drag it under the Blog Posts section.


View your blog and see if the older/newer posts links have been replaced with your post titles.
For any questions, leave a comment below. Cheers!
0

Replace Older, Newer And Home Blogger links with an image or text

Newer Post, Home and Older Post are links that appear on the bottom of the posts. When a visitor click on one of these links, they will take him to the page with the list of your previous posts.
The number of the posts on these pages will be the same as the number of the posts on your main page.


What we can do:

A. Change the text of Newer, Older, Home links
B. Place a picture beside them (a small icon, arrow, or whatever...)
C. Add an image instead of the links

So let's start customizing them...

1. Log in to your Blogger Dashboard, go to Design > Edit HTML > make a backup of your template
2. Check the "Expand Widget Templates" box
3. Find (CTRL + F) the following code:

    <b:if cond='data:newerPageUrl'>
      <span id='blog-pager-newer-link'>
      <a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' expr:title='data:newerPageTitle'><data:newerPageTitle/></a>
      </span>
    </b:if>

    <b:if cond='data:olderPageUrl'>
      <span id='blog-pager-older-link'>
      <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>
      </span>
    </b:if>

    <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>

Find in this code the following fragments which corresponds to each page links
  1. <data:newerPageTitle/> represents Newer Posts link
  2. <data:olderPageTitle/> represents Older Posts link
  3. <data:homeMsg/> represents Home link
Now change these fragments of codes as it follows:

A. Change the text of the links

You need to REPLACE following parts in original code with ANY TEXT you like:
  • replace <data:newerPageTitle/> with, for example NEXT POST 
  • replace <data:olderPageTitle/> with, for example PREVIOUS POST
  • replace <data:homeMsg/> (only the first one) with, for example HOMEPAGE

    B. Place a picture beside Newer Posts, Older Posts and Home links

    Add the below code just at the beginning of each of the colored fragments of codes from step 3.

    <img src="URL Address"/>

    So it should look like this

    <img src="URL Address"/><data:newerPageTitle/>

    Note: Replace URL Address text with the url address of the image you want to appear

    C. Replace Older Posts, Newer Posts and Home links with an image/picture

    You can place any kind of picture you want All you have to do is use this code for the pic:

    <img src="URL ADDRESS"/>


    ...just replace URL ADDRESS, with the URL of your hosted picture
    ...and in code, REPLACE the original link code for text with picture code
    • replace <data:newerPageTitle/> with the pic for newer (next) posts
    • replace <data:olderPageTitle/> with the pic for older (previous) posts
    • replace <data:homeMsg/> (only the first one) with the pic for homepage

    4. That's it! Preview and Save the Template.
    0

    Add Css/Jquery fixed horizontal menu to blogger blog

    This navigation bar gets semi-transparent when you scroll down the page and only subtly showing itself by fading out and becoming almost transparent. When the user hovers over it, the menu then becomes opaque again.

    Inside of the navigation we will have some links, a search input and a top and bottom button that let the user navigate to the top or the bottom of the page.


    Let's start adding the code:

    1. Go To Blogger >> Design >> Edit HTML and check "expand widget templated" box;

    2. Search (using CTRL + F) for this tag:

    </head> 

    3. Copy and paste just above/before </head> tag, the following code:

    <link rel="stylesheet" href="http://helplogger.googlecode.com/svn/trunk/html/[helplogger.blogspot.com]Fixed Fade Out Menu.css"/>
    <script type="text/javascript" src="http://helplogger.googlecode.com/svn/trunk/html/[helplogger.blogspot.com]jquery-1.3.2.js"></script>
     <script type="text/javascript">
                $(function() {
                    $(window).scroll(function(){
                        var scrollTop = $(window).scrollTop();
                        if(scrollTop != 0)
                            $('#nav').stop().animate({'opacity':'0.2'},400);
                        else   
                            $('#nav').stop().animate({'opacity':'1'},400);
                    });
                   
                    $('#nav').hover(
                        function (e) {
                            var scrollTop = $(window).scrollTop();
                            if(scrollTop != 0){
                                $('#nav').stop().animate({'opacity':'1'},400);
                            }
                        },
                        function (e) {
                            var scrollTop = $(window).scrollTop();
                            if(scrollTop != 0){
                                $('#nav').stop().animate({'opacity':'0.2'},400);
                            }
                        }
                    );
                });
            </script>

    4) Now search for <body> tag. If you can't find it, search for this one:

    <body expr:class='&quot;loading&quot; + data:blog.mobileClass'>

    5) Just below/after this code, paste the following code:

    <div id="nav">
    <ul>
    <li><a class="top" href="#top"><span></span></a></li>
    <li><a class="bottom" href="#bottom"><span></span></a></li>
    <li><a href='URL address'><span>Link 1</span></a></li>
    <li><a href='URL address'><span>Link 2</span></a></li>
    <li><a href='URL address'><span>Link 3</span></a></li>
    <li><a href='URL address'><span>Link 4</span></a></li>
    <li><a href='URL address'><span>Link 5</span></a></li>
    <li><a href='URL address'><span>Link 6</span></a></li><li class="search">

    <input type="text"/><input class="searchbutton" type="submit" value=""/>
    </li>
    </ul>
    </div>
    <div id="top"></div>
    <div class="desc"></div>
    <div id="bottom"></div>
    <div class="scroll"></div>

    Replace URL address with the url of your pages and Link 1, 2, 3, 4, 5, 6 with the name of the link you want to appear in the menu.

    Now Save Template and you're done ;)

    Credit goes to the original author. This widget was inspired by David Walsh’s top navigation bar.

    Add floating navigation bar with older & newer posts, reload, home and back to top button

    This is a very cool widget that allows visitors to navigate through your blog easily.
    It has 5 options:

    1. Go to Older Posts
    2. Go to Newer Posts
    3. Reload Page
    4. Home
    5. Back to top

    How to add this widget

    Step 1. Go to Blogger Dashboard >> Design >> Edit html and find the tag below
    ]]></b:skin>
    Step 2. Paste before/above the following code:
    #float-menu{position:fixed;top:20%;left:0;border-top:1px solid #CCC;border-right:1px solid #CCC;border-bottom:1px solid #CCC;background:#EEE}
    #float-menu ul{padding:0}
    #float-menu li{margin:5px;list-style-type:none}
    #float-menu li,#float-menu li a{width:24px;height:24px}
    #float-menu li a{float:left}
    #float-menu #menu-right,#float-menu #menu-left,#float-menu li a{background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdVUN_g-FSP_HNe0hsi5ldPBI3AKMES3V2pOHVjvepunBeMq7jBeae6Z5Ir1UNd9mJDiN7g6JFWzqYYdcu98dn_KRx1Xj0pgsGKtg80LOgDNasSOW6-4yEQF2KOse6w0Y-2WSEihiwBgz1/s1600/float+menu.png)}
    #float-menu #menu-right a{background-position:0 -120px}
    #float-menu #menu-right a:hover,#float-menu #menu-right{background-position:-24px -120px}
    #float-menu #menu-left a{background-position:0 -24px}
    #float-menu #menu-left a:hover,#float-menu #menu-left{background-position:-24px -24px}
    #float-menu #menu-random a{background-position:0 -48px}
    #float-menu #menu-random a:hover{background-position:-24px -48px}
    #float-menu #menu-home a{background-position:0 -72px}
    #float-menu #menu-home a:hover{background-position:-24px -72px}
    #float-menu #menu-top a{background-position:0 -96px}
    #float-menu #menu-top a:hover{background-position:-24px -96px}

    Step 3. Now find this tag:

    <b:includable id='main' var='top'>

    Step 4. Just after it, add the code below:

    <div id='float-menu'>
    <ul>
    <li id='menu-right'>
    <b:if cond='data:olderPageUrl'>
    <b:if cond='data:olderPageUrl != data:blog.url'>
    <a expr:href='data:olderPageUrl' rel='prev' expr:title='data:olderPageTitle'></a>
    </b:if>
    </b:if>
    </li>
    <li id='menu-left'>
    <b:if cond='data:newerPageUrl'>
    <b:if cond='data:newerPageUrl != data:blog.url'>
    <a expr:href='data:newerPageUrl' rel='next' expr:title='data:newerPageTitle'></a>
    </b:if>
    </b:if>
    </li>
    <li id='menu-random'>
    <script type='text/javaScript'>//<![CDATA[
    var rdp_current=0;total_posts=0;function totalposts(json){total_posts=json.feed.openSearch$totalResults.$t}document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&max-results=0&callback=totalposts\"><\/script>');function getvalue(){rdp_current=1+Math.round(Math.random()*(total_posts-1))};
    //]]></script>
    <script type='text/javaScript'>//<![CDATA[
    function rdp(json){var dw='';entry=json.feed.entry[0];for(var i=0;i<entry.link.length;i++){if(entry.link[i].rel=='alternate'){rdp_posturl=entry.link[i].href}};dw+='<a href="'+rdp_posturl+'" title="Reload" rel="nofollow"></a>';document.getElementById('menu-random').innerHTML=dw;};getvalue();document.write('<script type=\"text/javascript\" src=\"/feeds/posts/default?alt=json-in-script&start-index='+rdp_current+'&max-results=1&callback=rdp\"><\/script>');
    //]]></script>
    </li>
    <li id='menu-home'>
    <a expr:href='data:blog.homepageUrl' title='Home'/>
    </li>
    <li id='menu-top'>
    <a href='#' title='Back to top' rel="nofollow"/>
    </li>
    </ul>
    </div>
    I hope you like it.
    Please share & subscribe for more tutorials.
    0

    How To Remove Blogger Navbar

    WHAT IS BLOGGER NAVBAR?
    Blogger has got a default Navigation Bar. This navigation bar is hidden in most of the third party templates.
    When you are blogging, Navbar can be very useful thing, but sometimes, it can get in way...

    The advantages of Navbar are:
    - when you click on the B icon, it will take you to blogger.com
    - a quick link to your Dashboard and "Sign in /Sign out" dialog
    - you can easily search for other blogs
    - you can "Flag Blog" (if you consider content of a blog objectionable)
    - NextBlog - takes you to a random, recently-updated Blogger blog

    The only disadvantage is visual. If you have customized design, Navbar usually doesn't fit in.

    So how we get rid of it? It is very simple...

    Removing The Blogger Navbar:

    1. Login to your Blogger account and navigate to Layout > Edit HTML

    2. In the template code find the following tag:
    <body> 
    If you can't find it, search for the code below:
    <body expr:class='&quot;loading&quot; + data:blog.mobileClass'>
    3. Just above that paste the following Code:
    <!--<body>-->
    4. Now Save the Template and you will see a confirmation about deleting the Navbar Widget. Confirm the deletion by clicking on the Delete Widgets button.


    How to get back the Blogger Navigation Bar?

    If you followed this method to remove the nav bar and you want it back, then delete the extra code that you added, i.e remove the code from step 3, that you added into your template and press Save the Template.

    You're done.
    0

         Blogger Tricks

     
    Website : Privacy Policy | Site map | Support
    Copyright © 2011. Gallery- Templates - All Rights Reserved
    Registration links to friends
    Contact advertising