Tombol Bawah ke Atas dengan jQuery

Carilah kode di bawah ini

]]></b:skin> 
    

Setelah itu, letakkan kode di bawah ini tepat di atas ]]></b:skin>

#toTop {
display:none;
text-decoration:none;
position:fixed;
bottom:10px;
right:10px;
overflow:hidden;
width:51px;
height:51px;
border:none;
text-indent:-999px;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4jENkkwoOr4OtSZwBNX_urKEMm1Ktw9GXsYOa04Ty1UkyQkRA-s3zGUGHIPzPl9xC5jIxy86JKPy2X613UhfuFTgjGChmoP5dIZXtCRplXCHmEX6eUgjqcQkRGnv9ba5iqqQle5VDGME/s1600/ui.totop.png) no-repeat left top;
}
#toTopHover {
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4jENkkwoOr4OtSZwBNX_urKEMm1Ktw9GXsYOa04Ty1UkyQkRA-s3zGUGHIPzPl9xC5jIxy86JKPy2X613UhfuFTgjGChmoP5dIZXtCRplXCHmEX6eUgjqcQkRGnv9ba5iqqQle5VDGME/s1600/ui.totop.png) no-repeat left -51px;
width:51px;
height:51px;
display:block;
overflow:hidden;
float:left;
opacity: 0;
-moz-opacity: 0;
filter:alpha(opacity=0);
}
#toTop:active, #toTop:focus {
outline:none;
}
    

</head> 

Letakkan code di bawah ini sebelum code </head>

<script src='http://code.jquery.com/jquery-1.6.1.min.js' type='text/javascript'/>
<script src='http://suyb.googlecode.com/files/jquery.easing.1.3.js' type='text/javascript'/> <script src='http://suyb.googlecode.com/files/jquery.ui.totop.js' type='text/javascript'/> <script type='text/javascript'> $(document).ready(function() { /* var defaults = { containerID: &#39;moccaUItoTop&#39;, // fading element id containerHoverClass: &#39;moccaUIhover&#39;, // fading element hover class scrollSpeed: 1200, easingType: &#39;linear&#39; }; */ $().UItoTop({ easingType: &#39;easeOutQuart&#39; }); }); </script>

Simpan Template.
Label:

Posting Komentar

MKRdezign

Formulir Kontak

Nama

Email *

Pesan *

Diberdayakan oleh Blogger.
Javascript DisablePlease Enable Javascript To See All Widget