Javascript - jquery.clipstr.js
I developed a jquery plugin called clipstr.js. This plugin adjusts the innerText lengths to the parents width. You can see a working example on this Blog's right column, "Recent Entries" area and Comments area. This plugin also puts the original text into title attribute.
The plugin works with codes like this.
$('.boxsize_limited').clipstr({ width : 220, instead_str : '...', set_title : false });
You don't have to specify the width if the box width is limited. So all parameter's are optional.
I'm not sure the namimg is valid or not. Should I call it 'collapsestr' or 'strlenLimitter'?
Relative Entries
By Timeline
- 2009-08-08 11:35:59 縮.jp -- Generates the shortest URL in the world
- 2009-01-19 19:27:30 Javascript - jquery.clipstr.js
- 2009-01-13 06:37:27 Counter speculation of XSS
- 2009-01-09 12:51:52 Javascript - Easy Widgets to mimic iGoogle's UI
- 2009-01-05 02:37:12 List of Multi Platform Applications
- 2008-10-21 00:00:00 Javascript - Thickboxize images for thickbox3.1
Comments
no comment existsPage Navigation