Back to top Button
Wednesday, November 9, 2011 ★ 11:51 PM │
Assalamualaikum ...
♥
Yang ni Pulak tutorial untuk Back To *TOP* Button! Jadi dia terus ke atas, not scroll Okay?! :)
Senang je buat dia *aceh2* Yang penting follow step by step! :)
♦ DASHBOARD → DESIGN → ADD A GADGET → Html/Javascript
♦ Copy Code bawah ni and pastekan di kotak yang tersedia! :)
<a style="display:scroll;position:fixed;bottom:5px;right:5px;" href="#" title="Top"><img src="URLIMAGE" /></a>
♦
Save! and Siap! :)
*anyway, tak tahu mana nak cari gambar untuk top button ni, Zuhairah ada sediakan, TEKAN
SINI!
Tak adalah cantik macam orang lain! Simple je okay?!:)
*BTW, yang ni hanya top button yang basic punya!
ADVANCE TOP BUTTON
Anyway saya credit dulu untuk
Unna! :)
♦ DASHBOARD → DESIGN → EDIT HTML → *tick expand widget!
CTRL + F serentak and then cari code ni :
</body>
♦ Copy CODE bawah ni ↨ and pastekan
SEBELUM code diatas ↑
<a href='#' id='toTop'><center>AYAT KORANG<span class='Apple-style-span' style='color: rgb(255, 204, 204); '/></center><img src='ICON TOP BUTTON?t=1292762029' style='border:0;'/></a>
♦ eh, jangan save lagi, Cari code ni pulak! :
]]></b:skin>
♦ Copy code bawah ni
SEBELUM code atas tadi :
/* 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; }
♦ Seterusnya, cari code ni pulak OKAY?!
</head>
♦and then copy code bawah ni
SEBELUM code </head> tadi.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'/><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>
♦ PRIVIEW! dah puas hati,
SAVE! :)
Siap! :) tengok lah hasilnya! :)
'SELAMAT MENCUBA'
Wassalam ....
♥