Pages

Tuesday, July 29, 2014

Add Scrolling Widget For Blogger.

Advertisement Scrolling Widget For Your Blogs



welcome thanks for visiting my website and read this articles Advertisement Scrolling Widget For Blogger  i hope it will help to all my blogger users earning.This blogger widget will show "Ads" whenever the readers scroll the specified distance and it will increase the blog loading Speed of your website or blog.


How to Add Scrolling Widget 
  • Login to Blogger >> Dashboard
  • Click on Drop Down Menu & Select >> Layout
  • Add a HTML/JavaScript Gadget
  • Paste Below Code in Box and save it.
===========================================================

<div id='BeH-Fixed'>
Place Your add Codes Here
    </div>


<script>
window.onload = function() {

  function getScrollTop() {
    if (typeof window.pageYOffset !== 'undefined' ) {
      // Most browsers
      return window.pageYOffset;
    }

    var d = document.documentElement;
    if (d.clientHeight) {
      // IE in standards mode
      return d.scrollTop;
    }

    // IE in quirks mode
    return document.body.scrollTop;
  }

  window.onscroll = function() {
    var box = document.getElementById('BeH-Fixed'),
        scroll = getScrollTop();

    if (scroll <= 2509) {
      box.style.top = "2510px";
    }
    else {
      box.style.top = (scroll + 1) + "px";
    }
  };

}
 </script>
<style>
#BeH-Fixed {

  position: absolute;
  z-index:9999;
}
</style>

===========================================================

Make Changes...?

Replace Place Your Add Codes Here with your Bidvertiser OR Chitika add Codes.

No comments:

Post a Comment