jQuery Spin Button

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-13 07:43:19

软件介绍

Overview

This plugin provides spin-button interface easily on your form.

This interface is very handy to set especially short or middle range numbers.

Usage

Simply call "spin" method.

$(document).ready(function(){
  $('#number').spin();
});

<input type="text" id="number" value="0" />

You can specify the options with first argument.

$('#number').spin({max:100,min:0});

Options

imageBasePath

You need to specify your spin-button surface images. When all your spin-related-images are on a same directory(I hope so), you can set your image path onto this parameter.

default value is "/img/spin/".

spinBtnImage/spinUpImage/spinDownImage

The names of spin button images.

default value is "spin-button.png", "spin-up.png" and "spin-down.png". (these files are included in spin-image.tar.gz)

interval

Add/subtract this value from current value, when users click spin button.

default value is 1.

max/min

The maximum/minimum value. Null means unlimited.

default value is null.

timeInterval

While users keep pressing mouse button on the spin-button, the value will be increasing. This value is the time interval of increasing.

default value is 500(milli seconds)

timeBlink

The time interval of blinking the spin button when increasing/decreasing the value.

default value is 200(milli seconds)

Notice

You can use decimal as well, however, we always face issue of the float number. I suggest you do not use decimal.

Information

This plugin is very handy using with jGlycy.

<input type="text" jg="spin" value="0" />

本文地址:https://codercto.com/soft/d/23267.html

JSP网站开发四“酷”全书

JSP网站开发四“酷”全书

万峰科技 / 电子工业出版社 / 2005-9 / 49.00元

本书以JSP为开发语言,选取当前最流行、最具代表性的4类网站:新闻站点、论坛、电子商城和博客(Blog)系统为例,详细介绍了使用JSP开发网站的核心技术。掌握了本书所举4类网站的开发技术,将帮助你成为网站开发的“全能冠军”。 本书结合作者多年在网站系统开发方面的经验,从系统的需求分析开始,确定系统的流程与设计,到模块的划分,再到数据加结构的设计,最后开始每个模块编程开发,贯穿了网站开......一起来看看 《JSP网站开发四“酷”全书》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

随机密码生成器
随机密码生成器

多种字符组合密码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具