• Thống kê diễn đàn


[code] nút di chuyển lên xuống trong forum

View previous topic View next topic Go down

[code] nút di chuyển lên xuống trong forum Empty [code] nút di chuyển lên xuống trong forum

Post by Bui Minh Phong™ 6/1/2013, 3:17 pm

Code:
<script type='text/javascript'>var sheight = $(window).height();var
maxheight = $("body").height();$(function(){$.fn.scrollToMiddle=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()!="maxheight/2-sheight/2"){$(this).fadeIn("slow")}var scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()=="maxheight/2-sheight/2"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html, body").animate({scrollTop:maxheight/2-sheight/2},"slow")})}});$(function(){$.fn.scrollToBottom=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()!="maxheight"){$(this).fadeIn("slow")}var scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()=="maxheight"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html, body").animate({scrollTop:maxheight},"slow")})}});$(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()
{$("#toMiddle").scrollToMiddle();$("#toTop").scrollToTop();$("#toBottom").scrollToBottom();});</script>
<div style="bottom: 25px;clip: inherit;position: fixed;right: 5px;">
<a href="#" id="toTop"><img alt="Đầu trang" border="0" src="http://r22.imgfast.net/users/2211/12/43/96/album/top10.png"></a><br>
<a href="#" id="toMiddle"><img alt="Giữa trang" border="0" src="http://r22.imgfast.net/users/2211/12/43/96/album/middle10.png"></a><br>
<a href="#" id="toBottom"><img alt="Cuối trang" border="0" src="http://r22.imgfast.net/users/2211/12/43/96/album/bottom10.png"></a>
</div></div>
Bui Minh Phong™
Bui Minh Phong™
Quản Trị Cấp Cao
Quản Trị Cấp Cao

Posts : 3260
Points : 371212
Thanked : 1927
Birthday : 1994-12-18
Status Hãy Lặng Yên Để Cảm Nhận Tình Yêu Xung Quanh Bạn :x
Giới tính : Male Rất dễ thương

Back to top Go down

[code] nút di chuyển lên xuống trong forum Empty Re: [code] nút di chuyển lên xuống trong forum

Post by vippro 28/1/2014, 3:07 pm

cho vao dau vay Ad
vippro
vippro
Thành Viên Đồng
Thành Viên Đồng

Posts : 270
Points : 189302
Thanked : 8
Birthday : 1995-01-10
Status ffg
Giới tính : Male

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum