Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function ShowAjax(type) {
  2. var filename = "text_" + type + ".htm"
  3. $( "#C2" ).hide().load( filename ).fadeIn(500);
  4.  
  5. <div class="C1"><button class="button_01" id="first" onclick="ScrollTop;">Scroll to Top</button></div>
  6.  
  7. <script>
  8. function ScrollTop(){
  9. $("a[href='#bkmkAA']").click(function() {
  10. $("html, body").animate({ scrollTop: 0 }, "slow");
  11. return false;}
  12. });</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement