12 August 2011

Tutorial : Jquery Scroll Top Button

1 . Dashboard > Design > Edit html > Tick Expand Widgets

2. cari code ni : </body>

3. copy code ni :
<a href='#' id='toTop'><img src='http://i1108.photobucket.com/albums/h420/sweetcandy4858/nurhafizah/topblack.png?t=1292762029' style='border:0;'/></a>
4. paste ATAS/SEBELUM code </body>

5. cari code ni pula : ]]></b:skin>

6. copy code ni :
 /* to top */#toTop { width:100px;background:none;border:0px solid #ccc;text-align:center;padding:5px;position:fixed;bottom:10px;right:10px;cursor:pointer;color:#666;text-decoration:none; }
7. paste ATAS/SEBELUM code ]]></b:skin>

8. cari code ni : </head>

9 copy code nih :







 <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
<script type='text/javascript'>
/*----------------------- 
* jQuery Plugin: Scroll to Top 
* by Craig Wilson, Ph.Creative (http://www.ph-creative.com) 
* Bring to you by Zen from http://zenplate.blogspot.com 
* Copyright (c) 2009 Ph.Creative Ltd. 
* Description: Adds an unobtrusive "Scroll to Top" link to your page with smooth scrolling. 
* For usage instructions and version updates to go http://blog.ph-creative.com/post/jquery-plugin-scroll-to-top.aspx 
* Do not delete these infomation 
* Version: 1.0, 12/03/2009 
-----------------------*/ 

$(function(){$.fn.scrollToTop=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()!="0"){$(this).fadeIn("slow")}var scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()=="0"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html, body").animate({scrollTop:0},"slow")})}}); 

$(function() { 
$("#toTop").scrollToTop(); 
}); 

</script>
 

10. paste SEBELUM </head>

11. preview & save .

tulisan merah tu untuk image button back to top . korang boleh cari , tak pon buat sendiri okay . btw , saya buatkan beberapa button tu . boleh pilih dekat bawah .


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh6XHzxPZ1x6b6xwoiFk5Fj08WLwSAGQ9R0Od_OKwock2REWGJ4ubOIEb-Lidzc2lfPREmOdr2I-wgQNWb6yg8efqZ6cccTLpie_6EmGmPYUmureo1wc3FqwDPIh-RrLLE8wYUGo-MM-Bs/s1600/th_topblack.png

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiShy61LVPZ-KcSQsiP0L-MZN00FSngHWr70CatHjHuKkFc36ExXRR8JfODbadOblKrCdlKZ4ZIyOYWn5xRJxURsHhwTgHorA9wQUqG8um5uwNr0vB5hsILj5Ts2sYHiRH6U1nOEIOFi1k/s1600/th_topgray.png

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOjOT5bCXb8y7yhyphenhyphenMKbaFOlKeveIhVbphSramrAtSOkLR37ScHSRtkDrsbKcwyCJmwubAQTx1crxUjoKnYJdW4KVb4NUSg7c9f3nKQJZVAeVU8uGEh5q16670BIGr5kADcBusp8olJenI/s1600/th_topborange.png

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8kTacd1-uH0tTpRahoDdOhpWfcWs040BpsJxJLKk0nfPcwo3quPJEAVJYxB0cm5XeFRmeSFXytZfXbfx3mU1-uJ2XBPKVC-9ztBSDywPLL6wxEcSLCpkCQD1lRwMhtRk7xVZQYZoJ86w/s1600/th_toppink.png

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7IPyiv2yjGRWcqVomqqyyJu7-dykcfckrr4lTUb5qCS8vcPIJLIrw9-awedun3cR8LyeoGdEdCsNGvyToprn448m4XDra3A1SzVZWme6hLBfQrYj883qE_XljcVvOyXtHnxxbQX-sAYo/s1600/th_topgreen.png

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiyFiWqEgOr9bD_nn0UKWEWJ9hUsIJMzw155ZuRb1HPhuKlHtttse67YY-vV4l0sWingGT_V6kCXl-EeY2fcbLXJ9Bz7NHQEA0gj53GTminw4G6gXGRBWL6wmfURua2rAIdBnigipdjMo/s1600/th_topblue.png
credit : nurulshabila.blogspot.com

84 ✿:

Shaidatul Aireen said...

terima kasihh . saya ambil satu .

Nurhafizah said...

@I Am His Girlfriend ok

adlah said...

Thanks kak! :)

nana_ch0c said...

saya amik satu..~

Anonymous said...

adk amek button top nieyhh :)

Nurain Syahirah said...

Dear,
I take one okay? And I've already credit to you. Thanks :)

Han said...

Thnx yew . I take one :]

jasz zulkefli said...

nak satu!

Yoona said...

saya culik satu warna pink :D

◕‿◕ Inas Syuhaidah ◕‿◕ said...

Ambik Satu :)

short introduction said...

ambik satu ye..:)

Dhia Firda said...

lawa !! saya ambik satu ye , thankz .

Z. said...

amik satu. thank you :D

Sarah Qistina said...

thank KYU very much Sis :)
I'll take one .

Kina said...

saya amik satu.. thanks :)

Jihah Zek said...

Amik satu top button. Thanks :)

Impiana Mayana said...

minta izin guna yg kaler kelabu tu ye.. ;)

Nattilia Farhana said...

i take one :) thnk u so much pretty

capital 'R' said...

thanks for the tuto. i take the freebies one :)

Fatin Nabila said...

amek satu :)

laila lee said...

bekenan ! ambik 1 tq ^^

EENIEMEENIEDONUT said...

ambik satu ye . terima kasih :)

Cik Lysa said...

Kenapa kat center pulak eh? nak kat tepii

Nurhafizah said...

@Lissa. nk ubah dkt mne2 pon xpe

adyaa said...

nad amekk 1 ehh ,

sys said...

thx 4 this. amek satu! ngeehehe~

Mira Fairy said...

Saya amik satu,,,warna pink ok?

Ra said...

Thanks a lot ! amik satu :}

diari cyra said...

thanks, saya amik satu ehh. ;)

Awanis Muridan said...

sy amek 1 eh! ^^

Farah Aimi said...

thanks baby . amek satu <3

amirahyusoff said...

ct ambil satu :D

Nana-chan said...

amik satu kayyy .

Alissa said...

amik satu kak~ :D

Anis Solihin said...

saya amik satu :) thanks

Fieka Violet said...

thanks ! amek stu tau

Unknown said...

thanks the tuto..
=)

Ezza Hanis Farahain said...

sy ambik stu :)

~ Bunga April Lover ~ said...

ambik satu ye :)

aliya syafiqah said...

ambik satu eh ? thngs ^^

Izzatyy Azhar said...

Ambik satu eh kak ? Terima kasih :)

Fatin Yusrina said...

nurhafizah..ambil satu

Anis Hayati said...

akak saya nak yg wrne pink tu
btw thanks for this tutor :)

AVenDeLiVvie said...

akQ . Sya Ambek Satu (:

Anonymous said...

ambil satu :D warna grey
thanks you :D

Anonymous said...

amik satu

Miera Liyana said...

thanks.comel.i pick one :)

Nur Nazihah said...

amik satu . tQ ;)

Anonymous said...

Saya ambik background dan yang ni ye~ :) Thanks unnie!

Izaa said...

tenkiu :)
saya amik satu aa ^^

Unknown said...

thanks for the tuto

ainsimpson said...

hi , saya ambek satu yee :)

Le'MiSha ; said...

thanks kak

Sehun 4lyf3 hee said...

Amik satu :) Thanks for the tuto :]

Nurul Anis Suraya said...

saye amek satu

Anonymous said...

ambik satu :D Semuanya comei2 <3

una said...

ambik jgak cute 2...kaler pink..tq

ayie_kecik said...

thanks . rembat satu . wrne biru :)

Anonymous said...

saya ambil satu warne pink :)

nhdaughter said...

thanks :)

D. said...

ila ambik taw :) tengs^^

ainatt ainott said...

ambil satu k . tengss .

Awesome february said...

minta izin ambil tuto ye . thanks .

Anonymous said...

Izin ambil satu ya kak ^^

LilaLilaa's Stuff® said...

makasih kak :) aku ambil satu yaa..

AdwyhAli said...

amek satu eak :D

Adn said...

thanks for the tutorial! jgn lupa belogwalking kat belog saye yer!

patenyhns said...

thanks (; ambik satu ya .

syazwanie said...

kaq ambik satu :) tahzz for thiss tuto ;* emmoahhhhhh

Ifa Atikah said...

thanks...saya amik satu ye..

Rizka Andriyani said...

Thank you. Aku ambil satu ya :)

Ku JiHa said...
This comment has been removed by the author.
Ku JiHa said...

hye... cantik top awk.. sy ambil 1 ye :)

syimahasni said...

amek satu ya~

Razali's daughter said...

sy ambil satu top button ye :)

nuha said...

saye ambik satu.

Anonymous said...

amik satu ye :)

Dura said...

sy amik satu tau . thanksss tapi cmne nak ubah kedudukan dy eh ?

izyan said...

sis,amik satu ye dear..thanks :)

Nama pena, Puteri Nur Cahaya @ Cikgu iEta. Suri rumah sepenuh masa. Penulis Lifestyle Blogger berpengalaman Social Media Marketing Coach. said...

tERIMA KASih... sy ambil yg warna hijau

Aida said...

kak... kalo x da kod nih? > ]]>

Anonymous said...

saya ambik satu, thanks :D

Hvzrh said...

saya amik satu ye :)

aienienka said...

minta izin amek satu.. :D