Random Post

Arsip

Home » » Scroll Otomatis

Scroll Otomatis




Login dulu yang jelas, bisakan ? bisa donk pastinya, kalau dah masuk pilih tata letak pilih edit HTML dan jangan lupa centang dulu expand template widgetnya, sekalian d download dlu templatenya, ok.... ok deh......

Kalau semuanya sudah cari kode ini</body>letaknya ada di paling bawah, dah ketemu ? kalau sudah ketemu copy kode dibawah ini letakkan tepat diatas</body>


<div id="staticbuttons" style="position:absolute;">
<a href="javascript:" onmouseover="myspeed=-thespeed" onmouseout="myspeed=0"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6oXmWpupphDdk8iWdLHp2CCqBNB-q4zXNfStszk5BWMWqJFfRhmYuwY8AlPLhrcnIcL4ObOR3-6Fnf0bpBK0RKaNzeM1R5Rkxc1IQCefXn_vW_8b91VEdf02fNr_A77ZueVWRLXta5Ug/s320/BUTTONUP.png" border="0"/></a><br/>
<a href="javascript:" onmouseover="myspeed=thespeed"
onmouseout="myspeed=0"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI0IzXbUzNNva-NqD6v_xUgiuR-M5SSNtIuX0XDL6GTN9S38JFK_hPdQ7FPwtCMP1U7KlxcVZmAXr3yFL3lNHmitLoM8xRdHVsf3f9dq7n1qjEUk6uYBJBYXo2sfsrXxBvTonoetddbMY/s320/BUTTONDOWN.png" border="0"/></a>
</div>
<script>
var Hoffset=70
var Voffset=80
var thespeed=10
ieNOTopera=document.all&amp;&amp;navigator.userAgent.indexOf("Opera")==-1
var
myspeed=0
var ieHoffset_extra=document.all? 15 : 0
var cross_obj=document.all? document.all.staticbuttons :
document.getElementById? document.getElementById("staticbuttons") :
document.staticbuttons
function iecompattest(){
return (document.compatMode &amp;&amp;
document.compatMode!="BackCompat")? document.documentElement :
document.body
}
function positionit(){
var dsocleft=document.all? iecompattest().scrollLeft : pageXOffset
var dsoctop=document.all? iecompattest().scrollTop : pageYOffset
var window_width=ieNOTopera? iecompattest().clientWidth+ieHoffset_extra
: window.innerWidth+ieHoffset_extra
var window_height=ieNOTopera? iecompattest().clientHeight :
window.innerHeight
if (document.all||document.getElementById){
cross_obj.style.left=parseInt(dsocleft)+parseInt(window_width)
-Hoffset+"px"
cross_obj.style.top=dsoctop+parseInt(window_height)
-Voffset+"px"
}
else
if (document.layers){
cross_obj.left=dsocleft+window_width-Hoffset
cross_obj.top=dsoctop+window_height-Voffset
}
}
function scrollwindow(){
window.scrollBy(0,myspeed)
}
function initializeIT(){
positionit()
if (myspeed!=0){
scrollwindow()
}
}
if (document.all||document.getElementById||document.layers)
setInterval("initializeIT()",20)
</script>


Ket :
- yang warna cyan nilai angkanya bisa sobat tentukan sendiri (untuk kecepatan menggulungnya, semakin kecil nilainya semakin pelan menggulungnya)

0 comments:

Post a Comment

Terima kasih atas komentar anda di blog kami

Recent Comment