Tài khoản:
Ghi nhớ?
Mật khẩu:
DIỄN ĐÀN
::
Chuyên Ngành Công Nghệ Thông Tin
::
Thiết kế WEBSITE !
Code di nút di chuyển lên xuống và giữa ở góc 4rum
Trang chủ
Face CNC
Trang Chính
Portal
Gallery
Latest images
Tìm kiếm
Tìm kiếm
Display results as :
Số bài
Chủ đề
Advanced Search
Đăng ký
Đăng Nhập
DIỄN ĐÀN CNC
::
Chuyên Ngành Công Nghệ Thông Tin
::
Thiết kế WEBSITE !
Share
Code di nút di chuyển lên xuống và giữa ở góc 4rum
Tác giả
Bình chọn cho bài viết:
Tuyền Choắt iTV
HỌC ĐỂ CHƠI - CHƠI ĐỂ HỌC
Tổng số bài gửi
:
347
Ngày tham gia
:
24/11/2011
Tuổi
:
31
Đến từ
:
Tuyệt Tìnk Cốc
Tiêu đề: Code di nút di chuyển lên xuống và giữa ở góc 4rum
Fri Jan 06, 2012 12:44 pm
Code di nút di chuyển lên xuống và giữa ở góc 4rum
Code:
<script type='text/javascript'>var maxheight = $(document).height();$(function(){$.fn.scrollToMiddle=function(){$(this).hide().removeAttr("href");if($(window).scrollTop()!="maxheight/2"){$(this).fadeIn("slow")}var scrollDiv=$(this);$(window).scroll(function(){if($(window).scrollTop()=="maxheight/2"){$(scrollDiv).fadeOut("slow")}else{$(scrollDiv).fadeIn("slow")}});$(this).click(function(){$("html, body").animate({scrollTop:maxheight/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://i34.servimg.com/u/f34/15/44/78/93/top10110.png"></a><br><a href="#" id="toMiddle"><img alt="Giữa trang" border="0" src="http://i34.servimg.com/u/f34/15/44/78/93/middle10.png"></a><br><a href="#" id="toBottom"><img alt="Cuối trang" border="0" src="http://i34.servimg.com/u/f34/15/44/78/93/bottom10.png"></a></div>
Code di nút di chuyển lên xuống và giữa ở góc 4rum
Trang
1
trong tổng số
1
trang
Permissions in this forum:
Bạn
không có quyền
trả lời bài viết
DIỄN ĐÀN CNC
::
Chuyên Ngành Công Nghệ Thông Tin
::
Thiết kế WEBSITE !
DIỄN ĐÀN CNC
::
Chuyên Ngành Công Nghệ Thông Tin
::
Thiết kế WEBSITE !