Advertisement
foreverora

how to add back to top button to your blog #2

Apr 7th, 2013
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. paste this before </style>
  2.  
  3. #scrollToTop:link,#scrollToTop:visited { color: transparent; background-color: transparent; display: none; position: fixed; bottom: 15px; right: 15px;}
  4.  
  5. paste this before </head>
  6.  
  7. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><script src="http://static.tumblr.com/ikeq9mi/DfYl6o46t/scrolltotop.min.js"></script><a href="javascript:;" id="scrollToTop"><img src="BUTTON URL" border=”0”></a>
  8.  
  9. replace "BUTTON URL" with the link of your button (right click on the button & copy image url)
  10.  
  11. save it
  12.  
  13. go to your blog & reload
  14.  
  15. scroll down
  16.  
  17. it should appear now :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement