Giter VIP home page Giter VIP logo

zheng.jtotop.js's Introduction

zheng.jtotop.js

  • Scroll to the top of the page with jQuery

  • 返回顶部插件(可以任意速度滑动到指定任意位置)

使用方法

  • 引入zheng.jtotop.js
<script type="text/javascript" src="js/zheng.jtotop.js"></script>
  • 示例代码
$(document).ready(function(){
	//四种静态方法调用
	$("#shang").click(function(){
		$.top();//点击后到顶部
	});
	$("#zhong").click(function(){
		$.toId("myId");//点击后到指定位置
	});
	$("#xia").click(function(){
		$.footer();//点击后到底部
	});
	$("#zidingyi").click(function(){
		$.jTo("here",5000);//点击后到底部
	});
	//一种对象方法,直接加在对象上的方法,格式如下
	$("#totop").jToTop();
});

演示地址 : http://www.zhangshuzheng.cn/zheng.jtotop.js/demo/

zheng.jtotop.js's People

Contributors

shuzheng avatar

Stargazers

 avatar Yogi Satya avatar soga avatar  avatar Loli-King  avatar OJesusO avatar  avatar  avatar  avatar boligutou avatar Bingpeng Bao avatar 牛夫人是小甜甜 avatar  avatar bigman avatar Colin avatar  avatar fanyq avatar 李森林 avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.