Thread: "Back to top" button [jQuery] VB

Results 1 to 5 of 5
  1. #1 "Back to top" button [jQuery] VB 


    RS Wiki's Avatar
    Join Date
    Mar 2011
    Age
    29
    Posts
    9,688
    Thanks given
    1,752
    Thanks received
    3,103
    Rep Power
    5000
    Should work with all vb types I'd assume, works for my vb 4.2.2.

    Place this at the bottom of the footer file

    Spoiler for Gif Picture:


    Spoiler for Code:
    Code:
    <style type='text/css'>
    #bttop{border:1px solid #4adcff;background:#24bde2;text-align:center;padding:5px;position:fixed;bottom:35px;right:10px;cursor:pointer;display:none;color:#fff;font-size:11px;font-weight:900;}
    #bttop:hover{border:1px solid #ffa789;background:#ff6734;}
    </style>
    <div id='bttop'>BACK TO TOP</div>
    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js' type='text/javascript'></script>
    <script type='text/javascript'>$(function(){$(window).scroll(function(){if($(this).scrollTop()!=0){$('#bttop').fadeIn();}else{$('#bttop').fadeOut();}});$('#bttop').click(function(){$('body,html').animate({scrollTop:0},800);});});</script>
    All the best,
    Wiki




    coming soon
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Registered

    Join Date
    Sep 2012
    Age
    29
    Posts
    1,984
    Thanks given
    774
    Thanks received
    846
    Rep Power
    5000
    nice 1, sure someone will find usefull

    Reply With Quote  
     

  4. #3  
    Extreme Donator

    Jilic-Matt's Avatar
    Join Date
    May 2011
    Age
    29
    Posts
    1,612
    Thanks given
    799
    Thanks received
    494
    Rep Power
    540
    Sweet cheers.
    Reply With Quote  
     

  5. #4  


    RS Wiki's Avatar
    Join Date
    Mar 2011
    Age
    29
    Posts
    9,688
    Thanks given
    1,752
    Thanks received
    3,103
    Rep Power
    5000
    Quote Originally Posted by Jilic-Matt View Post
    Sweet cheers.
    np m8
    All the best,
    Wiki




    coming soon
    Reply With Quote  
     

  6. #5  
    Registered Member
    Join Date
    Nov 2010
    Posts
    64
    Thanks given
    4
    Thanks received
    5
    Rep Power
    1
    Nice Dennis
    People who are awesome : Owner Blade, Lost Valentino
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. switching back to xp help GIVING REPS!
    By Mr. Gangster in forum Software
    Replies: 2
    Last Post: 09-08-2008, 12:51 PM
  2. How to make items sellable back to the shop
    By karl666 in forum Tutorials
    Replies: 4
    Last Post: 05-22-2008, 03:21 PM
  3. Come back to Photoshop Signature.
    By +Kyle in forum Showcase
    Replies: 5
    Last Post: 04-03-2008, 11:29 PM
  4. Replies: 1
    Last Post: 02-24-2008, 02:59 AM
  5. *req*Need high alch that goes back to magic book
    By darkhawk224 in forum Tutorials
    Replies: 5
    Last Post: 10-07-2007, 09:57 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •