Bar halaman untuk kontrol Sroll blog
Unknown | 20:03 |
Blogger Hack
,
Java Script
Demo di bagian gambar atas. Menambahkan kode di bawah ini ke dalam sebelum tag </ body> dalam template Anda.
<style>Selamat : Anda sudah berhasil memasang Bar halaman untuk kontrol Sroll blog. silahkan cek apakah script sukses apa tidak.
#dp-scroll{position:fixed;z-index:9999;bottom:0;right:0}
#dp-scroll a{display:block;float:left;background-color:#5cd4f5;background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdxaACGd-cCEIelON_p4qzdKcnnyKTPCGOfD3N87r65Yzi3SYPifxC_UY8Fv5hd1jCW_r0-GaFZbpPD62kNSa147SzJYzKYL427wSLSJ5KwNIrbqIUtGj2JIe2OlS9S6vYCrTVrTMaA-A/s216/scroll.png);width:36px;height:36px;text-indent:-999em}
#dp-scroll a.dp-up{background-position:0 -36px}
#dp-scroll a.dp-down{background-position:0 -72px}
#dp-scroll a.dp-bottom{background-position:0 -108px}
#dp-scroll a.dp-scroll{background-position:0 -144px}
#dp-scroll a.dp-stop{background-position:0 -180px}
#dp-scroll a:hover{background-color:#5cbbf5}
</style>
<script>
function autoScroll(){window.scrollBy(0,1);scrolldelay=setTimeout('autoScroll()',50)}
function stopScroll(){clearTimeout(scrolldelay)}
</script>
<div id='dp-scroll'>
<a class='dp-top' href='javascript:window.scrollTo(0,0);' rel='nofollow' title='To Top'>To Top</a>
<a class='dp-up' href='javascript:window.scrollBy(0,-window.innerHeight);' rel='nofollow' title='Page Up'>Page Up</a>
<a class='dp-down' href='javascript:window.scrollBy(0,window.innerHeight);' rel='nofollow' title='Page Down'>Page Down</a>
<a class='dp-bottom' href='javascript:window.scrollTo(0,999999);' rel='nofollow' title='To Bottom'>To Bottom</a>
<a class='dp-scroll' href='javascript:autoScroll();' rel='nofollow' title='Auto Scroll'>Auto Scroll</a>
<a class='dp-stop' href='javascript:stopScroll();' rel='nofollow' title='Stop Scroll'>Stop Scroll</a>
</div>
0 Kommentare:
Kommentar veröffentlichen