当前位置:  软件>JavaScript软件

TextArea Resizer

    来源:    发布时间:2015-01-13

    本文导语:  * Added live demo page (url at bottom of page) This project allows the user to extend the textarea element/area within the web page whenever they feel. I noticed this functionality when adding a plugin to this website, I guess it's not used that often on other websites. It is part of the Drupal co...

* Added live demo page (url at bottom of page)

This project allows the user to extend the textarea element/area within the web page whenever they feel.

I noticed this functionality when adding a plugin to this website, I guess it's not used that often on other websites.

It is part of the Drupal code, although I haven't much experience with Drupal.

I found it useful and could see an immediate use for it on one of the web applications that I use (Tridion).

Anyway, I decide to spend a few minutes (it was a quick conversion) and turn the functionality in to a jQuery plugin (I couldn't see it in the repository).

To use it you'll need to add the usual jQuery javascript and the plugin to your web page HEAD section:


 

And then add a little style sheet information:


div.grippie {
background:#EEEEEE url(/tech-soft-javascript/grippie.png) no-repeat scroll center 2px;
border-color:#DDDDDD;
border-style:solid;
border-width:0pt 1px 1px;
cursor:s-resize;
height:9px;
overflow:hidden;
}
.resizable-textarea textarea {
display:block;
margin-bottom:0pt;
width:95%;
height: 20%;
}

 

Finally, it's a simple case of activating it against a given element set:


/* jQuery textarea resizer plugin usage */
$(document).ready(function() {
$('textarea.resizable:not(.processed)').TextAreaResizer();
});

 

An example is included in the release.

* Please note that it also uses a tiny 'png' image, although it's entirely optional as this is part of the example style sheet (as seen in the Drupal version).

Enjoy!

My other projects include:
Bounce - http://plugins.jquery.com/project/Bounce
Hover Image Text - http://plugins.jquery.com/project/HoverImageText


    
 
 

您可能感兴趣的文章:

 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • java命名空间java.awt类textarea.accessibleawttextarea的类成员方法: textarea.accessibleawttextarea定义及介绍
  • 怎样提取框架网页中<textarea></textarea>中的大量数据?
  • java命名空间java.awt类textarea的类成员方法: textarea定义及介绍
  • 如何使得TextArea的竖向滚动条,随着TextArea中添加的条目,自动向下滚动,以自动显示最后一行
  • java命名空间javax.swing.text.html类html.tag的类成员方法: textarea定义及介绍
  • 如何将在<textarea rows="14" name="Content" cols="74"></textarea>中输入的回车,变成页面得换行?
  • java命名空间java.awt类textarea的类成员方法: getscrollbarvisibility定义及介绍
  • textArea使用中的幾個問題
  • java命名空间java.awt类textarea的类成员方法: getaccessiblecontext定义及介绍
  • 怎样给textarea的控件赋值?
  • java命名空间java.awt类textarea的类成员方法: paramstring定义及介绍
  • php开源软件 iis7站长之家
  • java命名空间java.awt类textarea的类成员方法: appendtext定义及介绍
  • textarea自适应高度插件 textareaAutoHeight
  • java命名空间java.awt类textarea的类成员方法: inserttext定义及介绍
  • 请问如何取得提交表单的file和textarea字段?
  • java命名空间java.awt类textarea的类成员方法: preferredsize定义及介绍
  • Textarea自动缩放插件 Expandable
  • java命名空间java.awt类textarea的类成员方法: replacetext定义及介绍
  • Textarea自动高度调整的插件 jGrow
  • java命名空间java.awt类textarea的类成员方法: getcolumns定义及介绍
  • jQuery textarea plugin


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3