yeah , lagi ada waktu nihh , update truss .. nih kali ni gw kasih tau cara membuat scroll persentase , demo nya ada nih di blog gw , uda gw pasang , dan contoh gambar nya gini nih..
nah tuh di atas demo SS nyaa..
cara nya nihh..
Letak in di atas code ]]></b:skin>
#scroll {
display: none;
position: fixed;
top: 0;
right: 20px;
z-index: 500;
padding: 3px 8px;
background-color: #2187e7;
color: #fff;
border-radius: 3px;
}
#scroll:after {
content: " ";
position: absolute;
top: 50%;
right: -8px;
height: 0;
width: 0;
margin-top: -4px;
border: 4px solid transparent;
border-left-color: #2187e7;
}
Letak kin di bawah code </head>
<div id='scroll'></div>
Simpan JS nya di atas code </body>
<script type='text/javascript'>
//<![CDATA[
var scrollTimer = null;
$(window).scroll(function() {
var viewportHeight = $(this).height(),
scrollbarHeight = viewportHeight / $(document).height() * viewportHeight,
progress = $(this).scrollTop() / ($(document).height() - viewportHeight),
distance = progress * (viewportHeight - scrollbarHeight) + scrollbarHeight / 2 - $('#scroll').height() / 2;
$('#scroll')
.css('top', distance)
.text(' (' + Math.round(progress * 100) + '%)')
.fadeIn(100);
if (scrollTimer !== null) {
clearTimeout(scrollTimer);
}
scrollTimer = setTimeout(function() {
$('#scroll').fadeOut();
}, 1500);
});
//]]>
</script>
kemudian save tempe
Info dikit nihh.
kalo mau ganti warna nya , cari code yang di tarok di code b skin tadi , nah liat background nya awal code warnanya tanda pagar (#) ganti hex color nya , suka suka mu...
ok sekian
Owner Rhizovuns , for more info update , Subscribe or follow me .