-------------------------------

sweety

one click one ❤

tutorial 2 : back to top

  ari nih faza nak share ngn korg sume tuto pasal back to top mcm faza pnye ,





ok first pergi dekat : dashboard >layout >add gadget/HTML

                               
second  COPY code dibawah dan paste dlm ruangan tadi (gadget/html),




span style="font-weight:bold;">ript type="text/javascript" >/***********************************************
* Scroll To Top Control script- © Dynamic Drive DHTML code library(www.dynamicdrive.com)* Modified byLyssaFaizureen***********************************************/var scrolltotop={
setting: {startline:100, scro
controlHTML: 'URL gambar anda" />',
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=$('
'+mainobj.controlHTML+'
')
.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()








 warna hijau :  tuka ke pada url gamba . korg bole carik or buat or amik kat bawh nih,,




https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsRoPYjS63kKcoi2urf_7zuQyHBSHThgXhgTQg1A5Y5IgKRWEMbN4u-m3JrLjGpI4huRieSd1J4G7A6kOrIOFmckAQ5lCTRzor1HBWgadd_YJVTbNaxbX7B2n5GmOjI5hD_9ofDuZ6ZM9b/s1600/top-3.png








https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4M-k2e4fV7AS0S9WomBj3J9t0PMzdBOhz0myFIcYgUEfhH1546RgYHWGtjcFXHjuomMywMLFQ0H_pgKbfrQsRq8JvQPN9xWFyhfoAkU1NuAXCbwdyb0godVv1zmO6eBjxHUxmJJR-YI-Q/s320/top-1.png





http://i1207.photobucket.com/albums/bb474/adziatulfarhah/back%20to%20top/th_top2.png

                                                   selamat mencuba dan jangan lpe comment 





hey comel ! thank you for reading faza punye entry.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
Red Flower