Tombol Up dan Down Di Pojok



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj3qRqqnvEScO7wESV8Sa4dCvJHyh994nBDRZpACbu_3I8YGUMCIUPtxowD4CI0rfIkfYCDwJxd-OkAdwPRireQQqZtK-SyTQhg_s11a1p4EqLGTY3z8S3lxm_xyTHM4QiyAk2ddYBnno/s400/view-blogger-tutorial-demo.png

Lihat dipojok kanan anda , letakkan kursor mouse anda diatasnya !.




Cara membuatnya

Dari Dashboard >> Design >> Edit HTML.

Penempatan kode HTML dan JavaScript
tepat disamping sebelum </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/AVvXsEg50jitmQIlito_UYmWWFPXoGoY-UyiT6Hg01kV9Aijz7Tq42q2Etej7PHxvZ6VkKRVy9r_iuIrh2Hkdt-zu4ua0ZKACSBH40rmUl7gXZ62xhaphvnf4HXCB_iByBMntZbPZEhChhwHzJsF/s1600/deejayhan-up.png" border="0" /></a><br />
<a href="javascript:" onmouseover="myspeed=thespeed" onmouseout="myspeed=0"><img
src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmCOJwm8E7xgrqKe_LzAvbWD2PUx_RBuy0skWmW-MfXXsju4rVNug641ZddfcSJDFCyS6wFlOaAAoFoJniv19_S6zb9j_-MegKEYmTt0JTPxzudfOrEWHoPpUkigFr76k3QsMb520bhXFy/s1600/deejayhan-down.png" border="0" /></a>
</div>

<script type='text/javascript'>
//<![CDATA[

//Script Tombol turun dan naik By Dynamic Drive
// (www.dynamicdrive.com/dynamicindex2/pagescroller.htm)
//This credit MUST stay intact for use

var Hoffset=60
var Voffset=60
var thespeed=3 //Kecepatan

var ieNOTopera=document.all&&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 && 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>
Terakhir klik Simpan / Save .
Nah Simple kan ?
Saya ucapkan Selamat Mencoba .
Description: Tombol Up dan Down Di Pojok
Rating: 4.5 4.5

Subscribe to receive free email updates:

0 Response to "Tombol Up dan Down Di Pojok"

Posting Komentar