Post Top Ad

Home Top Ad

Responsive Ads Here

Freebies Scroll To Top

Haii , harini Azhunk dengan senang hati buat freebies untuk korang semua yang selalu terjah blog Azhunk ! Freebies kali ini adalah, Freebies button back to top ataupun Scroll To Top Button =D

Sebelum korang ambil, bolehlah follow dan like fanpage Azhunk World =D heee nanti senang korang nak ambil freebies yang akan datang, ye dakk ?

Azhunk buat freebies ni berbentuk Kapal Terbang, comel tau ! Azhunk buat guna Microsoft Excel 2007 sahaja =D

Macam-macam warna ada, ade warna Oren, Kuning, Hijau, Biru, Pink, Purple

Oklah !

Kalau dah ambil tu sila beritahu yee ! =D Syukrannn


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrGTchqXXnzFesEcVNDXYZRDMSwFHxvaf568UqCuUTfWXoiZUTN0cALrRO0PZirYaPf1uznFA_VSeOgKUH33ReQVD-jP-D1KmO3ciDjpeqRNH4XaPAXq_ytwz-DPvl8GAjghM6me3WTfg/s1600/Top+Yellow.png


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoh5ambchAbP5t7TlkgTvVT7RyEiXP9maXjeDTuZmla3jXzK0QcTrmy10kgRUs46mKxJ3SQv90IFipaE2YdnK2VvpWGngiCNSdY-nHbQ1S5dIW2cltjddM_wsQ7qrUeiQyMmOEWoGnXsI/s1600/Top+Red.png


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYEkcqEQSspRFjbjeXWt3xDGLftaVRj7FClUKMHAJvfT0lGl9n4fqGp1gYAo5vRH_h7MwHRiIbMO6VEuvidxHmgCJf3_7gOGjC2M9YRvxsyGxn5YtN5S3BvT6nnWj56nPWtMJQnfoCjs0/s1600/Top+Purple.png


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtJEMaaGzBEOUdYuNBiAdM2MkwUj85MmgtGbOWJmsva4fpFeo7m4uxwCJT8MZ9WXZrfw3UZEATPMW0tma1Gk5UT3HbAmg5bgmBL-2cQqib2ENYxf7NaLWTh0lVq2mZbGLEw3ticcEKps0/s1600/Top+Pink.png


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXglKXVZXUWCf7PPVKWQENCg_877DvJST4T0HclJ1IwCCYR1xUbMVDfLB8G8XuOVymYwnL0IX5WP3xbzzltESJb93xBsR9eg1v6hEMKsZuSHiQxipAw0NOpWwM9a3wS8IFWrhICxfHAuk/s1600/Top+Green.png


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXKS9eEt14Zbx9-J6cEnXwhyIWB4QAjY8diJE5phx-ciwNmvYcC0LyvG_FFfZFg42GS_oipnAihJce_WU_PkMkUny5TZd_N5kEH3kH03xcy-M7j4fnyopYCIa78M5FDearbnpeqW0vOwk/s1600/Top+Blue.png


Cara nak pasang button to top ?
Dashboard >> Design >> Add a gadget >> HTML/Javascript
Pastekan kod di bawah =D Ubah perkataan dibold ye !
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script><script type="text/javascript" >/***********************************************
* Scroll To Top Control script- &#169; Dynamic Drive DHTML code library(www.dynamicdrive.com)* Modified byLyssaFaizureen***********************************************/var scrolltotop={
setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
controlHTML: '<img src="GANTIKAN DENGAN URL GAMBAR TO TOP KORANG" />',
controlattrs: {offsetx:5, offsety:5},
anchorkeyword: '#top',
state: {isvisible:false, shouldvisible:false},
scrollup:function(){
if (!this.cssfixedsupport)
this.$control.css({opacity:0})
var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
if (typeof dest=="string" && jQuery('#'+dest).length==1)
dest=jQuery('#'+dest).offset().top
else
dest=0
this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
},
keepfixed:function(){
var $window=jQuery(window)
var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
this.$control.css({left:controlx+'px', top:controly+'px'})
},
togglecontrol:function(){
var scrolltop=jQuery(window).scrollTop()
if (!this.cssfixedsupport)
this.keepfixed()
this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
if (this.state.shouldvisible && !this.state.isvisible){
this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
this.state.isvisible=true
}
else if (this.state.shouldvisible==false && this.state.isvisible){
this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
this.state.isvisible=false
}
},
init:function(){
jQuery(document).ready(function($){
var mainobj=scrolltotop
var iebrws=document.all
mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest
mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
.css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
.attr({title:'Scroll Back to Top'})
.click(function(){mainobj.scrollup(); return false})
.appendTo('body')
if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='')
mainobj.$control.css({width:mainobj.$control.width()})
mainobj.togglecontrol()
$('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
mainobj.scrollup()
return false
})
$(window).bind('scroll resize', function(e){
mainobj.togglecontrol()
})
})
}
}
scrolltotop.init()
</script>

6 comments:

Unknown said...

amek sbiji ea dik ^^ mekaseh~

btw, da vote azhunk..all da bez! ^^

Azhunk Awang said...

makasih ! hohoh ;D

bicara mak dara said...

hi nice entry indeed..

btw.. I just voted for you for Worlds Bloggers And Social Media Awards 2012

Plsssss vote for me for THE WORST BLOG OF THE YEAR @ http://socialmediaweek.com.my/awards/category.php?id=33 "click vote di link www.bicaramakdara.com

Azhunk Awang said...

Thanks for voting me =D ,

adibahfaizah said...

Ehhh, rase mcm nk amek seketul plaq ea :) tq

Azhunk Awang said...

adibahfaizah : Sila2 .. banyak ketul pun takpa :P

Post Top Ad