Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
- <div id='#body'>
- <div style='height:1999px;width:100px;background:red'></div>
- <input type=button class="goTop" value='top'/><?=mktime();?>
- </div>
- <script>
- /*
- $(document).ready(function() {
- // Code that uses $'s $ can follow here.
- $(".goTop").click(function (e)
- {
- $('html, body').animate({scrollTop: '0px'}, 800)
- });
- }) ;
- */
- $.noConflict();
- jQuery(document).ready(function($) {
- jQuery(".goTop").click(function (e)
- {
- jQuery('html, body').animate({scrollTop: '0px'}, 800)
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement