Tutorial & Freebies Back To Top

Tutorial & Freebies Back To Top

Assalammualaikum.

Hari ini eca nak bagi tutorial & freebies sekali.Tutorial yang sangat mudah & pilihan freebies mengikut warna tema blog korang.....Tutorial ini bertujuan tuk mudahkan korang & pengunjung blog tuk kembali ke atas.Amat sesuailah tuk korang yang mempunyai entry-entry yang panjang.*macam eca lerr tu*.


kod Back To Top #1.

<a title="Back to Top" href="#" style="position: fixed; bottom: 5px; right: 5px;">
<img src="URL GAMBAR"></a>



kod Back To Top #2.

<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)************************************************/var scrolltotop={
setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
controlHTML: '<img src="URL GAMBAR" />',
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>

Tutorial Back To Top cara 1.
1. Dashboard - Layout - Add A Gadget - HTML/Javascript.
2. Pada ruangan tu, masukkan pilihan kod #1 atau kod #2.
3. Gantikan URL GAMBAR menggunakan URL GAMBAR pilihan korang sendiri.

Tutorial Back To Top cara 2.
1. Dashboard - Template - Customize - Advanced - Add CSS.
2. Pada ruangan tu, masukkan pilihan kod #1 atau kod #2.
3. Gantikan URL GAMBAR menggunakan URL GAMBAR pilihan korang sendiri.

URL GAMBAR korang boleh gantikan dengan url-url yang eca bagi free ne ::

 http://imageshack.us/photo/my-images/23/n2db.png/

 http://imageshack.us/photo/my-images/13/5jem.png/

 http://imageshack.us/photo/my-images/34/pw4.png/

  http://imageshack.us/photo/my-images/18/ows.png/

 http://imageshack.us/photo/my-images/12/am0h.png/

  http://imageshack.us/photo/my-images/819/n1rn.png/

  http://imageshack.us/photo/my-images/89/7ng6.png/

 http://imageshack.us/photo/my-images/401/lveh.png/

 http://imageshack.us/photo/my-images/546/vcul.png/

 http://imageshack.us/photo/my-images/405/67ph.png/
  http://imageshack.us/photo/my-images/545/2sc3.png/


SELAMAT MENCUBA oke?!.....dan moga korang berkenan dengan freebies yang eca sediakan ini. 

more-up-coming Tutorial & Freebies cause I've done many freebies before =)