jQuery growfield

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-12 21:26:46

软件介绍

Style-independent cross-browser jQuery textarea autogrow plugin

Successfully tested in: FF2 (vista, xp, mac, linux), IE6 (xp), IE7 (vista, xp), Opera 9.2 (xp, mac), Opera 9.5 (vista), Safari 3 (mac, xp).

Comments and fixes are very appreciated.
optional parameters // $(elem).growfield( options )

* auto - bool // default = true // if false, ctrl + up/down are enabled
* animate - bool // default = true
* before(jEvent), after(jEvent) - callbacks // 'this' will be the dom object
* min - integer - height in pixels // default = min ? css.min-height || initial height
* max - integer - height in pixels // maximum size // default = css.max-height || none
* restore - bool - restore original size on blur (and back to growed on focus) // default = false
* speed - integer - animation speed. not a jquery parameter // default = 300 (ms)

additional functions (public interface)

* $(..).increase( step )
* decrease( step )
* growTo( height )
* growToggleAuto( bool )
* growToggleRestore( bool )
* growSetMin( integer )
* growSetMax( integer )

notes

parameters may be set in html attributes // tag attributes have priority

increase and decrease functions are working only in auto mode
opera:

in opera, if you don't have border style for textarea, plugin will set it (opera hides borders in overflow:hidden mode). in auto mode it won't work at all. More than that, opera returns border:2px solid #00000 even if you don't set it. :(
known problems:

after restore (onfocus) with animation textarea sometimes looses cursor. :( // ff2, ie7xp

when reached maximum height, opera will jitter on every keydown :( // opera < 9.5
ctrl + up/down:

in opera and ie this shortcut doesn't work properly. But you may use ctrl + whatever + up/down.

Download here:
http://code.google.com/p/jquery-growfield/downloads/list

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

再看电商

再看电商

黄若 / 电子工业出版社 / 2014-7-1 / CNY 39.00

电商行业在中国经历了十年的高速增长。如果说十年前的网上购物是新鲜潮人的尝试的话,那么今天几亿网购人群的规模,零售市场18,000亿人民币的年交易额,正催生着一个改变人们生活习惯的全新行业。互联网正在从各个维度重新定义生产、品牌、娱乐、传播、消费,电商毫无疑问的在购物领域影响着越来越多人的生活。同时,这个行业连年亏损,顾客服务良莠不齐,也受到广泛关注。作者从地面零售到电子商务,从跨国公司高管到管理民......一起来看看 《再看电商》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具