Tutorial : Jquery Top Button
Assalamualaikum and annyeonghaseyo. Tuto ni hanya utk pengguna template designer sahaja
1.Dashboard > Design > Edit HTML > Tick Expand Widgets
2.Press Ctrl + f dan cari code </body>3.Copy code di bawah
<a href='#' id='toTop'><img src='URL IMG?t=1292762029' style='border:0;'/></a>4.Then paste di atas code </body> tadi.
5.Cari code ni pulak ]]></b:skin>
6.Copy code bawah 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 code ]]></b:skin>
8.Seterusnya , cari code </head>
9.Copy code ni
<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 -----------------------*/10.Paste atas code </head> tadi
$(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>
11.Preview & save
merah : gantikan dgn url top button
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3PWSNeKfvhVU9RnZRNNhTt6wfK9w4xYGtlnk5HvlUXrLAm1qNNqvzWOIG7eiKHy0Gjg0Gh-KaDu044jWKe6P4VM5tDR4ziQrq7QJNI7kgLaYwfxrpSKHmyIi5b4yGKDWje3AUgMAEfA/s1600/top-pink+copy.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUrI3p6JzznPaK_FV80lIdQq-rUqcHLw3hIKu4pqLZZ7PhNLOE3BKuxTYMJ9bBKS2ufwsiDF4Z_r8kdvlfSsCt_zqFP2E3rEzgy9Dk5O33mq8wUv8oa8LiVpLZzEnLl2M11tOZeSkQ_g/s1600/top-purple.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLaUjmyqbTGb19kBSAQ9TD2Ornv-8DG6C1LE3wNOtM_gM0B15x7t6eU9ogcZrQh5rXgsebrlSEzBbA1VbzXFZoWG6KyFPaNr7S1TDPlGvXItdsh_WhW2FORST_lFzMrERWss2AKHsFAA/s1600/top-blue.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV1IfGu-teNh3UNZK8gCt104lhL2mjVORheqtMnG4rr477QRmtnGTgU_eY5GqjrH_1j2Pf0Z8fTUPoxSJb7JSeWlPnjzvZCgifGOi7sWfgEvzOgCFj96MfRPpnK-xygQL7s8F1rRLvDg/s1600/top-orange.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitSReHA7AUlYjcWIPbvCQwGt4MOM6SyXp-GFnxY6bt-Ovz-4ntOvVJt8s3z0t1VzfaRKKWfDT7wBYCQiEQTVHnE8C2ub9_ImkD9DxphcU-16uRLV8BW3GolN9sJef1swIr7dls-dSjWQ/s1600/top-black.png
5 comment [s]:
Thanks Tiqah, cantik :)
terima kasih..
terima kasih...
Tiqah :) saye amik tuto ni dan letak dalam blog saye . tapi, saye tak re-tutorial . harap tak marah :) dan harap tiqah izin kan :)
thank you so much darling. tutorial ni je yang menajdi :DDDDD
Post a Comment