Tuesday, March 8, 2011

Smooth Scroll to Top At Blog

place this code below before: ]]></b:skin>

#kaluhur{
right:20px;
bottom:20px;
position: fixed;
}

then paste this code below before : </head>

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
$(document).ready(function(){
 $('a[href*=#luhur]').click(function() {
  if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
  && location.hostname == this.hostname) {
   var $target = $(this.hash);
   $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
   if ($target.length) {
    var targetOffset = $target.offset().top;
    $('html,body').animate({scrollTop: targetOffset}, 1000);
    return false;
   }
  }
 });
});
//]]>
</script>






Then replace:  <body> into code below

<body id="luhur">
 
 
Then copy paste this code below before </body>
 
<div id='kaluhur'>
<a href='#luhur' title='Luhur'><img src='https://7707928374904518111-a-1802744773732722657-s-sites.googlegroups.com/site/kintunan/icon_top.gif'/></a>
</div>
 
Then Save Template, Preview It. Finish

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Kang Iwan K-sev | Thank's for your visit To My Site - Ridwan Mulyana | Cibeureum