Tutorial : Scroll Back To Top Jquery (Naik Lif Laju2)

Gadis Kidal Berceloteh...
11/12/2011

.Assalamualaikum !
Peacee ^_^v

Waaa . Pantang ada lain sikit je dekat blog Lyssa ni haa . Mulah lah korang nak Lyssa buatkan tutorial kan ? Okeyy . Tak pe . Lyssa buatkan  . Kali ni , tutorial Naik Lif Laju-Laju . Apa tu ? 

HAHAHA . Itu Lyssa saja reka ayat tu . Jangan ada yang ciplak sudah . hahaha :)
Okeyy . Bila tekan je naik lif laju2 , akan terscroll secara smooth ke bahagian atas . Nak try jugak ke ? Jom lah ramai - ramai .  

Lyssa siap kasi FREEBIES lagi kat bahagian bawah sekali . Kalau berminat , guna lah ye :)


1.  Log in > Dashboard > Design > Add a Gadget > Html/JavaScript

2. Copy kod ini dan paste diruangan Html/JavaScript tadi :

<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="URL IMAGE FLY UP" />',
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>

3. Sudah ? Then , tukarkan warna merah itu , dengan URL FLY UP button yang korang minat . Kalau korang berminat , ambik lah kat bawah ni , Lyssa ada buat kan dekat korang . Kalau tak berminat , boleh create sendiri :) 

4. SAVE .

*// Akan diupdate FREEBIES dari semasa ke semama :)


 
http://i.imgur.com/q7S0w.png


 
http://i.imgur.com/xiyTa.png
 
http://i.imgur.com/Czy9p.png
 
http://i.imgur.com/P2x3M.png
 
http://i.imgur.com/se3Yr.png
 
http://i.imgur.com/XXXLW.png
 
http://i.imgur.com/mmZzk.png


KONGSIKAN ARTIKEL INI..
Previous
Next Post »

245 000 orang Comment Di Sini

Write 000 orang Comment Di Sini «Oldest   ‹Older   201 – 245 of 245   Newer›   Newest»
Aishahh Zamri
AUTHOR
May 19, 2012 at 3:51 AM delete

KAK LYSSA,ILA AMBEK SATU YE

avatar
Unknown
AUTHOR
May 30, 2012 at 3:55 PM delete

kite amik satu freebies nye..!! thanks kak lysaa!!

avatar
May 31, 2012 at 7:49 PM delete

kak lyssa cmne nk wt fly up sndri???

avatar
Aindewww
AUTHOR
June 2, 2012 at 9:58 AM delete

kak,kita guna kod akak kat tutorial kita,hrap akak bagi.. :)terima kasih..

avatar
Cik Yenn ♥
AUTHOR
June 6, 2012 at 3:31 PM delete

thanxx kak lyssa ...
dah jadi lah

avatar
atika amira
AUTHOR
June 10, 2012 at 2:42 PM delete

kak lysa nak satu freebies erk ?

avatar
Unknown
AUTHOR
June 17, 2012 at 3:21 PM delete

thnks 4 the tutorial :)

avatar
Sheila Salim
AUTHOR
June 22, 2012 at 10:44 AM delete

salam dik, akak da guna banyak tutorial daripada adik. tq so much!

avatar
June 26, 2012 at 5:07 PM delete

dah dapat buat . tq yee kak lyssa ;)

avatar
nina
AUTHOR
July 30, 2012 at 2:21 PM delete

thanks lyssa..,amik 1 ye..:)

avatar
intan zakia
AUTHOR
August 12, 2012 at 2:07 AM delete

kak lyssa,lau kte da kai shoutbox kt tpi tu da xley gne Fly up nie ke?
sye try nk fly up tp asyk kua sjoutbox jela..cmne erk??

avatar
Unknown
AUTHOR
September 22, 2012 at 1:18 PM delete

salam..kak lyssa, leh tak sya nak gne tutor akk kt blog sya..sya msih bru lg..smua tutor sya akn credit akak :)

avatar
Unknown
AUTHOR
September 24, 2012 at 5:01 PM delete

lyssa, ajar akk mcm mna nk letak pic cute dkt tab atas tu? kluar pic cute sblm blog lyssa....ajar akk buleh?? huhu

avatar
taehygsbby
AUTHOR
October 8, 2012 at 3:47 AM delete

kak lyssa , miezza ambil freebies tu colour pink tau . thankyouuuu :)

avatar
taehygsbby
AUTHOR
November 9, 2012 at 7:27 AM delete

thanks for the tuto kak lyssa :) jadi ! ehehe

avatar
Anonymous
AUTHOR
November 17, 2012 at 4:09 PM delete

thank you kak lyssa~~!!!
u r dew besto!

avatar
anshmnf
AUTHOR
November 20, 2012 at 8:48 PM delete

Thanks kak Lyssa.Dah jadi pun.

avatar
Ainul Jalil
AUTHOR
December 5, 2012 at 11:22 PM delete

Assalamualaikum, thanks...:)

avatar
tashira sha
AUTHOR
December 9, 2012 at 10:50 PM delete

ambik satu eh kak lyssa. :) thank you

avatar
aleasara
AUTHOR
December 30, 2012 at 3:07 AM delete

slm sis comel!setiap kali akk nk renovate blog mesti x frust tiap kali dptkan tutorial kt sini.tq sgt ye,akk ambil buttom yg biru tu selamat tahun baru 2013!

avatar
Anonymous
AUTHOR
January 16, 2013 at 3:19 PM delete

thx kak lyssa !!! XD

avatar
Asyikin
AUTHOR
February 10, 2013 at 8:32 PM delete

akak...ekin hairan larh..tuto nie jadi ja,tp code dy appears skali dlm blog..huhu..apa silap ekin yer?

avatar
Izyan Ayuni
AUTHOR
February 17, 2013 at 5:39 PM delete

kak lyssa ,saya ambik yang warna merah ,k? :]

avatar
Izyan Ayuni
AUTHOR
February 17, 2013 at 5:40 PM delete

kak lyssa ,saya ambik yang warna merah ,k? :]

avatar
Anonymous
AUTHOR
March 25, 2013 at 9:54 AM delete

thanks kak lyssa kak lyssa terbaik

avatar
Ehh_Adikk
AUTHOR
April 6, 2013 at 5:07 PM delete

Thank you kak Lisa <3

avatar
Birdy
AUTHOR
May 25, 2013 at 6:29 PM delete

Kak Lyssa, izin tag ya, Kak! Nanti, saya Credit untuk Kak Lyssa. :). Terima kasih, Kak! ^^

avatar
Anonymous
AUTHOR
July 6, 2013 at 10:55 AM delete

kak, saya amik ye, tq :)

avatar
anshmnf
AUTHOR
July 7, 2013 at 12:54 AM delete

Thanks for the tutorial :)

avatar
Unknown
AUTHOR
September 11, 2013 at 4:25 PM delete

thanks kak lyssa menjadi sngat ambik stu freebies yer ^_^

avatar
ashyaziz
AUTHOR
December 4, 2013 at 12:39 PM delete

Alhamdulillah..Menjadilah kak lyssa! Thanks :)

avatar
intan huwaina
AUTHOR
January 5, 2014 at 3:33 PM delete

saya ambil ya ^^ trimas :) mai mai lawat blog2 saya , saya tak minat pakai skin , suke simple je , mai lah lawat ^^ http://intanhuwainalah.blogspot.com/

http://intanhuwaina.blogspot.com/

avatar
Anonymous
AUTHOR
July 6, 2014 at 2:33 PM delete

macam xjadi..gambar fly up tu xde..

avatar
aisyah
AUTHOR
September 24, 2015 at 3:47 PM delete

Kak Lyssa , thankyou for this tuto >.< cantik sangat !

avatar
«Oldest   ‹Older   201 – 245 of 245   Newer›   Newest»

.Assalamualaikum.
.Sila Tinggalkan Comment Anda Di Sini.
SATU pun jadi lah ! hehe. EmoticonEmoticon