Ads box on scrolling of mouse,bottom ads box feature in blogger

Hellow friends i receive so many request to code that display ads box like recommendation box finally i find this i hope you will like this this will display ads box in bottom  right of your blog. enjoy this
<div id='BeH-Fixed'> 
Place Your Adsense 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 bottom 
    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>

  • Save Your Widget and You are done.

Posted by Durgesh on 10:38. Filed under , . You can follow any responses to this entry through the RSS 2.0. You can leave a response or trackback to this entry

1 comments for "Ads box on scrolling of mouse,bottom ads box feature in blogger"

  1. This blog provides a lot of content. beer).

    This blog provides a lot of content. beer).

Leave a reply