Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ShowAjax(type) {
- var filename = "text_" + type + ".htm"
- $( "#C2" ).hide().load( filename ).fadeIn(500);
- <div class="C1"><button class="button_01" id="first" onclick="ScrollTop;">Scroll to Top</button></div>
- <script>
- function ScrollTop(){
- $("a[href='#bkmkAA']").click(function() {
- $("html, body").animate({ scrollTop: 0 }, "slow");
- return false;}
- });</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement