tutorial top button

iloveyouu :*

okay bende nih dah lame jugak lah ad orang req name dea saye tak tahu , dea taye dekad shoutbox . okay ,  top button nih laen dari yang laen okay . bile korang tekan nnti dea naek slow slow . hah best gilo XD . okayy jom try

1. dashboard-design-edit html 

2. ctrl+f copy code nih </body>

3. then korang copy code bawah nih dan paste kan di bawah code </body>

<a href='#' id='toTop'><img src='URL IMAGE TOP BUTTON?t=1292762029' style='border:0;'/></a>

4. eh , belum abs lagi lah coding dea , then lepas to korang ctrl+f serch code nih  ]]></b:skin>

5. copy pulak code bawah nih andd pastekan dekad bawah  ]]></b:skin> 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; }

6. lepas dah siap to korang ctrl+f search code nih pulak </head> 

7. copy pulak code bawah nih andd pastekan dekad atas kodd </head> tadi  

<script src='' type='text/javascript'></script>
<script type='text/javascript'>
* jQuery Plugin: Scroll to Top 
* by Craig Wilson, Ph.Creative ( 
* Bring to you by Zen from 
* 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 
* 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() { 
okay done save template  :) 
truly by

wohoho, suke ? like thankyouu

No comments: