Responsive Sticky Sidebar Ads Widget Script For Blogger | Updated 100% Working Floating Sidebar ads

Now click on template go to Edit Html and in the Html page click anywhere in the Html code and press ctrl+f or search for jquery.min.js. If you find it then ignore the below code else if you don’t get it just copy the below line and paste it below  <head>. If you find another version of this jquery that’s OK it will do fine.





code :



<script src=’http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2′ type=’text/javascript’/>







Now search for </body>. Now Copy below code and paste it just above </body> tag. And here replace the #HTML3 with your Widget HTML no. [ Check below Step for knowing your Widget Id number ]



Code Here



<script type='text/javascript'> $(function() { if ( $(window).width() &gt; 990) { var ks_widget_top = $(&#39;#HTML3&#39;).offset().top; var ks_sticky_widgets = function(){ var ks_current_top = $(window).scrollTop(); if (ks_current_top &gt; ks_widget_top) { $(&#39;#HTML3&#39;).css({ &#39;position&#39;: &#39;fixed&#39;, &#39;top&#39;:0, &#39;z-index&#39;:999999 }); } else { $(&#39;#HTML3&#39;).css({ &#39;position&#39;: &#39;relative&#39; }); } }; ks_sticky_widgets(); $(window).scroll(function() { ks_sticky_widgets(); }); }else{ } });</script>



No comments:

Post a Comment