Tuesday, October 26, 2021
HomeTài Liệu HayTạo thanh điều khiển lên, xuống, tua, dừng, quay lại cho Blogger

Tạo thanh điều khiển lên, xuống, tua, dừng, quay lại cho Blogger

Đăng nhập Blogger ~> Vào Mẫu ~> Chỉnh sửa HTML
Thêm đoạn code này vào sau thẻ <head> rồi Lưu Mẫu lại

<style type='text/css'>
#backscroll {
width:24px;
line-height:25px;
position:fixed;
right:5px;
top:130px;
}
</style>
<script language='javascript'>
  /* <![CDATA[ */ suspendcode="<div id='backscroll'><a onclick='javascript:amutop();return false;' href='#' title='TOP'><img border=0 src=\"http://1.bp.blogspot.com/-Q8BO7-vSH3A/UYTFRLn8q3I/AAAAAAAAAOc/K6NhDwdsKGY/s1600/up.png\" width=\"24\"></a><br><a onclick='javascript:history.back();return false;' href='#' title='BACK'><img border=0 src=\"http://3.bp.blogspot.com/-FteG1LJXlTg/UYTFP1bKdpI/AAAAAAAAAN8/8of6XT_uje0/s1600/back.png\" width=\"24\"></a><br><a onclick='javascript:sc();return false;' href='#' title='STOP'><img border=0 src=\"http://3.bp.blogspot.com/-bGScMCX_1eo/UYTFQYWDUhI/AAAAAAAAAOI/PocLCjDTdQo/s1600/pause.png\" width=\"24\"></a><br><a onclick='javascript:clearInterval(timer);initialize();return false;' href='#' title='DOWN'><img border=0 src=\"http://1.bp.blogspot.com/-tF24uwJ4zk0/UYTFP7xMEtI/AAAAAAAAAN0/FJlV_AMyD9w/s1600/autodown.png\" width=\"24\"></a><br><a onclick='javascript:amubutton();return false;' href='#' title='BOTTOM'><img border=0 src=\"http://2.bp.blogspot.com/-iae9fhJ_vc4/UYTFQcslTqI/AAAAAAAAAOM/AaFa6UukjDs/s1600/down.png\" width=\"24\"></a></div>"
document.write(suspendcode);var currentpos,timer;function initialize(){timer=setInterval("scrollwindow ()",30)}function sc(){clearInterval(timer)}function scrollwindow(){currentpos=document.documentElement.scrollTop||document.body.scrollTop;window.scrollTo(0,++currentpos)}function amutop(){window.scrollTo(0,0);clearInterval(timer)}function amubutton(){window.scrollTo(0,8E4);clearInterval(timer)};/* ]]> */</script>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular