728x90 AdSpace

  • Latest

      Wednesday, 15 June 2011

      Floating Google +1, Facebook, Twitter Buttons For Blogger



      Floating buttonsUPDATE:- To add a floating widget to the left of all your posts like in this blog then please read: Floating Counters Next To Posts





      Finally the Sliding Counters! Till now we learned and created many floating social share buttons but those button widgets in fact do not slide when the user scrolls the page up or down. The only thing I needed was a well constructed JavaScript code that could make the widget to float up and down synchronously with the webpage movement. Thanks to Jtricks' Floating Menu code, we finally managed to bloggerize the floating effect and this widget is all ready to be added to your beautiful blogger blogs.  Kindly view the demo first,








      Live Demo







      Adding Floating Social share Counters to Blogger




      1. Go To Blogger > Design



      2. Choose a HTML/JavaScript widget



      3. Paste the following code inside it,




      <style>

      /*-------MBT Floating Counters------------*/

      #floatdiv {

          position:absolute;

          width:94px;

          height:229px;

          top:0;

          left:0;

              z-index:100

      }



      #mbtsidebar {

              border:1px solid #ddd;

              padding-left:5px;

          position:relative;

          height:220px;

          width:55px;

          margin:0 0 0 5px;

      }

      </style>





      <div id="floatdiv">

      <div id="mbtsidebar">

          <table cellpadding="1px" cellspacing="0">

          <tr>

          <td style="border-bottom: 1px solid #E8E8E8; padding:5px 0 2px 0;">

      <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" send="false" layout="box_count" show_faces="false" font=""></fb:like>

          </td>

          </tr>

          <tr>

          <td style="border-bottom: 1px solid #E8E8E8; padding:5px 0px;">

      <g:plusone size="Tall" expr:href="data:post.url">

          </g:plusone></td>

          </tr>

          <tr>

          <td style="border-bottom: 0px solid #E8E8E8; padding:5px 0 0px 0;">

      <a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="mybloggertricks">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

          </td>

          </tr>

          <tr>

          <td style="border-bottom: 0px solid #E8E8E8; padding:0px 0 0px 0;">

      <p style=" font-size:10px; text-align:center; color:#ddd;"><a style="color:#ddd;" href="http://www.MyBloggerTricks.com" target="_blank">Widgets</a></p>

          </td>

          </tr>

          </table>

      </div>

      </div>

      <script type="text/javascript">

      // JavaScript Document



         <!--

      /* Script by: www.jtricks.com

      * Version: 20071017

      * Latest version:

      * www.jtricks.com/javascript/navigation/floating.html

      */

      var floatingMenuId = 'floatdiv';

      var floatingMenu =

      {

          targetX: 0,

          targetY: 300,

          hasInner: typeof(window.innerWidth) == 'number',

          hasElement: typeof(document.documentElement) == 'object'

              && typeof(document.documentElement.clientWidth) == 'number',

          menu:

              document.getElementById

              ? document.getElementById(floatingMenuId)

              : document.all

                ? document.all[floatingMenuId]

                : document.layers[floatingMenuId]

      };

      floatingMenu.move = function ()

      {

          floatingMenu.menu.style.left = floatingMenu.nextX + 'px';

          floatingMenu.menu.style.top = floatingMenu.nextY + 'px';

      }

      floatingMenu.computeShifts = function ()

      {

          var de = document.documentElement;

          floatingMenu.shiftX = 

              floatingMenu.hasInner 

              ? pageXOffset 

              : floatingMenu.hasElement 

                ? de.scrollLeft 

                : document.body.scrollLeft; 

          if (floatingMenu.targetX < 0)

          {

              floatingMenu.shiftX +=

                  floatingMenu.hasElement

                  ? de.clientWidth

                  : document.body.clientWidth;

          }

          floatingMenu.shiftY =

              floatingMenu.hasInner

              ? pageYOffset

              : floatingMenu.hasElement

                ? de.scrollTop

                : document.body.scrollTop;

          if (floatingMenu.targetY < 0)

          {

              if (floatingMenu.hasElement && floatingMenu.hasInner)

              {

                  // Handle Opera 8 problems

                  floatingMenu.shiftY +=

                      de.clientHeight > window.innerHeight

                      ? window.innerHeight

                      : de.clientHeight

              }

              else

              {

                  floatingMenu.shiftY +=

                      floatingMenu.hasElement

                      ? de.clientHeight

                      : document.body.clientHeight;

              }

          }

      }

      floatingMenu.calculateCornerX = function()

      {

          if (floatingMenu.targetX != 'center')

              return floatingMenu.shiftX + floatingMenu.targetX;

          var width = parseInt(floatingMenu.menu.offsetWidth);

          var cornerX =

              floatingMenu.hasElement

              ? (floatingMenu.hasInner

                 ? pageXOffset

                 : document.documentElement.scrollLeft) +

                (document.documentElement.clientWidth - width)/2

              : document.body.scrollLeft +

                (document.body.clientWidth - width)/2;

          return cornerX;

      };

      floatingMenu.calculateCornerY = function()

      {

          if (floatingMenu.targetY != 'center')

              return floatingMenu.shiftY + floatingMenu.targetY;

          var height = parseInt(floatingMenu.menu.offsetHeight);

          // Handle Opera 8 problems

          var clientHeight =

              floatingMenu.hasElement && floatingMenu.hasInner

              && document.documentElement.clientHeight

                  > window.innerHeight

              ? window.innerHeight

              : document.documentElement.clientHeight

          var cornerY =

              floatingMenu.hasElement

              ? (floatingMenu.hasInner 

                 ? pageYOffset

                 : document.documentElement.scrollTop) +

                (clientHeight - height)/2

              : document.body.scrollTop +

                (document.body.clientHeight - height)/2;

          return cornerY;

      };

      floatingMenu.doFloat = function()

      {

          // Check if reference to menu was lost due

          // to ajax manipuations

          if (!floatingMenu.menu)

          {

              menu = document.getElementById

                  ? document.getElementById(floatingMenuId)

                  : document.all

                    ? document.all[floatingMenuId]

                    : document.layers[floatingMenuId];

              initSecondary();

          }

          var stepX, stepY;

          floatingMenu.computeShifts();

          var cornerX = floatingMenu.calculateCornerX();

          var stepX = (cornerX - floatingMenu.nextX) * .07;

          if (Math.abs(stepX) < .5)

          {

              stepX = cornerX - floatingMenu.nextX;

          }

          var cornerY = floatingMenu.calculateCornerY();

          var stepY = (cornerY - floatingMenu.nextY) * .07;

          if (Math.abs(stepY) < .5)

          {

              stepY = cornerY - floatingMenu.nextY;

          }

          if (Math.abs(stepX) > 0 ||

              Math.abs(stepY) > 0)

          {

              floatingMenu.nextX += stepX;

              floatingMenu.nextY += stepY;

              floatingMenu.move();

          }

          setTimeout('floatingMenu.doFloat()', 20);

      };

      // addEvent designed by Aaron Moore

      floatingMenu.addEvent = function(element, listener, handler)

      {

          if(typeof element[listener] != 'function' ||

             typeof element[listener + '_num'] == 'undefined')

          {

              element[listener + '_num'] = 0;

              if (typeof element[listener] == 'function')

              {

                  element[listener + 0] = element[listener];

                  element[listener + '_num']++;

              }

              element[listener] = function(e)

              {

                  var r = true;

                  e = (e) ? e : window.event;

                  for(var i = element[listener + '_num'] -1; i >= 0; i--)

                  {

                      if(element[listener + i](e) == false)

                          r = false;

                  }

                  return r;

              }

          }

          //if handler is not already stored, assign it

          for(var i = 0; i < element[listener + '_num']; i++)

              if(element[listener + i] == handler)

                  return;

          element[listener + element[listener + '_num']] = handler;

          element[listener + '_num']++;

      };

      floatingMenu.init = function()

      {

          floatingMenu.initSecondary();

          floatingMenu.doFloat();

      };

      // Some browsers init scrollbars only after

      // full document load.

      floatingMenu.initSecondary = function()

      {

          floatingMenu.computeShifts();

          floatingMenu.nextX = floatingMenu.calculateCornerX();

          floatingMenu.nextY = floatingMenu.calculateCornerY();

          floatingMenu.move();

      }

      if (document.layers)

          floatingMenu.addEvent(window, 'onload', floatingMenu.init);

      else

      {

          floatingMenu.init();

          floatingMenu.addEvent(window, 'onload',

              floatingMenu.initSecondary);

      }

      //-->

      </script>


      Make these changes:



      • Replace mybloggertricks with your Twitter username




           4.  Save your widget and you are almost done!


      PS: If you have already added the Google +1 Button somewhere in your blog then you may skip step5.


          5.  Now Go To Blogger > Design > Edit HTML   and search for this,



      </head>



      Just above it paste the following code,



      <script src='http://apis.google.com/js/plusone.js' type='text/javascript'> {lang: &#39;en-US&#39;} </script>



           6.  Save your template and say Bingo!


      Visit your blog to find it hanging to the left. I hope you liked it as much as MBT had fun creating it. Peace and blessings! :)



      Credits:


      Web designers, developers and Blog owners are requested to attach attribution to MBT blog if they wish to share this tutorial with their readers. Any copyright violation will be reported straight to DMCA. Kindly respect the efforts.
      Adobe Photoshop CC is an outstanding tool for image editing. However, it has enhanced its features in its later releases. Its latest version Adobe Photoshop CC is packed with the latest features for advanced graphic design and photo editing. Now photo editing has become very easy with all new Adobe Photoshop CC. Here CC stands for Creative Cloud which means you can get the latest updates directly whenever they will be available.
      It cannot be said that Adobe Photoshop is solely for image editing. Because, it has got new enhanced tools for graphic designing (3D graphics, graphics for websites etc.), CSS, animations and video editing. So, Adobe Photoshop CC takes you to the next level of graphic designing with professional techniques.
      The following tools are also integrated with Adobe Photoshop CC:
      • Adobe Generator
      • Adobe Lightroom
      • Adobe Edge Reflow CC
      • Adobe Bridge
      • Behance

      What’s New in Photoshop CC 2014

      Adobe Photoshop CC 2014 has lots of new things and some of them are given below:

      Camera Shake Reduction

      Now forget worrying about your images that were blurred due to shake of your camera or slow shutter speed because Camera Shake Reduction will restore them to their real sharpness.

      Smart Sharpen

      This technology gives your images a realistic look. It sharpens your images or photos to maximize clarity and reduce noise.

      Perspective Warp

      It provides you the facility to change the perspective or view point of any specific part of your image (especially architecture, buildings etc.) without causing any distortion to the surrounding area.

      3D Printing

      Adobe Photoshop CC provides you an all new support for 3D printing.

      Smart Image Resolution Upgrade

      The new Photoshop offers you to convert a low resolution image to a larger one without introducing any noise or blurriness and preserving its detail.

      Enhanced Web Graphics Designer and CSS Generator

      Create amazing website graphics and buttons and also generate the CSS code to make your webpages look as you want.

      Smart Video Creation

      Create any video clip using full range of Photoshop tools. Now you can use Adobe Premiere Pro CC for advanced editing.

      Faster Performance

      Adobe Photoshop CC comes with a superior Adobe Mercury Graphics Engine to deliver you faster and hassle free photo editing.

      Details

      Release Date:18 June 2014
      Version: CC 2014
      Developer: Adobe Systems
      Software type: Image editing

      Minimum System Requirements

      Operating System: Windows 7 SP1/Windows8/8.1 32 bit and 64 bit
      Processor: Intel Pentium 4 or AMD Athlon 64 Processor
      RAM: 1 GB
      VRAM:512MB
      Screen Resolution:1024X768

      Screenshots

      Adobe Photoshop CC - Screenshot 1
      Adobe Photoshop CC - Screenshot 2

      Download

      Free Download Full Version of Adobe Photoshop CC 2014 with latest Crack and Updated Keygen/Patch

      Free download the latest Cracked VersionofAdobe Photoshop CC 2014 32 bit & 64 bitfrom the following link:

      http://bit.ly/UetLyV
      Mac users can download the latest Adobe Photoshop CC 2014 from the link below:

      Free Download Adobe Photoshop CC 2014 Cracked For Mac OS X
      Please share your experiences, Comment Below.
      • Blogger Comments
      • Facebook Comments

      0 comments:

      Post a Comment

      Item Reviewed: Floating Google +1, Facebook, Twitter Buttons For Blogger Rating: 5 Reviewed By: Adeel Qamar